caf.toolkit.pandas_utils#
Sub-package for miscellaneous helper functionality related to the pandas package.
Functions
|
Cast N objects to the same datatype. |
|
Split a dataframe into chunks, usually for multiprocessing. |
|
Compare two matrix reports. |
|
Compare two matrix reports. |
Convert a pandas.DataFrame into an N-Dimensional numpy array. |
|
Convert a pandas.DataFrame to a sparse.COO matrix. |
|
|
Filter a pandas DataFrame by a filter. |
|
Generate a mask for filtering a pandas DataFrame by a filter. |
|
Create a pandas Index from a mapping of {col_name: col_values}. |
|
Generate an external only mask for a wide matrix. |
|
Generate an internal only mask for a wide matrix. |
|
Generate an index/column mask for a wide Pandas matrix. |
|
Check whether a sparse array is more efficient than a dense one. |
|
Convert a DataFrame from long to wide format, infilling missing values. |
Infill columns with a complete product of one another. |
|
|
Convert a DataFrame from long to wide format, infilling missing values. |
|
Create a high level summary of a matrix. |
|
Convert an N-dimensional numpy array to a pandas.Dataframe. |
|
Decorator for overloaded functions/methods. |
|
Reindexes and groups a pandas DataFrame. |
|
Reindexes a pandas DataFrame. |
|
Reindex a pandas DataFrame, making sure index/col types don't clash. |
|
Equivalent to separator.join(columns) for all rows of pandas DataFrame. |
|
Generate a matrix report of value totals internal and externally. |
|
Convert a matrix from wide to long format, infilling missing values. |
Classes
|
Special type indicating an unconstrained type. |
|
Generator to split a dataframe into chunks. |
|
|
|
Creates a high level summary of a matrix and its trip ends. |
Modules
Helper functions for handling pandas DataFrames. |
|
Contains functions that perform checks and provide high level statistics. |
|
Conversion methods between numpy and pandas formats. |
|
Build Dummy datasets for the purposes of testing and demonstrations. |
|
Basic utility functions for pandas objects. |
|
Helper functions for handling wide pandas DataFrames, usually as demand matrices. |