monitor file and Pandas UserWarning
Pandas UserWarning when opening the monitor file that is generated by following the steps in the online doc.
Steps to reproduce
Generate monitor file according to steps in the online docs (section 6.2.3. Generate a monitor file compatible with the CIF). Try to plot the result using the python code in step 2.
python version: Python 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 23:03:20)
pandas version: '1.0.3'
What is the current bug behavior?
Pandas issues a UserWarning (see below). However, a plot can still be generated by entering the rest of the code in step 2.
What is the expected correct behavior?
No Warnings or Errors when opening a monitor file.
Relevant logs and/or screenshots
import matplotlib.pyplot as plt from pycif.utils.datastores import dump datastore = dump.read_datastore('jvp_monitor.nc') /home/jpt930/werk/verify/cif/src/pycif/utils/datastores/dump.py:185: UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access setattr(df, "nc_attributes", ds.attrs)