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

More flexible parallel_categories magic #2102

Merged
merged 5 commits into from
Jan 21, 2020

Conversation

nicolaskruchten
Copy link
Contributor

Closes #2008 by:

  • Exposing the dimensions_max_cardinality cutoff in kwargs
  • Bumping the default from 20 to 50
  • Exempting the columns in dimensions from the cutoff

This means that a user can now do px.parallel_categories(tips, dimensions=["smoker", "total_bill"]) if they like and get both columns in the output even though total_bill has more than 50 unique values. The user can also now do px.parallel_categories(tips, dimensions_max_cardinality=1000) to get similar output to parallel coordinates although less readable/useful.

@emmanuelle if you like this approach to solving the problem I'll add some tests and docs.

@nicolaskruchten nicolaskruchten added this to the v4.5.0 milestone Jan 20, 2020
@emmanuelle
Copy link
Contributor

Looks good to me!

Co-Authored-By: Emmanuelle Gouillart <emma@plot.ly>
@emmanuelle
Copy link
Contributor

I left a suggestion, feel free to add it or not, 💃

Co-Authored-By: Emmanuelle Gouillart <emma@plot.ly>
@nicolaskruchten
Copy link
Contributor Author

Awesome, thanks :)

@nicolaskruchten nicolaskruchten merged commit 5d5e5d8 into master Jan 21, 2020
@fjprobos
Copy link

Thanks!

@nicolaskruchten nicolaskruchten deleted the dimensions_max_cardinality branch June 19, 2020 16:13
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.

Parallel categories not recognizing dimension columns
3 participants