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
In [2]: pdt = pd.PeriodDtype(freq='D')
In [3]: pdt
Out[3]: period[D]
In [4]: pdt.freq = 'F'
In [5]: pdt
...
AttributeError: 'str' object has no attribute 'freqstr'
I think in general it would be good to make those dtype specific attributes not settable (this is already the case for DatetimeTZDtype.unit/tz, but not yet for the above case of PeriodDtype, and also not eg for IntervalDtype.subtype).