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
From what I've seen, there is no function uses freq taken from get_offset as it is. Applying numeric ops (like multiplying freq mult) will results in copy. Thus, user ops should not affect to internal cache.
Above repr difference is caused by _named property, which looks to be attached by _make_offset. It is introduced in #5189 for repr backcompat. I don't think it is needed anymore (because user can't get freq from get_offset).
Maybe we can cleanup freq-retrieving functions in freqnencies.py and guarantee user can't touch the internal cache.
Because
frequencies.get_offset
may be broken by user operation because of its cache.https://github.com/pydata/pandas/blob/master/pandas/tseries/frequencies.py#L515
It should return a copy of the cache.
The text was updated successfully, but these errors were encountered: