after commit 8c8aa009ce8fec3b5d5a8de9d09ed6030ba479af, which allows for passing an iterable of methods to the base TransformationAccessor, the method parameter of plot accessors can accept multiple transforms. the calculation is done correctly in the plotting method, but when trying to match the data and column names, an error is thrown. for example,
Traceback (most recent call last):
File "/Users/loganhotz/code/python/projects/edan-dev/attempt.py", line 23, in <module>
pce.plot(method=('yryr%', 'difa%'), subs=False)
File "/Users/loganhotz/code/python/projects/edan-dev/edan/plotting/nipa.py", line 382, in __call__
df.columns = series_names
File "/Users/loganhotz/code/python/projects/edan-dev/venv/lib/python3.9/site-packages/pandas/core/generic.py", line 5478, in __setattr__
return object.__setattr__(self, name, value)
File "pandas/_libs/properties.pyx", line 66, in pandas._libs.properties.AxisProperty.__set__
File "/Users/loganhotz/code/python/projects/edan-dev/venv/lib/python3.9/site-packages/pandas/core/generic.py", line 670, in _set_axis
self._mgr.set_axis(axis, labels)
File "/Users/loganhotz/code/python/projects/edan-dev/venv/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 220, in set_axis
raise ValueError(
ValueError: Length mismatch: Expected axis has 2 elements, new values have 1 elements
after commit
8c8aa009ce8fec3b5d5a8de9d09ed6030ba479af
, which allows for passing an iterable of methods to the base TransformationAccessor, themethod
parameter of plot accessors can accept multiple transforms. the calculation is done correctly in the plotting method, but when trying to match the data and column names, an error is thrown. for example,raises the error