Unknown behavior on px.parallel_categories

I am having trouble replicating this issue, so fair warning, this may be user error. Still, I cannot understand why it is happening, so I will post it here.

Consider a dataframe with nulls as follows:

userName                   0
content                    0
score                      0
thumbsUpCount              0
reviewCreatedVersion       0
at                         0
replyContent            8851
repliedAt               8851
appVersion                 0
at_dt                      0
Weekday                    0
Month                      0
Day                        0
Hour                       0
Minute                     0
Date                       0
score_1                    0

and a parallel categories chart, create as follows:

px.parallel_categories(uber_df3[["score", "reviewCreatedVersion", "appVersion", "score_1"]])

which works fine.

now, when I add color to the chart as such

px.parallel_categories(uber_df3[["score", "reviewCreatedVersion", "appVersion", "score_1"]], color="score_1")

there is now an unnamed section of rows, where there are no nans.

does anyone know why these appear?

1 Like