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.7.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fill_dt_data-0.0.7-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file fill_dt_data-0.0.7.tar.gz.

File metadata

  • Download URL: fill_dt_data-0.0.7.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for fill_dt_data-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9d921e096460b2d49d38da113fef92bc669d4e1bca8b18bd208be6c3f3f0e6b6
MD5 8fe6e37558f4e059db60a6fbd5be8f46
BLAKE2b-256 62b721884fd0f83c72fc8ce2846c133f8bf08c47512c3e464a4390cf15572b79

See more details on using hashes here.

File details

Details for the file fill_dt_data-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: fill_dt_data-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for fill_dt_data-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b8085071d5b088fec9ca71bdccb469c2d23d91f84d3e96a69efba172bb75e8
MD5 078480e42fbf67828e34932d83aa5262
BLAKE2b-256 61daeb7282011ddb1c0ed793837f66a00c674465cf04f198da0c3fb34dfe6b2a

See more details on using hashes here.

Supported by

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