pyspark.sql.functions.
shiftright
(Signed) shift the given value numBits right.
Examples
>>> spark.createDataFrame([(42,)], ['a']).select(shiftright('a', 1).alias('r')).collect() [Row(r=21)]
previous
pyspark.sql.functions.shiftleft
next
pyspark.sql.functions.shiftrightunsigned