When using pandas "read_sql_query" do I need to close the connection? Or should I use the c instruction? Or can I just use the following and be good?
from sqlalchemy import create_engine import pandas as pd sql = """ SELECT * FROM Table_Name; """ engine = create_engine('blah') df = pd.read_sql_query(sql, engine) print df.head()
python pandas
deez
source share