I try to insert new records into a table on amazon redshift . Basically i download rows from a google spreadsheet and try to push as a Dataframe into a table.
from sqlalchemy import create_engine
engine = create_engine('postgresql://redshift_user:password,GB8@redshift-url:5439/datawarehouse')
connection = engine.raw_connection()
and then i excute
df.to_sql(name='test',con=engine, if_exists='append', index=False)
but it dosen't work and it raises the exception
sqlalchemy.exc.ArgumentError: Column must be constructed with a non-blank name or assign a non-blank .name before adding to a Table.
i checked some posts and tried their solutions but still not working