-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDatetimeDatetime data dtypeDatetime data dtypeDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsEnhancementNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operationsReduction Operationssum, mean, min, max, etc.sum, mean, min, max, etc.
Description
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.
TypeError: reduction operation 'mean' not allowed for this dtype
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?
Metadata
Metadata
Assignees
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDatetimeDatetime data dtypeDatetime data dtypeDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsEnhancementNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operationsReduction Operationssum, mean, min, max, etc.sum, mean, min, max, etc.