如何将列转换为具有与索引相同的现有值的索引?

时间:2016-11-18 16:08:25

标签: python pandas dataframe

我有一个名为DataFrame的{​​{1}},它有这个结构和数据:

Products

我想知道如何将products索引转换为具有相同值的列,并成为Product ID的索引。

我已经尝试了

DataFrame

这就是我得到的:

new products DataFrame

我想得到的是:

New DataFrame with the required index

1 个答案:

答案 0 :(得分:0)

您可以使用它来获得所需的结果:

Caused by: java.io.FileNotFoundException: class path resource [request-
ws/src/main/resources/application.yml] cannot be opened because it does 
not exist

Here

相关问题