1、连接数据库
consql = create_engine('mysql+pymysql://root:123456@localhost:3366/policy_total_data', encoding='utf8')
2.使用read_sql函数
db_df1 = pd.read_sql("select * from policy_sign_num_count", consql)