translate_sort: Translate captured sort expressions into Python...

View source: R/translate_engine.R

translate_sortR Documentation

Translate captured sort expressions into Python .sort_values() arguments

Description

Translate captured sort expressions into Python .sort_values() arguments

Usage

translate_sort(...)

Arguments

...

Bare column names or desc(colname) (captured by rlang::enquos).

Value

A list with two elements:

  • ⁠$by⁠: A string for the by argument (e.g., ['cut', 'price'])

  • ⁠$ascending⁠: A string for the ascending argument (e.g., [True, False])


rPandas documentation built on April 29, 2026, 1:07 a.m.