question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parallel categories not recognizing dimension columns

See original GitHub issue

Data frame with two categorical columns and one numerical column being passed to px.parallel_categories. Only one column gets visualized, no matter what is passed to dimensions: a single column, two columns, or no columns.

Data types changed to str and category, but no change.

Data:

px

Code:

px.parallel_categories(occupations_by_year, dimensions=['Main_jobs', 'Election year'], color = 'count')

Result:

px2

Python 3.6 plotly==3.10.0 plotly-express==0.3.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
nicolaskruchtencommented, Dec 17, 2019

I’ll get this fixed in the next version 😃 I’ll move this issue to the plotly.py repo to get it scheduled.

0reactions
fjproboscommented, Jan 16, 2020

Same issue over here. It is an easy way to look for colinearity among categorical features. Please get it fixed.

unique transmission_model : 19 unique model_family: 24

image

image

Python 3.5.6 Plotly 4.4.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

plotly.express.parallel_categories — 5.11.0 documentation
In a parallel categories (or parallel sets) plot, each row of data_frame is grouped with other rows that share the same values of...
Read more >
Not all coordinates are plotted using parallel-coordinates (d3)
1 Answer 1 ... The problem is that the parallel coordinates library filters out dimensions that have fewer than two unique values in...
Read more >
Visualizing Multidimensional Categorical Data using Plotly
Therefore, it should not be missed in any categorical data analysis. ... Creating a pie chart# create labels using all unique values in...
Read more >
Visualize Data using Parallel Coordinates Plot
Learn to visualize high dimensional numerical data with Parallel ... dimensions: Values from these columns form the axes in the plot. fig ...
Read more >
Parallel Coordinates via Pivot and LOD Expressions
The Category is a dimension holding the different variables, ID identifies the different cars in this case, the Value Scaled is the scaled ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found