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.

Requires pandas, but not documented?

See original GitHub issue

I’m new to plotly. I installed plotly with pip install plotly==4.5.4 and when I tried to generate a graph, I got ‘ImportError: Plotly express requires pandas to be installed.’

The getting-started page says “This package contains everything you need to write figures to standalone HTML files.” I looked through the documentation, but couldn’t find anywhere that said pandas was required, or how to install pandas.

To reproduce:

>>> import plotly.express as px
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ken/blog/corona/env/lib/python3.7/site-packages/plotly/express/__init__.py", line 12, in <module>
    Plotly express requires pandas to be installed."""
ImportError: Plotly express requires pandas to be installed.

Maybe this is intentional (see #2125), but I think the documentation should be clearer. Automatically installing pandas would be even better.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
neo-sirapatcommented, Nov 26, 2020

By the way, i’ve got installed pandas, but i still get this error - http://joxi.ru/EA4DMDzipXPV0A

I have the same problem.

9reactions
pnirtepcommented, Nov 3, 2020

By the way, i’ve got installed pandas, but i still get this error - http://joxi.ru/EA4DMDzipXPV0A

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to import plotly.express but get this error even though ...
""" ImportError: Plotly express requires pandas to be installed. But I have pandas installed and if I run: pip show pandas. I get...
Read more >
Installation — pandas 1.5.2 documentation
Installing with Anaconda​​ The simplest way to install not only pandas, but Python and the most popular packages that make up the SciPy...
Read more >
Installation — pandas 0.16.1 documentation
Trying out pandas, no installation required!¶. The easiest way to start experimenting with pandas doesn't involve installing pandas at all. Wakari is a...
Read more >
Installation — pandas 1.3.5 documentation
The simplest way to install not only pandas, but Python and the most popular packages that ... If you need packages that are...
Read more >
Getting started — pandas 1.5.2 documentation
Working with conda? pandas is part of the Anaconda distribution and can be installed with Anaconda or Miniconda: conda install pandas.
Read more >

github_iconTop Related Medium Post

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