Support mean() for Timestamps. #21583
Labels
Closing Candidate
May be closeable, needs more eyeballs
Datetime
Datetime data dtype
Dtype Conversions
Unexpected or buggy dtype conversions
Enhancement
Numeric Operations
Arithmetic, Comparison, and Logical operations
Reduction Operations
sum, mean, min, max, etc.
Projects
Fitting a linear model to Timestamps currently does not work out of the box.
and pandas does not support the ols function any further. When using e.g. seaborn to make a fit it throws an error.
I wonder whether the dtype can be change so that mean is supported? And whether this would make it compatible with other packages, such as scikit-learn, seaborn, etc. Also, the mean of some dates could be useful for other use cases. It does make sense to calculate the mean of some dates doesn't it?
The text was updated successfully, but these errors were encountered: