Jak przeczytać tabelę mysql w Python
import pandas as pd
import sqlalchemy
# make sure you have installed both mysql & pymysql
# root:root is my username and password/default
engine = sqlalchemy.create_engine("mysql+pymysql://root:root@localhost/database name", pool_pre_ping=True)
# then specify the name of the table in the database
df = pd.read_sql_table('table name', engine)
print(df)
Herker