Skip to content

Commit

Permalink
fix infer_freq raises section (#32642)
Browse files Browse the repository at this point in the history
* fix infer_freq raises section

* edits

* another period
  • Loading branch information
wholmgren authored Mar 12, 2020
1 parent 05925d2 commit 25e2f86
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pandas/tseries/frequencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,14 @@ def infer_freq(index, warn: bool = True) -> Optional[str]:
Returns
-------
str or None
None if no discernible frequency
TypeError if the index is not datetime-like
ValueError if there are less than three values.
None if no discernible frequency.
Raises
------
TypeError
If the index is not datetime-like.
ValueError
If there are fewer than three values.
"""
import pandas as pd

Expand Down

0 comments on commit 25e2f86

Please sign in to comment.