ourtils.wrangling#
Data wrangling functions, typically with pandas
Functions
|
Collapses a multi-index, this usually happens after some sort of aggregation. |
|
Shows columns with a certain number of unique values |
Gets value counts of all non-numeric columns in a dataframe. |
|
|
Returns the % of unique values of a series. |
|
Creates a new column using a function that takes column names as strings. |
|
Computes pct / counts of count_var by group_by_vars |
|
Filters a dataframe based on distinct counts, OR using select_include |
|
Returns the dataframe filtered to a random value of col. |
|
Sends a column / columns to the front / back of a dataframe |
|
A simple function to be used with |
|
Sorts a column in a dataframe in a manual order |
|
Reshapes wide data into long format and adds a "group" column. |
Classes
|
Specification for an individual column. |
|
A collection of columnspecs. |