rp_mutate: Mutate (add/modify/remove) columns using pandas

View source: R/verbs_filter.R

rp_mutateR Documentation

Mutate (add/modify/remove) columns using pandas

Description

Mutate (add/modify/remove) columns using pandas

Usage

rp_mutate(
  .data,
  to_remove = NULL,
  ...,
  table_name = NULL,
  return.as = "result"
)

Arguments

.data

An R data frame.

to_remove

A character vector of column names to remove.

...

Named expressions for new/modified columns.

table_name

An optional character string. If provided, the generated Python code will replace the internal dataframe name with this string (e.g., "diamonds.query(...)"). This is useful for seeing the exact, copy-pasteable Python code. Defaults to NULL (uses "df").

return.as

Either "result", "code", or "all".

Value

A data frame or list depending on return.as.


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