reformat_columns¶
-
hhpy.ds.
reformat_columns
(df: pandas.core.frame.DataFrame, printf: Callable = None, **kwargs) → pandas.core.frame.DataFrame[source]¶ A quick way to clean the column names of a DataFrame
Parameters: - df – Pandas DataFrame containing the data, other objects are implicitly cast to DataFrame
- printf – Printing Function to use for steps [optional]
- kwargs – Additional keyword arguments passed to DFMapping [optional]
Returns: DataFrame with reformated column names