cycquery.ops.TrimΒΆ
- class Trim(cols, new_col_labels=None)[source]ΒΆ
Bases:
QueryOp
Trim the whitespace from some string columns.
- Parameters:
Examples
>>> Trim("col1")(table) >>> Trim(["col1", "col2"])(table) >>> Trim("col1", "col1_trimmed")(table) >>> Trim(["col1", "col2"], ["col1_trimmed", "col2_trimmed"])(table)
Methods