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
importpandasaspdseries=pd.Series([1, 2, 3], pd.date_range('201701010000', '201701010030', freq='15min'))
print(pd.infer_freq(series.index))
# Errorpd.Timedelta(pd.infer_freq(series.index))
# While this workspd.Timedelta(series.index.freq)
Problem description
pd.Timedelta constructor works with e.g. '15min' but not with '15T',
while pd.infer_freq() returns '15T' and pd.Series.index.freq returns '15min'.
This leads to errors.
Expected Output
Same behaviour of pd.Timedelta() for 'min' and 'T' offset alias or deprecation of 'T' as an offset alias.
Code Sample, a copy-pastable example if possible
Problem description
pd.Timedelta constructor works with e.g. '15min' but not with '15T',
while pd.infer_freq() returns '15T' and pd.Series.index.freq returns '15min'.
This leads to errors.
Expected Output
Same behaviour of pd.Timedelta() for 'min' and 'T' offset alias or deprecation of 'T' as an offset alias.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: