xdem.spatialstats.nd_binning

Contents

xdem.spatialstats.nd_binning#

xdem.spatialstats.nd_binning(values, list_var, list_var_names, list_var_bins=None, statistics=('count', <function nanmedian>, <function nmad>), list_ranges=None)[source]#

N-dimensional binning of values according to one or several explanatory variables with computed statistics in each bin. By default, the sample count, the median and the normalized absolute median deviation (NMAD). The count is always computed, no matter user input. Values input is a (N,) array and variable input is a L-sized list of flattened arrays of similar dimensions (N,). For more details on the format of input variables, see documentation of scipy.stats.binned_statistic_dd.

Parameters:
Return type:

DataFrame

Returns: