【python】 DataFrame取某一行
df:AB01.068932 -0.7943072 -0.4700561.1922114 -0.2845610.75602961.037563 -0.2678208 -0.538478 -0.800654>>> df.iloc[[0]]>>> 01.068932 -0.794307
·
df:
A B
0 1.068932 -0.794307
2 -0.470056 1.192211
4 -0.284561 0.756029
6 1.037563 -0.267820
8 -0.538478 -0.800654
>>> df.iloc[[0]]
>>> 0 1.068932 -0.794307
更多推荐
已为社区贡献1条内容
所有评论(0)