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
CREATE TABLE test_df (
a FLOAT,
b BIGINT,
c TEXT
)
when a should be BIGINT and b should be FLOAT.
This occurs because the index columns are enumerated backwards in PandasSQLTable._create_table_statement in pandas.io.sql but the types don't take into account this backward iteration:
When using SQLAlchemy to create a table from a dataframe, Pandas messes up the types of the index columns. For example:
outputs
when
a
should beBIGINT
andb
should beFLOAT
.This occurs because the index columns are enumerated backwards in
PandasSQLTable._create_table_statement
inpandas.io.sql
but the types don't take into account this backward iteration:I will make a pull request with a fix for this issue. Versions appended below:
The text was updated successfully, but these errors were encountered: