# Python代码示例:使用Pandas读取MySQL数据库中的数据
import pandas as pd
from sqlalchemy import create_engine
engine = create_engine('mysql+pymysql://username:password@localhost/dbname')
data = pd.read_sql_table('students', con=engine)
print(data.head())
]]>
# Python代码示例:使用Pandas读取MySQL数据库中的数据
import pandas as pd
from sqlalchemy import create_engine
engine = create_engine('mysql+pymysql://username:password@localhost/dbname')
data = pd.read_sql_table('students', con=engine)
print(data.head())
]]>