We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Under Ubuntu 16, I am getting the following:
>>> import pandas as pd >>> import numpy as np >>> a = np.array([[1, 2], [3, 4]]) >>> a = pd.DataFrame(a) >>> a 0 1 0 1 2 1 3 4 >>> np.transpose(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "....../anaconda2/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 551, in transpose return transpose(axes) TypeError: transpose() takes exactly 1 argument (2 given) >>> a.T 0 1 0 1 3 1 2 4 >>> np.transpose(a.as_matrix()) array([[1, 3], [2, 4]])
The text was updated successfully, but these errors were encountered:
this was fixed in 0.18.1; though you should simply use a.T.
a.T
Sorry, something went wrong.
xref #12810
Still not working a.T please help...
No branches or pull requests
Under Ubuntu 16, I am getting the following:
The text was updated successfully, but these errors were encountered: