I'm getting a UserWarning when plotting a dataframe.
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
series.name = label
I've went to the web link and can't seem to find what I'm doing wrong. My code is as follows:
f, axs = plt.subplots(4, sharex=True)
df.plot('time', ['a', 'b'], color=['red','blue'], ax=axs[0])
It gives the warning on the second line above.
df.head(1) returns data in the format below. Any single plot I do with this dataframe gives the same error.
time b a bR aR bS bS4 \
0 12:00:00 601.61 601.99 nan 601.92 775 975
bS8 bS16 aS2 ... aRa_8 aRa_16 \
0 1373 2396 1340 ... 5 5
[1 x 45 columns]