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.
Sort the column in ascending order.
Syntax
asc()
Returns
Column
Examples
from pyspark.sql import Row
df = spark.createDataFrame([('Tom', 80), ('Alice', None)], ["name", "height"])
df.select(df.name).orderBy(df.name.asc()).collect()
# [Row(name='Alice'), Row(name='Tom')]