你能帮帮我吗,当我尝试将 pandas DataFrame 转换为 Xarray 数据集时,我收到了这个错误。
# 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)