Skip to content

Commit

Permalink
Merge pull request #958 from dpryan79/fix941
Browse files Browse the repository at this point in the history
Don't crash if figure_factory is imported but pandas isn't installed
  • Loading branch information
Kully authored Mar 6, 2018
2 parents e994e55 + edbd796 commit 8e7c112
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plotly/figure_factory/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import absolute_import

from plotly import optional_imports

# Require that numpy exists for figure_factory
import numpy

Expand All @@ -18,4 +20,5 @@
from plotly.figure_factory._table import create_table
from plotly.figure_factory._trisurf import create_trisurf
from plotly.figure_factory._violin import create_violin
from plotly.figure_factory._county_choropleth import create_choropleth
if optional_imports.get_module('pandas') is not None:
from plotly.figure_factory._county_choropleth import create_choropleth

0 comments on commit 8e7c112

Please sign in to comment.