Eventual-Inc / Daft

Distributed DataFrame for Python designed for the cloud, powered by Rust
https://getdaft.io
Apache License 2.0
1.87k stars 118 forks source link

Bit Shift Right #2392

Closed colin-ho closed 1 day ago

colin-ho commented 2 weeks ago

Shift the values of an integer / unsigned integer column to the right by n bits.

Note:

Example:

df = daft.from_pydict({"a": [2, 4, 8], "b": [1, 2, 3]})
df = df.select(df["a"] >> df["b"])
# this should produce the column : [1, 1, 1]
murex971 commented 1 week ago

@colin-ho would like to pick this one

colin-ho commented 1 day ago

Closed with https://github.com/Eventual-Inc/Daft/pull/2453