Skip to content

Avoid type casting errors with datetimes & dates#9

Open
wynnw wants to merge 1 commit into
chhantyal:masterfrom
wynnw:master
Open

Avoid type casting errors with datetimes & dates#9
wynnw wants to merge 1 commit into
chhantyal:masterfrom
wynnw:master

Conversation

@wynnw
Copy link
Copy Markdown

@wynnw wynnw commented Aug 1, 2022

  • This turns on two flags for the pandas table conversion to treat
    datetime/dates as objects which helps to avoid errors like:

    pyarrow.lib.ArrowInvalid: Casting from timestamp[us] to timestamp[ns] would result in out of bounds timestamp: -29941464600000000

    This is very useful for data derived from sql where the python
    datetime/postgresql types only goes to microseconds or is far in the
    future and causes issues with the pandas format.

- This turns on two flags for the pandas table conversion to treat
  datetime/dates as objects which helps to avoid errors like:

  pyarrow.lib.ArrowInvalid: Casting from timestamp[us] to timestamp[ns] would result in out of bounds timestamp: -29941464600000000

  This is very useful for data derived from sql where the python
  datetime/postgresql types only goes to microseconds or is far in the
  future and causes issues with the pandas format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant