Relative Content

Tag Archive for pythonpandaspython-xarraynetcdf

Xarray failing to save NetCDF due to illegal characters

I have a DataFrame in python. Using “df.to_excel('temp/df.xlsx')” i have exported it, here is a screenshot of the resulting file in Excel:

This exists in python as a Pandas DataFrame.
I have pushed a few of these together into a 3d array using xarray. I can not save this to netCDF due to:
RuntimeError: NetCDF: Name contains illegal characters, and yet it does not appear to contain any illegal characters. Is there a hidden part to this DataFrame that I can not see that is causing problems?