simplefit.cleaner

Module Contents

Functions

cleaner(input_dataframe, lower_case=False)

Load downloaded data, clean the dataset, remove the NA score.

simplefit.cleaner.cleaner(input_dataframe, lower_case=False)[source]

Load downloaded data, clean the dataset, remove the NA score. Clean data(remove Nan rows, strip extra white spaces from column names, and data, convert all column names to lower case, etc)

Parameters:
  • input_dataframe (pandas.DataFrame) – Data set to clean

  • drop_nans (boolean) – Drop all rows that have a NaN in any column (default: False)

Returns:

(DataFrame)

Return type:

A cleaned and simplified DataFrame of the relevant columns for summary and visualization,

Examples

>>>cleaner(example_data)