Numpy Note
np.logical_and()
It gives True and False value of x1 AND x2 element-wise.
grouped[np.logical_and(count*id_per_graph<=grouped['shop_id'], grouped['shop_id']<(count+1)*id_per_graph)]
It gives True and False value of x1 AND x2 element-wise.
grouped[np.logical_and(count*id_per_graph<=grouped['shop_id'], grouped['shop_id']<(count+1)*id_per_graph)]
Leave a comment