import plotly.plotly as py
import plotly.figure_factory as ff
import pandas as pd
df = pd.read_csv(“https://raw.githubusercontent.com/plotly/datasets/master/school_earnings.csv”)
table = ff.create_table(df)
py.iplot(table, filename=‘jupyter/table1’)
when trying this code ,error is:
NameError Traceback (most recent call last)
in ()
----> 1 table = ff.create_table(df)
2 py.iplot(table, filename=‘jupyter/table1’)
NameError: name ‘ff’ is not defined