A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/49037 below:

Series(mixed_datetime_and_ints, dtype="M8[ns]") vs DatetimeIndex(same) mismatch · Issue #49037 · pandas-dev/pandas · GitHub

values = [pd.Timestamp.now(), 1]

pd.Series(values, dtype="M8[ns]")  # <- casts
pd.DatetimeIndex(values, dtype="M8[ns]")  # <- raises
pd.to_datetime(values) # <- raises

These should either all cast or all raise. I'd be OK either way, leaning towards all-raise.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4