def collection(data, bins=10, *args, **kwargs):
    """Create histogram collection with shared binnning."""
    from physt.histogram_collection import HistogramCollection
    if hasattr(data, "columns"):
        data = {column: data[column] for column in data.columns}
    return HistogramCollection.multi_h1(data, bins, **kwargs)
Create histogram collection with shared binnning.