-3
Employee Role Working hrs
如何大熊猫
John Senior accountant 40
Mark CFO 38
Mete Developer 35
目标是返回第2列的标题选择特定的列的唯一的名字:角色
Employee Role Working hrs
如何大熊猫
John Senior accountant 40
Mark CFO 38
Mete Developer 35
目标是返回第2列的标题选择特定的列的唯一的名字:角色
假设你dataframe被命名为'df',并且这些是唯一的三列s,以下将返回列标题'Role'
df.columns.values[1]