04 2022 档案
摘要:如下代码,亲测有效,后面会附上入口以及出口数据结构截图 def test_func(file_path): """ 把pandas数据结构-dataframe,横向的索引,转成纵向的 :return: """ pd_obj = pandas.read_excel(file_path, engine=
阅读全文
摘要:import openpyxlfrom openpyxl.comments import Comment from openpyxl.styles import Font, Alignment, Border, Side, colors # 处理单元格样式wb = openpyxl.load_wor
阅读全文
摘要:pandas中文学习官网地址 https://www.pypandas.cn/ 我自己用到的知识点汇总 基础版: dates = pd.date_range('20130101', periods=6) # rows index --6 df = pd.DataFrame(np.random.ran
阅读全文