piper.verbs.fmt_dateidx

piper.verbs.fmt_dateidx(df: pandas.core.frame.DataFrame, freq: str = 'D')pandas.core.frame.DataFrame[source]

format dataframe datelike index

Checks if dataframe index contains a date-like grouper object. If so, applies the ‘frequency’ string given.

Examples

Parameters
Returns

Return type

A pandas DataFrame