如何获取 pandas DataFrame 的第一列名称

first_column_name.py
df.columns[0]

将以 str 返回第一列的名称。


Check out similar posts by category: Pandas, Python