File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1416,6 +1416,7 @@ Components
1416
1416
TimedeltaIndex.microseconds
1417
1417
TimedeltaIndex.nanoseconds
1418
1418
TimedeltaIndex.components
1419
+ TimedeltaIndex.inferred_freq
1419
1420
1420
1421
Conversion
1421
1422
~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -671,11 +671,11 @@ def _period_str_to_code(freqstr):
671
671
def infer_freq (index , warn = True ):
672
672
"""
673
673
Infer the most likely frequency given the input index. If the frequency is
674
- uncertain, a warning will be printed
674
+ uncertain, a warning will be printed.
675
675
676
676
Parameters
677
677
----------
678
- index : DatetimeIndex
678
+ index : DatetimeIndex or TimedeltaIndex
679
679
if passed a Series will use the values of the series (NOT THE INDEX)
680
680
warn : boolean, default True
681
681
@@ -684,6 +684,7 @@ def infer_freq(index, warn=True):
684
684
freq : string or None
685
685
None if no discernible frequency
686
686
TypeError if the index is not datetime-like
687
+ ValueError if there are less than three values.
687
688
"""
688
689
import pandas as pd
689
690
You can’t perform that action at this time.
0 commit comments