In [144]:
%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
import plotly.plotly as py
from plotly.graph_objs import *
import plotly.tools as tls
In [117]:
df = pd.read_csv('disc.csv', sep=' ')
In [118]:
df
Out[118]:
In [119]:
df.describe()
Out[119]:
In [124]:
fig1 = df.hist(bins=6)
In [123]:
fig2 = df.plot(kind='bar', stacked=True, x='Human' )
In [137]:
fig3 = df.plot(kind='box')
In [138]:
fig3
Out[138]:
In [140]:
fig4 = plt.figure()
In [145]:
tls.mpl_to_plotly(fig3)
In [91]:
df.median()
Out[91]:
In [100]:
df[df.Decisive > 70].sort('Decisive', ascending=False)
Out[100]:
In [101]:
df[df.Interactive > 70].sort('Interactive', ascending=False)
Out[101]:
In [102]:
df[df.Stability > 70].sort('Stability', ascending=False)
Out[102]:
In [103]:
df[df.Cautious > 70].sort('Cautious', ascending=False)
Out[103]:
In [76]:
df.groupby('Cautious').sum()
Out[76]:
In [ ]: