In [1]:
    
%autosave 0
    
    
    
In [2]:
    
from pandas import read_csv
from suneku import REPO, hello, plot
hello(plot)
    
    
In [3]:
    
ENERGY = REPO/'data/NewYorkEnergy.csv'
TEMPS = REPO/'data/ZonalTempAnomaly.csv'
    
In [4]:
    
energy = ( read_csv(ENERGY,index_col='Year')
        .drop(columns=['Total'])
        .astype(float) )
energy.tail()
    
    Out[4]:
In [5]:
    
temps = ( read_csv(TEMPS,index_col='Year')
        .drop(columns=['Glob','NHem','SHem'])
        .astype(float) )
    
temps.tail()
    
    Out[5]:
In [6]:
    
hello(plot.area)
fig = plot.area(energy)
    
    
    
In [7]:
    
hello(plot.bar)
fig = plot.bar(energy)
    
    
    
In [8]:
    
hello(plot.hist)
fig = plot.hist(temps)
    
    
    
In [9]:
    
hello(plot.line)
fig = plot.line(temps)
    
    
    
In [10]:
    
hello(plot.quantile)
fig = plot.quantile(temps)