Skip to main content

A tool to fill column values in Pandas

Project description

Fill Datetime Data

This is a simple python script which fills in data using Pandas in Python using the aggregate mean of the data you wish to fill.

Importing should look like:

from fill_dt_data import fill_data

The script requires two columns, one labelled exactly "data" (case sensitive) that contains datetime data in YYYYmmdd format and at least one other column that contains data that you wish to replace.

The function takes in a DataFrame, the name of the column that you wish to fill, and the starting and ending dates for the time frame that you wish to fill. It then uses up to the decade of time surrounding your dates and takes the average value for each day in each month, then fills your dates with those averages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fill_dt_data-0.0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

fill_dt_data-0.0.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page