Skip to content

Commit 36c4d8f

Browse files
author
scls19fr
committed
Update rosetta-pandas.rst
According pandas-dev/pandas#10654 read from SQL database is now easier with Pandas than it was Instead of ``` import sqlalchemy as sa engine = sa.create_engine('sqlite://db.db') df = pd.read_sql('select * from t', con=engine) ``` we can do ``` df = pd.read_sql('select * from t', con='sqlite://db.db') ```
1 parent 331de60 commit 36c4d8f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/source/rosetta-pandas.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ Blaze can simplify and make more readable some common IO tasks that one would wa
107107
+-----------------+-----------------------------------------------------------------+---------------------------------------------------+
108108
| Read from | .. code-block:: python | .. code-block:: python |
109109
| SQL database | | |
110-
| | import sqlalchemy as sa | df = Data('sqlite://db.db::t') |
111-
| | engine = sa.create_engine('sqlite://db.db') | |
112-
| | df = pd.read_sql('select * from t', | |
113-
| | con=engine) | |
110+
| | df = pd.read_sql('select * from t', | df = Data('sqlite://db.db::t') |
111+
| | con='sqlite://db.db') | |
114112
+-----------------+-----------------------------------------------------------------+---------------------------------------------------+

0 commit comments

Comments
 (0)