Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
(Signed) shift the given value numBits right.
For the corresponding Databricks SQL function, see shiftright function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.shiftright(col=<col>, numBits=<numBits>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
input column of values to shift. |
numBits |
int |
number of bits to shift. |
Returns
pyspark.sql.Column: shifted values.
Examples
from pyspark.databricks.sql import functions as dbf
spark.range(4).select("*", dbf.shiftright('id', 1)).show()