Translating from R to Python's Pandas Package

Provides an R interface to Python's 'pandas' library using non-standard evaluation. Users can write R code (e.g., rp_filter(), rp_select(), rp_mutate()) that is translated into pandas commands and executed via 'reticulate'. Supports chaining, grouping, and 'summarisation', and includes a 'table_name' parameter to generate 'copy-pasteable' Python code. Ideal for leveraging pandas' speed and flexibility within the R ecosystem.


rPandas: The Power of Pandas, The Simplicity of R

R-CMD-check rPandas bridges the gap between R and Python. It allows R users to manipulate data using familiar, dplyr-style syntax while leveraging the speed and efficiency of the Python pandas library in the background.

Why use rPandas?

  • Best of Both Worlds: Write code in R, but execute it in Python.
  • Zero Python Knowledge Required: You don't need to know Python syntax to use it. rPandas handles the translation for you.
  • Learning Tool: Curious how your R code translates to Python? Every function has a return.as = "code" argument that shows you the exact Pandas code being generated.
  • Seamless Integration: Works with R data frames and integrates easily into your existing workflows using the pipe (%>% or |>).

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rPandas")

0.1.4 by Akshat Maurya, 6 months ago


Browse source code at https://github.com/cran/rPandas


Authors: Akshat Maurya [aut, cre] , Rihaan Satia [aut] , David Shilane [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports reticulate, rlang

Suggests ggplot2, knitr, rmarkdown, testthat


See at CRAN