I installed pyspc and run on Jupyter Notebook successfully when using original samples. But when I tried introducing a self defined nested list and an error message showed up. pyspc library: https://github.com/carlosqsilva/pyspc
from pyspc import*
import numpy
abc=[[2,3,4],[4,5.6],[1,4,5],[3,4,4],[4,5,6]]
a=spc(abc)+xbar_rbar()+rules()+rbar()
print(a)
error message for AssertionError
Thank you for advise where went wrong and how to fix it.
Check the data you have accidentally used the
.
instead of,
for value[4,5.6]
, second element of the list.Here is the corrected data
Hope this will help.