shift does not always preserve freqstr if series contains only one or two elements #21275
Labels
Datetime
Datetime data dtype
Frequency
DateOffsets
good first issue
Needs Tests
Unit test(s) needed to prevent regressions
Period
Period data type
Milestone
Problem description
The freqstr information is lost if series contains only one or two elements AND the freqstr by which is shifted is not the same as the freqstr of the series. In all other cases it works fine.
Expected Output
Preservation of the freqstr in all above cases.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: