You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually an enhancement it didn't work in 0.12 (just gave a wrong answer!)
takes a DatetimeIndex only
In [10]: pd.infer_freq?
Type: function
String Form:<function infer_freq at 0x3b207d0>
File: /mnt/home/jreback/pandas/pandas/tseries/frequencies.py
Definition: pd.infer_freq(index, warn=True)
Docstring:
Infer the most likely frequency given the input index. If the frequency is
uncertain, a warning will be printed
Parameters
----------
index : DatetimeIndex
warn : boolean, default True
Returns
-------
freq : string or None
None if no discernible frequency
I want to create a contiguous date range at the same frequency as another series where the other series may have its freqstr equal to None. The "same frequency" is defined as the lowest frequency such that a contiguous date range will include every date in the other series - e.g. in the trivial case
microsecond frequency will interpolate any series.
your example will raise (as its using the VALUES of the Series, otherwise this is very confusing).
Rather than return None (which IMHO is wrong). FYI their is no real distinction between TimeSeries and Series since 0.13
The text was updated successfully, but these errors were encountered: