nulls_first

ColExpr.nulls_first() ColExpr[source]

Specifies that nulls are placed at the beginning of the ordering.

This does not mean that nulls are considered to be less than any other element. I.e. if both nulls_first and descending are given, nulls will still be placed at the beginning.

If neither nulls_first nor nulls_last is specified, the position of nulls is backend-dependent.

Can only be used in expressions given to the arrange verb or as as an arrange keyword argument.