A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.infer_freq.html below:

pandas.infer_freq — pandas 2.3.1 documentation

pandas.infer_freq#
pandas.infer_freq(index)[source]#

Infer the most likely frequency given the input index.

Parameters:
indexDatetimeIndex, TimedeltaIndex, Series or array-like

If passed a Series will use the values of the series (NOT THE INDEX).

Returns:
str or None

None if no discernible frequency.

Raises:
TypeError

If the index is not datetime-like.

ValueError

If there are fewer than three values.

Examples

>>> idx = pd.date_range(start='2020/12/01', end='2020/12/30', periods=30)
>>> pd.infer_freq(idx)
'D'

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4