BUG: inconsistent median support for datetimelike dtypes #33760
Labels
API - Consistency
Internal Consistency of API/Behavior
Bug
Datetime
Datetime data dtype
Reduction Operations
sum, mean, min, max, etc.
Milestone
#29941 introduced support for taking the median of a datetime-like column.
In released version, (pandas 1.0.3) we get:
on master we now allow this for DataFrame (warning it will be in the future by default, and already allow it with numeric_only=False):
but for a single column it still fails:
So we should make this support consistent (add "median" support on DatetimeArray, so it also works for Series)
cc @jbrockmendel
The text was updated successfully, but these errors were encountered: