bin_data#

stellarphot.plotting.bin_data(data_set, num=3, error_set=None)[source]#

Bins data into groups of num.

Parameters:
data_setarray-like

The data to bin.

numint, optional

The number of data points to bin together. Default is 3.

error_setarray-like

The error on the data set. Default is None.

Returns:
binned_setarray-like

The binned data set.

errorarray-like, optional

The error on the binned data set.