def bins(data, values=None, column=None, bins=None, labels=None, **kwargs):
 if isinstance(data, str):
  column = data
  values = None
 else:
  column = None
 return Bins(values=values, column=column, bins=bins, **kwargs)

def bins ( data , values = None , column = None , bins = None , labels = None , ** kwargs ) : if isinstance ( data , str ) : column = data values = None else : column = None return Bins ( values = values , column = column , bins = bins , ** kwargs )
specify binning or bins to be used for column or values .