cycquery.ops.AddDeltaConstantΒΆ
- class AddDeltaConstant(add_to, delta, new_col_labels=None)[source]ΒΆ
Bases:
QueryOp
Construct and add a datetime.timedelta object to some columns.
- Parameters:
Examples
>>> AddDeltaConstant("col1", datetime.timedelta(days=1))(table) >>> AddDeltaConstant(["col1", "col2"], datetime.timedelta(days=1))(table) >>> AddDeltaConstant("col1", datetime.timedelta(days=1), "col1_plus_1")(table)
Methods