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
like numpy.sqeeze but returns the correct pandas object
add in core/generic?
anyone like squash better?
(prob a fair number of special cases where need to check, e.g. empty Series)... so propose for 0.11
def squeeze(self): """ squeeze length 1 dimensions """ return self.ix[tuple([ a[0] if len(a) == 1 else slice(None) for a in self.axes ])]
The text was updated successfully, but these errors were encountered:
close by PR #2734
Sorry, something went wrong.
ENH: provide squeeze method for removing 1-len dimensions, close (GH p…
8d952a1
…andas-dev#2544)
ENH: provide squeeze method for removing 1-len dimensions, close (GH #…
c6b2cff
…2544)
No branches or pull requests
like numpy.sqeeze but returns the correct pandas object
add in core/generic?
anyone like squash better?
(prob a fair number of special cases where need to check, e.g. empty Series)...
so propose for 0.11
The text was updated successfully, but these errors were encountered: