You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromsqlalchemyimportcreate_engineimportpandasaspdengine=create_engine('sqlite:///Chinook.sqlite')
# Open engine connection: concon=engine.connect()
# Perform query: rsrs=con.execute('select * from Album')
# Save results of the query to DataFrame: dfdf=pd.DataFrame(rs.fetchall()/rs.fetchmany(n=))
# Close connectioncon.close()
# Print head of DataFrame dfprint(df.head())
fromsqlalchemyimportcreate_engineimportpandasaspd# Create engine: engineengine=create_engine('sqlite:///Chinook.sqlite')
df=pd.read_sql_query('select * from Album', engine)