Repository navigation
docs: add pandas to the README Quickstart Plotly Express install command - #5859
Closed
DawnofGenX wants to merge 1 commit into
Closed
DawnofGenX wants to merge 1 commit into
DawnofGenX wants to merge 1 commit into
Conversation
The Plotly Express quickstart example (px.bar with list inputs) requires pandas, but the install command only listed plotly[express], which does not pull in pandas. A fresh environment following the quickstart fails with 'NotImplementedError: Pandas installation is required if no dataframe is provided.' Add pandas to the install line so the example runs as written.
Contributor
|
As I said in #5857, the README has been updated to where we want it, so we don't need these changes. The line below the px example mentions that a dataframe library is required. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following up on #5857. #5804 split the Quickstart into Graph Objects and Plotly Express sections — thank you for that. The Express example still doesn't run in a fresh environment, though:
plotly[express]only adds numpy, and thepx.bar(x=[...], y=[...])example uses list inputs, which Plotly Express needs pandas for.Repro on current
main, clean venv:This adds
pandasto the Express install line so the example runs as written:The Graph Objects section is unchanged and still works with just
plotly.