![](/img/trans.png)
[英]How to read in csv with to to a DASK dataframe so it will not have “Unnamed: 0” column?
[英]How to read all unnamed column on dataframe?
我有这样的 dataframe 值数据
acolumn bcolumn
70 0.503462 0.6
71 0.480712 0.5
72 0.505440 0.5
73 0.553907 0.5
74 0.344214 0.5
如何阅读 dataframe 的第一个未命名列? 我已经尝试使用 iloc(), columns[0],但 output 仍然是一个列,我希望 output 是这样的
70, 71, 72, 73, 74
我想使用该数据在我的网站上标记我的图表。
我想你想要的是 dataframe 的索引。
尝试:
df.index
干杯。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.