-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Description
Location of the documentation
The code example in pandas.DataFrame.to_sql isn't formatted properly.
(it's the example that inserts User 4 and User 5 into the db)
Note: You can check the latest versions of the docs on master here.
Documentation problem
oh no, the code isn't formatted correctly!
Suggested fix for documentation
The reason is there's no blank line before the code snippet, see:
Lines 2692 to 2695 in b58ee57
| An `sqlalchemy.engine.Connection` can also be passed to to `con`: | |
| >>> with engine.begin() as connection: | |
| ... df1 = pd.DataFrame({'name' : ['User 4', 'User 5']}) | |
| ... df1.to_sql('users', con=connection, if_exists='append') |
Add a blank line above the code snippet :), i have a PR in progress
