Learn practical skills, build real-world projects, and advance your career
Updated 5 years ago
%load_ext autoreload
%autoreload 2
The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload
import jovian
import plotly.offline as py
# import plotly.plotly as py
import plotly.figure_factory as ff
import pandas as pd
py.init_notebook_mode(connected=True)
df = pd.read_csv("school_earnings.csv")
table = ff.create_table(df)
py.iplot(table, filename='jupyter-table1')
df_sampled = df.head(15)
import plotly.graph_objs as go
trace = go.Table(
header=dict(values=list(df.columns),
fill = dict(color='#C2D4FF'),
align = ['left'] * 5),
cells=dict(values=[df[x] for x in df.columns],
fill = dict(color='#F5F8FF'),
align = ['left'] * 5))
data = [trace]
py.iplot(data, filename = 'pandas_table')