如何删除 Geopandas 数据框中的 'column index'?

How to delete 'column index' in Geopandas Data Frame?

我从这里下载了全球二氧化碳排放量的 .csv:https://data.worldbank.org/indicator/EN.ATM.CO2E.KT?locations=EU

将其放入 GeoPandas DataFrame 并将其与整个世界的 shapefile 合并。 在排放的 .csv 中,列名都是正确的。但是,做了ghg.head()之后,原来的列名上面多了一行,有'field_1', 'field_2' ...

我想知道如何删除那行不需要的列名,而让下面的行成为列名。我在下面附上了 ghg.head90 输出。 Image of output

请让我知道我能做什么,谢谢。

已下载相同的文件。关键部分是在加载 CSV 时跳过前三行。

import pandas as pd
from pathlib import Path
import geopandas as gpd

# https://api.worldbank.org/v2/en/indicator/EN.ATM.CO2E.KT?downloadformat=csv
f = Path.home().joinpath(
    "Downloads/API_EN/API_EN.ATM.CO2E.KT_DS2_en_csv_v2_3888754.csv"
)
df = pd.read_csv(f, skiprows=3)
world = gpd.read_file(gpd.datasets.get_path("naturalearth_lowres"))

# join data and geometry
gdf = gpd.GeoDataFrame(df.merge(world, left_on="Country Code", right_on="iso_a3"))

# now generate a choropleth
gdf.loc[
    :, ["Country Name", "Country Code", "Indicator Name", "2018", "geometry"]
].explore(
    column="2018",
    vmin=gdf["2018"].quantile(0.25),
    vmax=gdf["2018"].quantile(0.9),
    height=300,
    width=500,
)