-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Panel arguments can no longer be named. #3556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
try
|
@jreback passing only kwargs will fail here because |
his is an easy fix |
@jreback I have a pr ready for this, should i submit? |
oh if u have I ahead |
This code used to work some time around version 0.10, but now generates a ValueError:
In [14]: y
Out[14]:
<class 'pandas.core.panel.Panel'>
Dimensions: 2 (items) x 3 (major_axis) x 2 (minor_axis)
Items axis: z1 to z2
Major_axis axis: 0 to 2
Minor_axis axis: a to b
In [15]: y.transpose('minor', 'major', 'items')
Out[15]:
<class 'pandas.core.panel.Panel'>
Dimensions: 2 (items) x 3 (major_axis) x 2 (minor_axis)
Items axis: a to b
Major_axis axis: 0 to 2
Minor_axis axis: z1 to z2
In [16]: y.transpose( items='minor', major='major', minor='items')
ValueError Traceback (most recent call last)
in ()
----> 1 y.transpose( items='minor', major='major', minor='items')
/usr/local/lib/python2.7/dist-packages/pandas-0.12.0.dev_be25266-py2.7-linux-x86_64.egg/pandas/core/panel.pyc in transpose(self, _args, *_kwargs)
1176 except (IndexError):
1177 raise ValueError(
-> 1178 "not enough arguments specified to transpose!")
1179
1180 axes = [self._get_axis_number(kwargs[a]) for a in self._AXIS_ORDERS]
ValueError: not enough arguments specified to transpose!
The text was updated successfully, but these errors were encountered: