Daft
Daft copied to clipboard
Floor/integer division
Add support for floor division of integers (//
operator). Currently you would have to do true division, floor it, then cast from float to int. This is unwieldy and may have precision issues.
Example:
df = daft.from_pydict({"a": [4, 6, 9], "b": [2, 4, 4]})
df = df.select(df["a"] // df["b"])
# should output [2, 1, 2]