-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
PX Input upgrades - wide form, constant, identity, auto-orientation etc #2336
Conversation
b2ede23
to
b50cd08
Compare
Thank you for an awesome PR. I'll give it another round of review with the docs and tests on wide format, but all this is going to be super useful and I think this integrates really well with the existing px code, in particular the "wide" part. |
I think I will switch from |
Ask the last change I made stops something like |
@emmanuelle LMK if it's OK to approve the Percy mock change... basically with this PR we automatically set |
doc/python/wide-form.md
Outdated
fig.show() | ||
``` | ||
|
||
And of course, we can reassign `variable` to another argument as well, in this case we'll assign it to `x` and facet by the wide variable, and we'll switch to a [box plot](/python/box-plots/) for variety. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this sentence ("we can reassign variable
to another argument as well, in this case we'll assign it to x
").
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that sentence made no sense... fixed!
Co-authored-by: Chris Parmer <chris@plot.ly>
Co-authored-by: Chris Parmer <chris@plot.ly>
💃 for an epic PR! |
Closes #2333 - wide mode
Closes #2119 - constant and identity
Closes #2331 - auto-orientation
Closes #2332 -
x
XORy
behaviourCloses #2005 - Pandas backend
Closes #1735 - multiple columns for x, y & Pandas backend
Also addresses previously-resolved issues in a better way:
x
to the indexNote: the scope of "wide mode" has been broadly expanded to include all cartesian-2d PX functions other than
imshow
, and to include selection ofy=[col1, col2]
and optional overriding of the perpendicularx
value to be something other than the index as well. This seems like an odd fit fordensity_contour
/density_heatmap
until you think of them as a drop-in replacements forscatter
to deal with overplotting ;)Todo: