Skip to content

Commit c1a0dbc

Browse files
DOC: change deprecated sql calls in the io performance section
1 parent 107cb10 commit c1a0dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/io.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -3937,12 +3937,12 @@ And here's the code
39373937
if os.path.exists('test.sql'):
39383938
os.remove('test.sql')
39393939
sql_db = sqlite3.connect('test.sql')
3940-
sql.write_frame(df, name='test_table', con=sql_db)
3940+
df.to_sql(name='test_table', con=sql_db)
39413941
sql_db.close()
39423942
39433943
def test_sql_read():
39443944
sql_db = sqlite3.connect('test.sql')
3945-
sql.read_frame("select * from test_table", sql_db)
3945+
pd.read_sql_query("select * from test_table", sql_db)
39463946
sql_db.close()
39473947
39483948
def test_hdf_fixed_write(df):

0 commit comments

Comments
 (0)