dataframe, set index from list

后端 未结 3 900
后悔当初
后悔当初 2021-02-13 17:30

Is it possible when creating a dataframe from a list, to set the index as one of the values?

import pandas as pd

tmp = [[\'a\', \'a1\'], [\'b\',\' b1\']]

df =          


        
3条回答
提交回复
热议问题