摘要: 数据分析中一行转多行 1、test=[{"a":1,"b":2,"c":"aa|bb|cc"},{"a":2,"b":3,"c":"dd|ee"}] test=pd.DataFrame(test) 2、保留a、b两列作为索引,同时分割c,缺失的为None test.set_index(['a','b 阅读全文
posted @ 2023-02-05 17:59 大哥的小虎牙 阅读(282) 评论(0) 推荐(0)