Open Jagadish250803 opened 4 weeks ago
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[X] I have confirmed this bug exists on the main branch of pandas.
@task def push_into_postgres(df , table_name): user = 'postgres' # Ensure this is correct password = 'postgres' # Ensure this is correct host = 'astro-airflow_c0c605-postgres-1' port = 5432 database_name = 'postgres' db_uri = f'postgresql://{user}:{password}@{host}:{port}/{database_name}' engine = create_engine(db_uri) try: df.to_sql(table_name, con=engine, if_exists='append', index=False) print(f"Data successfully pushed to {table_name}")
i had all the import properly with all the versions
what is going wrong the dataframe which is getting used its proper i had printed it
Can you include the output of pd.show_versions(). What is the output when you do print(type(engine))?
pd.show_versions()
print(type(engine))
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[X] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
i had all the import properly with all the versions
Expected Behavior
what is going wrong the dataframe which is getting used its proper i had printed it
Installed Versions