pyspark.sql.functions.
shiftLeft
Shift the given value numBits left.
New in version 1.5.0.
Examples
>>> spark.createDataFrame([(21,)], ['a']).select(shiftLeft('a', 1).alias('r')).collect() [Row(r=42)]