def f(partition, by_columns, ascending, na_position, **kwargs):
    return partition.sort_values(by_columns, ascending=ascending, na_position=na_position)
def f(partition, by_columns, ascending, na_position, **kwargs):
    return partition.sort_values(by_columns, ascending=ascending, na_position=na_position)