The axis labeling information in pandas objects serves many purposes:
Identifies data (i.e. provides metadata) using known indicators, important for analysis, visualization, and interactive console display.
Enables automatic and explicit data alignment.
Allows intuitive getting and setting of subsets of the data set.
大熊猫中的
Series
和DataFrame
一直是索引,原因是docs:因此,对于处理数据,您可以忽略它(如果数据处理不需要):
避免将索引写入文件的最后一步是将} :
index=False
参数添加到^{相关问题 更多 >
编程相关推荐