Jovian
⭐️
Sign In
In [6]:
%load_ext autoreload
%autoreload 2
The autoreload extension is already loaded. To reload it, use: %reload_ext autoreload
In [15]:
import jovian
In [7]:
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')
In [10]:
df_sampled = df.head(15)
In [14]:
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')
In [ ]:
jovian.commit()
[jovian] Please enter your API key (from https://jvn.io ): ········ [jovian] Saving notebook..
In [ ]: