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/55096 below:

Support non-nano inference in to_datetime · Issue #55096 · pandas-dev/pandas · GitHub

Feature Type Problem Description
In [1]: import pandas as pd

In [2]: pd.to_datetime("1677-01-01 00:00:00")
OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1677-01-01 00:00:00, at position 0

In [3]: pd.Timestamp("1677-01-01 00:00:00")
Out[3]: Timestamp('1677-01-01 00:00:00')
Feature Description

It would be great if to_datetime would perform unit inference like Timestamp.

Looks mainly an issue with array_to_datetime still assuming ns resolution for strings

Alternative Solutions

Use Timestamp

Additional Context

No response


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