42 R vs Python Basic Data Wrangling

Yihao Gao

This pdf is a syntax comparison cheat sheet for basic data wrangling in R (dplyr, tidyr) and Python (pandas) including row/column selection, missing value imputation, sorting, mapping, grouping and aggregation etc. The motivation of creating this cheat sheet is to give a quick reference for those who might sometimes mix up these syntax in Python and R and save time.

Access the cheat sheet using the link below. https://github.com/yiiihao/yg2820_edav_CC/blob/main/cheetsheet.pdf