Skip to content

Commit dc2465e

Browse files
committed
docs(readme): clarify pandas df insert
1 parent 9903b89 commit dc2465e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Insert data stored in a ``pandas.DataFrame`` into an Amazon Redshift table
237237
),
238238
columns=["bookname", "author‎"],
239239
)
240-
with db_table.cursor() as cursor:
240+
with con.cursor() as cursor:
241241
cursor.write_dataframe(df, "book")
242242
cursor.execute("select * from book; ")
243243
result = cursor.fetchall()

0 commit comments

Comments
 (0)