get_histogram_bins

mastml.plot_helper.get_histogram_bins(y_df)[source]

Method to obtain the number of bins to use when plotting a histogram

Args:

y_df: (pandas Series or numpy array), array of y data used to construct histogram

Returns:

num_bins: (int), the number of bins to use when plotting a histogram