python dataframe slice
2021-06-24 15:04
阅读:516
标签:span ram nump range imp python soft .data family import pandas as pd import numpy as np d=np.array(range(10)).reshape(2,5) data=pd.DataFrame(d) data.columns=[‘a‘,‘b‘] data[‘test‘]=[‘m1901\t‘,‘m1902\t‘,‘m1903\t‘,‘m1904\t‘,‘m1905\t‘] data[‘test‘]=data[‘test‘].str.slice(1,5)#从第二个开始截取中间4位。 python dataframe slice 标签:span ram nump range imp python soft .data family 原文地址:https://www.cnblogs.com/thechain/p/9668902.html
评论
亲,登录后才可以留言!