orderBy は sort の別名です。
構文
orderBy(*cols: Union[int, str, Column, List[Union[int, str, Column]]], **kwargs: Any)
パラメーター
| パラメーター | タイプ | 説明 |
|---|---|---|
cols |
int、str、list、または Column (省略可能) | 並べ替える列または列名または列の序数の一覧。 |
ascending |
bool または list、省略可能、既定値 True | ブール値またはブール値のリスト。 昇順と降順で並べ替えます。 |
返品
DataFrame: 並べ替えられたデータフレーム。