In [1]:
# Necessary import evil
import physt
from physt import h1, bin_utils
import numpy as np
import matplotlib.pyplot as plt
import seaborn.apionly as sns
%matplotlib inline

In [2]:
x = np.array([[0, 1], [2, 3.2]])
x


Out[2]:
array([[ 0. ,  1. ],
       [ 2. ,  3.2]])

In [3]:
for i in x:
    print(i)


[ 0.  1.]
[ 2.   3.2]

In [7]:
i1 = [0, 1, 2, 3]
i2 = [1, 2, 3, 4]

bin_utils.is_subbinning(i2, i1)


Out[7]:
False

In [5]:
bin_utils.is_subbinning(i2, i1)


Out[5]:
True

In [ ]: