随笔分类 -  python之pandas库

摘要:截取官方文档 阅读全文
posted @ 2022-07-14 10:04 kuanleung 阅读(2) 评论(0) 推荐(0) 编辑
摘要:#筛选用 import pandas as pd import numpy as np import re #pd.options.display.max_columns = None pd.set_option('display.max_columns', None) pd.set_option( 阅读全文
posted @ 2021-03-14 19:02 kuanleung 阅读(10) 评论(0) 推荐(0) 编辑
摘要:import pandas as pd import numpy as np pd.set_option('display.max_columns', None) pd.set_option('display.max_rows', None) dataf = pd.read_excel(r'C:\U 阅读全文
posted @ 2021-03-10 21:53 kuanleung 阅读(5) 评论(0) 推荐(0) 编辑
摘要:参考: https://jingyan.baidu.com/article/380abd0a032e681d91192c74.html Sub SaveToCSVs() Dim fDir As String Dim wB As Workbook Dim wS As Worksheet Dim fPa 阅读全文
posted @ 2021-03-04 16:30 kuanleung 阅读(9) 评论(0) 推荐(0) 编辑
摘要:import pandas as pd result_0 = pd.read_csv('2006年污染.csv',encoding = 'GBK') result = result_0 for i in range(2007,2019): result_1 = pd.read_csv('{}年污染. 阅读全文
posted @ 2021-03-03 10:52 kuanleung 阅读(1) 评论(0) 推荐(0) 编辑
摘要:供大家随时查阅 import pandas as pd import numpy as np import re #pd.options.display.max_columns = None pd.set_option('display.max_columns', None) pd.set_opti 阅读全文
posted @ 2021-03-03 10:35 kuanleung 阅读(5) 评论(0) 推荐(0) 编辑
摘要:import os import pandas as pd path = r'C:\\Users...' excelFile = os.path.join(path,'文件名') data = pd.read_excel(excelFile) https://blog.csdn.net/qq_265 阅读全文
posted @ 2021-03-01 08:34 kuanleung 阅读(54) 评论(0) 推荐(0) 编辑
摘要:import pandas as pd #pd.options.display.max_columns = None # 也ok,亲测 pd.set_option('display.max_columns', None) pd.set_option('display.max_rows', None) 阅读全文
posted @ 2021-02-28 08:39 kuanleung 阅读(3) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示