Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e994e55 commit edbd796Copy full SHA for edbd796
plotly/figure_factory/__init__.py
@@ -1,5 +1,7 @@
1
from __future__ import absolute_import
2
3
+from plotly import optional_imports
4
+
5
# Require that numpy exists for figure_factory
6
import numpy
7
@@ -18,4 +20,5 @@
18
20
from plotly.figure_factory._table import create_table
19
21
from plotly.figure_factory._trisurf import create_trisurf
22
from plotly.figure_factory._violin import create_violin
-from plotly.figure_factory._county_choropleth import create_choropleth
23
+if optional_imports.get_module('pandas') is not None:
24
+ from plotly.figure_factory._county_choropleth import create_choropleth
0 commit comments