Skip to content
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

Fix GroupBy.descirbe for multi-index columns. #1922

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

ueshin
Copy link
Collaborator

@ueshin ueshin commented Nov 20, 2020

Fixes GroupBy.describe for multi-index columns.

>>> kdf = ks.DataFrame({("x", "a"): [1, 1, 3], ("x", "b"): [4, 5, 6], ("y", "c"): [7, 8, 9]})
>>> kdf.groupby(("x", "a")).describe()
Traceback (most recent call last):
...
pyspark.sql.utils.AnalysisException: cannot resolve '`(('x', 'b'), 'quartiles')`' given input columns: ...

@ueshin ueshin requested a review from xinrong-meng November 20, 2020 22:37
@HyukjinKwon HyukjinKwon merged commit e088ef7 into databricks:master Nov 23, 2020
@xinrong-meng
Copy link
Contributor

Out of curiosity, is describe expected to be in https://koalas.readthedocs.io/en/latest/reference/groupby.html?

@ueshin ueshin deleted the groupby_describe branch November 23, 2020 19:25
@ueshin
Copy link
Collaborator Author

ueshin commented Nov 23, 2020

ah, we should add it. let me submit the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants