1.python中datafram怎么for遍历数据
dataframe创建方法有很多,常用基本格式是:dataframe 构造器参数:dataframe(data=[],index=[],coloumns=[])
in [272]: df2=dataframe(np.arange(16).reshape((4,4)),index=['a','b','c','d'],columns=['one','two','three','four'])
in [273]: df2
out[273]:
one two three four
a 0 1 2 3
b 4 5 6 7
c 8 9 10 11
d 12 13 14 15
转载请注明出处代码入门网 » python的for遍历数组