...

摘要: 直接上代码,主要使用pd.concat来拼接数据帧 file_dir = "./data_set" # file directory all_csv_list = os.listdir(file_dir) # get csv list for single_csv in all_csv_list: 阅读全文
posted @ 2022-04-09 12:35 韩志超 阅读(413) 评论(0) 推荐(0)
摘要: lxml支持HTML及XML,解析速度快,兼容性强。使用方式和ElementTree比较像。 ## 安装方法 ```sh $ pip install lxml ``` ## lxml节点对象常用方法: - xpath(): 使用XPath获取下级节点,结果为列表 - text: 节点文本 - ite 阅读全文
posted @ 2022-04-09 11:27 韩志超 阅读(1009) 评论(0) 推荐(0)