In [1]:
import commfxs as h
from plotly.offline import plot
from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
import plotly.graph_objs as go
init_notebook_mode()


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-a49cb89250a0> in <module>()
----> 1 import commfxs as h
      2 from plotly.offline import plot
      3 from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
      4 import plotly.graph_objs as go
      5 init_notebook_mode()

ImportError: No module named 'commfxs'

In [2]:
bars = go.Bar(x=[1, 2, 3, 4, 5], y=[1, 2, 3, 4, 5])
layout = go.Layour(title = "Test Title")
iplot(go.Figure(bars = go.Data([bars]), layout = layout))


---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-941a773d2bea> in <module>()
      1 bars = go.Bar(x=[1, 2, 3, 4, 5], y=[1, 2, 3, 4, 5])
----> 2 layout = go.Layour(title = "Test Title")
      3 iplot(go.Figure(bars = go.Data([bars]), layout = layout))

AttributeError: 'module' object has no attribute 'Layour'

In [3]:
h.getMatrix("Areas.xlsx", "Sarah")


Out[3]:
array([[ 1.        ,  0.33333333,  3.        ,  1.        ],
       [ 3.        ,  1.        ,  0.33333333,  3.        ],
       [ 0.33333333,  3.        ,  1.        ,  0.11111111],
       [ 1.        ,  0.33333333,  9.        ,  1.        ]])

In [4]:
h.getMatrix("Areas.xlsx", "Sarah", better = 1./3, muchbetter = 1./9)


Out[4]:
array([[ 1.        ,  3.        ,  0.33333333,  1.        ],
       [ 0.33333333,  1.        ,  3.        ,  0.33333333],
       [ 3.        ,  0.33333333,  1.        ,  9.        ],
       [ 1.        ,  3.        ,  0.11111111,  1.        ]])

In [5]:
h.single_stats("Areas.xlsx", "Sarah")


Out[5]:
array([ 0.17880869,  0.29666912,  0.17972793,  0.34479426])

In [6]:
h.single_stats("Areas.xlsx", "Sarah", better = 1./3, muchbetter = 1./9)


Out[6]:
array([ 0.18679959,  0.24011725,  0.39996441,  0.17311876])

In [ ]: