Loading

摘要: 删除存在指定值的行 data_deleted_0 = data.drop(data[(data[column_name] == 0)].index)# 此处使用了布尔索引进行选择,随后输出符合条件项的index,最后使用drop来删除数据 相邻数据之间的比较 df a b c 0 1 1 1 1 2 阅读全文
posted @ 2020-10-30 23:26 lixin2020 阅读(121) 评论(0) 推荐(0)