import plotly.plotly as py
import plotly.graph_objs as go
from plotly.offline import download_plotlyjs,init_notebook_mode,plot,iplot
init_notebook_mode(connected = True)
2.從實際資料中繪製Choropleth Map
讀取資料
可在資料中放入想要顯示的country code, z值 (數量), label
import pandas as pd
df = pd.read_csv('2014_World_GDP')
df.head()