1
摘要: #### dataframe删除特定条件的行 ##### 单条件删除行 ``` import pandas as pd a = ['Mary', 'Sellina','Zaca', 'mike', 'golla'] b = [26, 28, 27, 30, 40] data = {'name': a 阅读全文
posted @ 2023-08-10 15:24 Bonne_chance 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #### 将dataframe两列转为字典 ``` import pandas as pd a = ['Mary','Sellina','Zaca'] b = [26,28,27] data = {'name':a,'age':b} df = pd.DataFrame(data) ``` 将两列转为 阅读全文
posted @ 2023-08-10 14:47 Bonne_chance 阅读(99) 评论(0) 推荐(0) 编辑
1