Get a list of lists of elements in each bin of a 2D histogram
Get a list of lists of elements in each bin of a 2D histogram Question: I’m working with 2D data, and I’m aware of how to bin the data to form a 2D histogram using np.histogram2d, and also how to find the bin-location of a particular element using np.digitize. The code I use to find …