robopanda.robopanda module

robopanda.py

This module contains functions that are useful for working with pandas DataFrames.

robopanda.robopanda.clean_column_names(df: pandas.DataFrame) pandas.DataFrame

Clean column names to snake case. This enables the use of dot notation to access columns.

Parameters

dfpd.DataFrame

A pandas DataFrame with columns to be cleaned.

Returns

pd.DataFrame

A pandas DataFrame with cleaned column names.

Raises

ValueError

If there are any name collisions with other columns or existing pd.DataFrame attributes or methods.