Skip to content

Commit 8e15910

Browse files
author
luke
committed
fix example res error
1 parent 8138721 commit 8e15910

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,9 +2893,9 @@ def to_sql(
28932893
... index_label='id')
28942894
2
28952895
>>> pd.read_sql_query("SELECT * FROM users", con=engine)
2896-
index name
2897-
0 0 User 6
2898-
1 1 User 7
2896+
id name
2897+
0 0 User 6
2898+
1 1 User 7
28992899
29002900
Specify the dtype (especially useful for integers with missing values).
29012901
Notice that while pandas is forced to store the data as floating point,

0 commit comments

Comments
 (0)