Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Plotly error troubleshoot

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

@abhishek This is a false error. The right one is filename=/'jupyter/table1'. Perhaps jupyter is a folder on your system, but the plot is not saved locally via py.iplot, but on the Plotly cloud, where there is no folder called jupyter .

Just replace filename='jupyter/table1' with filename='table1' and it will work if you have a Plotly account.

Can you help me by instructing the steps in taking a data from wiki and analyzing it in Jupiter notebook around different tables and finding eigen vector, betweenness, degree and page rank.

Regards
Abhishek