determine_freq

determine_freq(timestamps: Union[pandas.core.series.Series, pandas.core.indexes.datetimes.DatetimeIndex]) str[source]

Determine data frequency using provided timestamps.

Parameters

timestamps (Union[pandas.core.series.Series, pandas.core.indexes.datetimes.DatetimeIndex]) – timeline to determine frequency

Returns

pandas frequency string

Raises

ValueError: – unable do determine frequency of data

Return type

str