code: def _register_aggregate(agg, con):
      
      nargs = number_of_arguments(agg.step) - 1  # because self
      con.connection.connection.create_aggregate(agg.__name__, nargs, agg)
docs: Register a Python class that performs aggregation in SQLite.
  
      Parameters
      ----------
      agg : type
      con : sqlalchemy.Connection