pydit.wrangling¶
Sub-package (./wrangling) containing the core data wrangling functionality.
The modules are also self standing, you should be able to copy any .py file and import it in your script to use it with no dependencies on other modules.
There may be some exceptions to this principle in the logging module, but you should be able to create your own logger object and run with it.
Module for anonymising a key/identifier column |
|
Checks for various types of nulls/blanks in a dataframe and returns counts. |
|
Function to create a calendar DataFrame to be used as a lookup table |
|
Module for cleaning up column names of a DataFrame |
|
Function for coalescing columns in a pandas DataFrame. |
|
Creates a new column with the top N most frequent values and the rest are replaced by Other |
|
Implementation of the collapse_levels function. |
|
Module that implements a few useful count related functions Takes inspiration on the usual counta and countif functions in Excel |
|
Module with functions for date and time calculations. |
|
Module for checking for duplicates in a dataframe. |
|
File utilities for saving and loading files |
|
Improving on fillna() with options for various data types and opinionated defaults. |
|
Module with utility functions for fuzzy matching |
|
Groupby text column into concatenated text |
|
Functions to sweep a dataframe for keywords and return a matrix of matches. |
|
|
Lookup values from a reference dataframe and return values from a column If the key is a list, it will return a list of values |
Module to map/add various values like 1, 2, 3 to "High", "Medium", "Low". |
|
Module to merge dataframes with prefixes or suffixes for all fields not just those that have colissions. |
|
Module to perform referential integrity checks on two dataframes. |
|
Module to check for numerical sequence of DataFrame column or Series |
|
Utility functions to do analysis/detection of split purchases/expenses |
|
Implementation of the truncate_datetime family of functions. |
|
Utility functions, they are not used directly in the core functions. |