Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
df.squeeze() doesn't support axis parameter #15339
Comments
|
@kernc how is this actually useful though? numpy needs this because of n-dim shrinking to a lower dim. pandas generally has 2-dim max so this is not so important. |
jreback
added API Design Reshaping
labels
Feb 8, 2017
|
Indeed, as the example shows, it is only useful to squeeze a 1×1 frame into a series instead of a scalar, or to keep 1×N frame a frame. |
jreback
added this to the
0.20.0
milestone
Feb 8, 2017
jreback
closed this
in 87c2c2a
Feb 8, 2017
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
kernc + AnkurDedania |
5d7a777
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kernc commentedFeb 8, 2017
•
edited
Code Sample, a copy-pastable example if possible
Problem description
np.squeezesupportsaxisparameter and this comment in the source implies it should eventually be implemented.Expected Output
Output of
pd.show_versions()pandas: 0.19.0+416.ge1390cd