cycquery.ops.KeepΒΆ class Keep(cols)[source]ΒΆ Bases: QueryOp Keep only the specified columns in a table. Parameters: cols (Union[str, List[str]]) β The columns to keep. Examples >>> Keep("col1")(table) >>> Keep(["col1", "col2"])(table) Methods __call__(table)[source]ΒΆ Process the table. Parameters: table (Union[Select, Subquery, Table, DBTable]) β Table on which to perform the operation. Returns: Processed table. Return type: sqlalchemy.sql.selectable.Subquery