DEPR: Deprecate passing range-like arguments to DatetimeIndex, TimedeltaIndex by jbrockmendel · Pull Request #23919 · pandas-dev/pandas (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good to me, a minor comment.
Further, can you add an assertion for the warning on verify_integrity
?
Also, small suggestion: you now left one DatetimeIndex in there with an assert_produces_warning
. I would maybe do such an assertion in a separate test (now that assertion is a bit buried in a bigger test that is for the rest using date_range
)