摘要: 为了保留原始的数字字符串的格式,可以指定dtype=str,来将原始数据按字符串格式导入: df2 = pd.read_excel('numeric.xlsx',dtype=str) 阅读全文
posted @ 2020-05-27 07:43 清源居士 阅读(2723) 评论(0) 推荐(0) 编辑
摘要: 字典合并: def merge(x,y): z = x.copy() z.update(y) return z 阅读全文
posted @ 2020-05-27 07:36 清源居士 阅读(301) 评论(0) 推荐(0) 编辑