Skip to content

Commit 6ec0f62

Browse files
authored
DOC: add newline to fix code block format in pandas.DataFrame.to_sql (#36923)
1 parent 3cf204a commit 6ec0f62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/generic.py

+1
Original file line numberDiff line numberDiff line change
@@ -2690,6 +2690,7 @@ def to_sql(
26902690
[(0, 'User 1'), (1, 'User 2'), (2, 'User 3')]
26912691
26922692
An `sqlalchemy.engine.Connection` can also be passed to to `con`:
2693+
26932694
>>> with engine.begin() as connection:
26942695
... df1 = pd.DataFrame({'name' : ['User 4', 'User 5']})
26952696
... df1.to_sql('users', con=connection, if_exists='append')

0 commit comments

Comments
 (0)