def tt(x): if x.name == "distribution": return [el[0:10] for el in x.values] else: return x test1 = test.apply(tt)
本文标题:pandas操作一列数据
本文链接:https://www.haomeiwen.com/subject/qchfxqtx.html
网友评论