I am following a tutorials in plotly official website. I am using jupyter notebook. and I got an import error for plot.grid_objs. I am using plotly 4.0. Any suggestion to fix it? Thanks
https://plotly.com/python/v3/gapminder-example/
ImportError: The plotly.grid_objs module is deprecated, please install the chart-studio package and use the chart_studio.grid_objs module instead
import plotly as py
import plotly.figure_factory as FF
from plotly.grid_objs import Grid, Column
import pandas as pd
import time
import pickle
filename_pickle='dataset.pkl'
try:
dataset=pd.read_pickle(filename_pickle)
except FileNotFoundError:
url = 'https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv'
dataset = pd.read_csv(url)
dataset.to_pickle(filename_pickle)
table = FF.create_table(dataset.head(10))
py.offline.iplot(table) # table is inline inside jupyter notebook
ImportError:
The plotly.grid_objs module is deprecated,
please install the chart-studio package and use the
chart_studio.grid_objs module instead