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

feat: support non-numeric columns in pivot table #10389

Merged
merged 3 commits into from Jul 28, 2020

Conversation

villebro
Copy link
Member

@villebro villebro commented Jul 22, 2020

SUMMARY

Adds support for non-numeric metrics in pivot table. Since only min and max aggregation works for non-numeric dtypes in Pandas, choosing any other aggregator will default to max.

Related PR: apache-superset/superset-ui#695

BEFORE

image

AFTER

image

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@villebro villebro added v0.37 and removed v0.37 labels Jul 28, 2020
@villebro villebro force-pushed the villebro/pivot-table-non-numeric branch from f6b0d09 to 8009b0f Compare July 28, 2020 06:38
@villebro
Copy link
Member Author

Thanks @mistercrunch; broke out function and added unit tests

@villebro villebro changed the title [WIP] fix: support non-numeric columns in pivot table fix: support non-numeric columns in pivot table Jul 28, 2020
@villebro villebro changed the title fix: support non-numeric columns in pivot table feat: support non-numeric columns in pivot table Jul 28, 2020
@villebro villebro merged commit fc28c92 into apache:master Jul 28, 2020
villebro added a commit that referenced this pull request Jul 28, 2020
* fix: support non-numeric columns in pivot table

* bump package and add unit tests

* mypy
@villebro villebro deleted the villebro/pivot-table-non-numeric branch July 28, 2020 15:19
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
* fix: support non-numeric columns in pivot table

* bump package and add unit tests

* mypy
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* fix: support non-numeric columns in pivot table

* bump package and add unit tests

* mypy
@mistercrunch mistercrunch added 🍒 0.37.0 🍒 0.37.1 🍒 0.37.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.38.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M v0.37 🍒 0.37.0 🍒 0.37.1 🍒 0.37.2 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants