You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a pandasDataframe with an index which is of type datetime64[ns].
when I use the to_sql method i expect the index to be created as a timestamp postgres column, however it is creates a timestamptz column.
Note that when the datetime64[ns] column is not an index but rather a normal column, this doesn't happen.
I have a
pandas
Dataframe
with an index which is of typedatetime64[ns]
.when I use the
to_sql
method i expect the index to be created as atimestamp
postgres column, however it is creates atimestamptz
column.Note that when the
datetime64[ns]
column is not an index but rather a normal column, this doesn't happen.pandas 0.23.4, psycopg2 2.7.4, sqlalchemy 1.2.7, PostgreSQL 9.6.6
example
inserting to postgres
when reading from the database I get the index with different type
not sure if it's a sqlalchemy or pandas question.
reported because of my question on SO
The text was updated successfully, but these errors were encountered: