Skip to content

Commit 7eb02e7

Browse files
committed
print statements for import error
1 parent 3b9412a commit 7eb02e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plotly/figure_factory/_county_choropleth.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,13 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None,
556556
```
557557
"""
558558
# ensure optional modules imported
559+
if not gp:
560+
print 'np gp'
561+
if not shapefile:
562+
print 'no shapefile'
563+
if not shapely:
564+
print 'no shaply'
565+
559566
if not gp or not shapefile or not shapely:
560567
raise ImportError("geopandas, shapefile and shapely must be "
561568
"installed for this figure factory")

0 commit comments

Comments
 (0)