BUG: PeriodIndex.get_loc with mismatched freq by jbrockmendel · Pull Request #41670 · pandas-dev/pandas (original) (raw)

idx.get_loc(datetime.datetime(2000, 1, 2, 1, 0), "pad"), idx.get_loc(pd.Timestamp("2000-01-02 01:00:00"), "pad") and idx.get_loc('2000-01-02 00:00', "pad") still return 1. why do we need to disallow a mismatched Period object?