BUG: offsets.apply may return datetime by sinhrks · Pull Request #7502 · pandas-dev/pandas (original) (raw)

Currently, offsets.appy, rollforward and rollback returns Timestamp if argument is Timestamp or np.datetime64.

If input is datetime, these functions return datetime or Timestamp inconsistently depending on internal process. It may better to always return Timestanp?

Affected Offsets