|
|
飘逸的火锅 · 贫穷却美貌的男人,做起捞男来,比女人狠心10 ...· 1 年前 · |
|
|
干练的茶壶 · 数说奥运| 15名中国游泳冠军,9位出自“江浙沪”· 2 年前 · |
|
|
会开车的草稿本 · 陕西师范大学附属中学是一所怎么样的高中? - 知乎· 2 年前 · |
|
|
逃跑的椰子 · 噩梦时代乌龟和谁在一起了-抖音· 3 年前 · |
Computes the BASE64 encoding of a binary column and returns it as a string column.
New in version 1.5.0.
Changed in version 3.4.0: Supports Spark Connect.
Column
or column name
target column to work on.
Column
BASE64 encoding of string value.
Examples
>>> from pyspark.sql import functions as sf
>>> df = spark.createDataFrame(["Spark", "PySpark", "Pandas API"], "STRING")
>>> df.select("*", sf.base64("value")).show()
+----------+----------------+
| value| base64(value)|
+----------+----------------+
| Spark| U3Bhcms=|
| PySpark| UHlTcGFyaw==|
|Pandas API|UGFuZGFzIEFQSQ==|
+----------+----------------+
|
|
干练的茶壶 · 数说奥运| 15名中国游泳冠军,9位出自“江浙沪” 2 年前 |
|
|
会开车的草稿本 · 陕西师范大学附属中学是一所怎么样的高中? - 知乎 2 年前 |
|
|
逃跑的椰子 · 噩梦时代乌龟和谁在一起了-抖音 3 年前 |