Skip to content

this repository contains helper methods to clean pandas dataframe quickly and therefore simplifying the data cleaning process

Notifications You must be signed in to change notification settings

ariben/dfcleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dfcleaner

dataframe cleaning package

This package contains helper methods to clean pandas dataframe quickly and therefore simplifying the data cleaning process

License: MIT

Installation

OS X & Linux:

pip3 install dfcleaner

Windows:

pip install dfcleaner

Usage example

import pandas as pd
from dfcleaner import cleaner

cleaner.ENABLE_LOGGING = True
cleaner.LOG_DIR = './logs'

df = pd.read_csv('some_filename.csv')

df.columns = cleaner.sanitize(df.columns)
conversion_dict = cleaner.suggest_conversion_dict(df)
df = cleaner.preprocess(df,
                        column_dtype_conversion_dictionary = conversion_dict,
                        std_coeff = 1.5,
                        fill_na_method = 'median',
                        label_col = None)

Development setup

pip3 install -r requirements.txt

Windows:

pip install -r requirements.txt

Meta

M. Zahash – [email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/zahash/

Contributing

  1. Fork it (https://github.com/zahash/dfcleaner/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

this repository contains helper methods to clean pandas dataframe quickly and therefore simplifying the data cleaning process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published