摘要: 数据 import pandas as pd data = [ {'DEPT_NAME': '苏州市', '项目类型': '0', '已经安装': 385, '确定安装': 64, '预计安装': 422, '省份': '江苏省'}, {'DEPT_NAME': '苏州市', '项目类型': '1' 阅读全文
posted @ 2023-08-04 16:17 徐俊112 阅读(107) 评论(0) 推荐(0)
摘要: 参数:columns column = ['项目名称', '项目建立时间', '地市', '计划安装', '客户确定安装', '安装完成', '已经安装百分比'] group.to_excel(writer, sheet_name=province, index=False, columns=col 阅读全文
posted @ 2023-08-04 14:22 徐俊112 阅读(38) 评论(0) 推荐(0)
摘要: 1.连接mysql数据库,基本数据查询流程 # 1.连接 conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', password='', db='db8', charset='utf8') # 2.创建游标 cursor = 阅读全文
posted @ 2023-08-04 09:14 徐俊112 阅读(50) 评论(0) 推荐(0)