def static_binning(data=None, bins=None, **kwargs) -> StaticBinning:
    """Construct static binning with whatever bins."""
    return StaticBinning(bins=make_bin_array(bins), **kwargs)
Construct static binning with whatever bins.