I have created a histogram2d grid in python numpy and plotted some values in each grid cell. I want to calculate how many points go into each cell along with its mean and standard deviation. How can I achieve that one?
Asked
Active
Viewed 236 times
0
-
See https://stackoverflow.com/questions/6163334/binning-data-in-python-with-scipy-numpy – ImportanceOfBeingErnest Sep 26 '19 at 21:42
-
The link which you have mentioned has digitized method information but it only works along with histogram as it has a 1D array. But in my case, it's a 2D data. – Rock Star Sep 26 '19 at 21:58
-
That was meant for you to get an understanding what to look for. For example seaching for "digitize 2D" yields https://stackoverflow.com/questions/31635265/two-dimensional-np-digitize – ImportanceOfBeingErnest Sep 26 '19 at 22:32