BUG: DataFrame and datetime scalar ops may results in incorrect dtype #13248
Labels
Bug
Duplicate Report
Duplicate issue or pull request
Numeric Operations
Arithmetic, Comparison, and Logical operations
Milestone
Code Sample, a copy-pastable example if possible
Timestamp
subtraction resuts inTimedelta
But it doesn't when broadcasted to
DataFrame
. It's becauseDataFrame
op calls_try_corce_results
which coerces the result todatetime64
.Expected Output
output of
pd.show_versions()
current master
The text was updated successfully, but these errors were encountered: