你能帮我吗,当我尝试将 pandas DataFrame 转换为 Xarray 数据集时,我得到了这个错误

问题描述 投票:0回答:0

你能帮帮我吗,当我尝试将 pandas DataFrame 转换为 Xarray 数据集时,我收到了这个错误。

enter image description here

# Convert the DataFrame back to xarray Dataset and assign CRS
temp_group_df.set_index(['lat', 'lon', 'month'], inplace=True)
temp_array = temp_group_df.to_xarray()
temp_array.rio.write_crs('epsg:4326', inplace=True)
display(temp_array)

python pandas geospatial python-xarray jcr-sql2
© www.soinside.com 2019 - 2024. All rights reserved.