ENH: No longer always show hour, minute and second components for pd.Interval #57748
Open
1 of 3 tasks
Labels
Bug
Output-Formatting
__repr__ of pandas objects, to_string
Regression
Functionality that used to work in a prior pandas version
Milestone
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
pd.Interval
behaviour change from #55035 means that hour, minute and second components is always shown regardless of if timezone is included as an argument. The default behaviour until now has been for time to be dropped if 00:00:00. In our use-case this broke some tests and does not provide useful information.Feature Description
It would be nice to revert to dropping hour, minute and second components when 00:00:00 and when no timezone is specified.
Alternative Solutions
N/A
Additional Context
No response
The text was updated successfully, but these errors were encountered: