Skip to content

Commit 25e2f86

Browse files
authored
fix infer_freq raises section (pandas-dev#32642)
* fix infer_freq raises section * edits * another period
1 parent 05925d2 commit 25e2f86

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pandas/tseries/frequencies.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,14 @@ def infer_freq(index, warn: bool = True) -> Optional[str]:
249249
Returns
250250
-------
251251
str or None
252-
None if no discernible frequency
253-
TypeError if the index is not datetime-like
254-
ValueError if there are less than three values.
252+
None if no discernible frequency.
253+
254+
Raises
255+
------
256+
TypeError
257+
If the index is not datetime-like.
258+
ValueError
259+
If there are fewer than three values.
255260
"""
256261
import pandas as pd
257262

0 commit comments

Comments
 (0)