# 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
x = np.array([[0, 1], [2, 3.2]])
x
array([[ 0. , 1. ], [ 2. , 3.2]])
for i in x:
print(i)
[ 0. 1.] [ 2. 3.2]
i1 = [0, 1, 2, 3]
i2 = [1, 2, 3, 4]
bin_utils.is_subbinning(i2, i1)
False
bin_utils.is_subbinning(i2, i1)
True