摘要: df = DataFrame({"a":[1,2,3],"b":[4,5,6],"c":[7,8,9]}) df.loc[df.a>=2,'b'] = 'new_data' print(df) 阅读全文
posted @ 2019-05-20 10:55 Sunshine168 阅读(348) 评论(0) 推荐(0) 编辑