less than 1 minute read

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)]

Categories:

Updated:

Leave a comment