-
-
Notifications
You must be signed in to change notification settings - Fork 1
Support using DataFrame index for colors, labels, x, y, etc. #126
Comments
We will try to support some version of this in an upcoming release. Most likely not the default behaviour with |
ooh, that sounds great. You could almost make the Is there somewhere better for me to follow/comment on your progress towards this, or is this thread the right place to watch? |
My intention is to create a PR and then update all the relevant issues :) Hopefully in the next month or so! |
Awesome. Following those too. lmk if there's any kind of support I can provide. |
I could do that, yeah, if it's there, otherwise it would default to either "x" or "index" (undecided) |
This will be implemented as part of plotly/plotly.py#1767 ... thanks for the input and patience :) |
We've actually gone farther and implemented full wide-mode support: https://medium.com/plotly/beyond-tidy-plotly-express-now-accepts-wide-form-and-mixed-form-data-bdc3e054f891 |
I often use the DataFrame index for something meaningful, such as a timestamp corresponding to when the data was taken, or a sequence number. In those cases, it'd be great to be able to use that in plotly express to determine the X value, data color, text label, etc.
Currently the workaround is to copy the index to a separate column, e.g.
Instead of having to change the DataFrame, it would be nice if I could just go ahead and do something like
or even, in the special case of using it as an X value, it could be the default:
The text was updated successfully, but these errors were encountered: