摘要: 可以使用前面 后面 上面 下面值填充 df = pd.DataFrame({ "animal": ["", "安全能力", "1", ], "color": ["", "安全能力", "5.1.1"], "name": ['安全能力等级', "一级", "√"], "name1": ["", "二级 阅读全文
posted @ 2023-10-18 17:56 vx_guanchaoguo0 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 首先推荐 camelot pdf_file_input = "TTAF086-2021.pdf" tables = camelot.read_pdf(pdf_file_input, pages='11', flavor='stream') df = tables[0].df df.to_excel( 阅读全文
posted @ 2023-10-18 17:52 vx_guanchaoguo0 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 代码比较简洁 df = pd.DataFrame({ "animal": ("horse", "horse", "dog", "dog"), "color": ("black", "white", "grey", "black"), "name": ("Blacky", "Wendy", "Rufu 阅读全文
posted @ 2023-10-18 17:32 vx_guanchaoguo0 阅读(175) 评论(0) 推荐(0) 编辑