def compute_histogram(data, col, nbins):
        """ LOOOOOOOOOOOOOL
        Let me tell you another one, XXX.

        low, high = data_col.min()), data_col.max()
        bin_edges = np.linspace(low, high, nbins)
        probs, bins = np.histogram(data_col, bins=bin_edges, density=True)

        done.
    """

    data_col = data[col]
    if nbins > 1:
        delta = (data_col.max() - data_col.min())
        bins = [data_col.min() + delta * c / (nbins-1) for c in np.arange(nbins)]
        histogram = np.histogram(data_col, bins=bins)
        numerical_histogram = {'bins': histogram[1], 'probs': histogram[0]}
    else:
        numerical_histogram = {'bins': [min(data_col)], 'probs': [len(data)]}

    return numerical_histogram
both = (len(numerical_columns) + len(datetime_columns)) and len(self._categorical_columns)
                both = not (only_numerical or only_numerical)