-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support mean() for Timestamps. #21583
Comments
Note, how to fit a model using datetimes/timestamps comes up frequently on stackoverflow in different variations. |
i believe we have an issue for this - can you see if this is duplicate |
Some thoughts:
|
I agree, median, std, quantiles etc would be very useful too. Also, subtraction of dates would be nice. Why are they called first and last if it could be min and max as well? |
Is there anything left to do here? |
Yes this appears to work now so we can close. |
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: