DatetimeIndex from Series worked in 0.12.x? · Issue #6273 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
I'm fairly certain this worked before a recent upgrade. Too busy to check right now. Maybe it shouldn't work and it's just been fixed, but ... I have something like this in a lot of places in my code.
df = pd.DataFrame(np.random.rand(5,3))
df['date'] = ['1-1-1990', '2-1-1990', '3-1-1990', '4-1-1990', '5-1-1990']
pd.DatetimeIndex(df['date'], freq='MS')
Raises about Series not having an attribute inferred_freq. Why is it trying to infer a frequency when I passed freq? Is it a new check?
[22]: pd.version.version
[22]: '0.13.0-472-g9109812'