df_basket_reordered = df_basket1.select(sorted(df_basket1.columns)) df_basket_reordered.show() So the resultant dataframe with columns sorted in ascending order will be Reorder the column in pyspark in descending order Column name is passed to the sorted () function along with the argument ...
Descriptive statistics or Summary Statistics of dataframe in pyspark Rearrange or reorder column in pyspark cumulative sum of column and group in pyspark Calculate Percentage and cumulative percentage of column in pyspark Select column in Pyspark (Select single & Multiple columns) Get data type of colu...