Last updated: 2022-11-12

Checks: 2 0

Knit directory: Pandas-30-R/

This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 521e4ee. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    dev/
    Ignored:    renv/

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/index.Rmd) and HTML (docs/index.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 521e4ee Mena WANG 2022-11-12 add method19
html 76150fe Mena WANG 2022-11-11 Build site.
Rmd 06382ee Mena WANG 2022-11-11 add method18
html 0b7b914 Mena WANG 2022-11-10 Build site.
Rmd d9c0296 Mena WANG 2022-11-10 add method 16-17
html e12fbbe Mena WANG 2022-11-09 Build site.
Rmd e194e29 Mena WANG 2022-11-09 add method15
html 2d18567 Mena WANG 2022-11-09 Build site.
html a354ca2 Mena WANG 2022-11-09 Build site.
Rmd 3956999 Mena WANG 2022-11-09 add method14
html dad691d Mena WANG 2022-11-08 Build site.
Rmd 4ce9d68 Mena WANG 2022-11-08 add method13
html bce6766 Mena WANG 2022-11-08 Build site.
Rmd e274867 Mena WANG 2022-11-08 add bonus1
html 9fd2b31 Mena WANG 2022-11-08 Build site.
Rmd 685a5b3 Mena WANG 2022-11-08 add method12
html 0632ced Mena WANG 2022-11-05 Build site.
Rmd 6a0ac9f Mena WANG 2022-11-05 add method11
html 7ce73a5 Mena WANG 2022-11-03 Build site.
Rmd 0cd6f77 Mena WANG 2022-11-03 add method10
html 97a4ecd Mena WANG 2022-11-01 Build site.
Rmd 8b96a30 Mena WANG 2022-11-01 add method9
html 99c04b8 Mena WANG 2022-11-01 Build site.
Rmd 8fabed3 Mena WANG 2022-11-01 add method8
html e8c4cec Mena WANG 2022-11-01 Build site.
Rmd 023948f Mena WANG 2022-11-01 add method7
html 3e4868b Mena WANG 2022-11-01 Build site.
Rmd 641dd5b Mena WANG 2022-11-01 add method6
html db83905 Mena WANG 2022-10-30 Build site.
Rmd 6a5b83b Mena WANG 2022-10-30 add method5
html 2be83cf Mena WANG 2022-10-25 Build site.
Rmd c0aa815 Mena WANG 2022-10-25 add method4
html 9cbf22c Mena WANG 2022-10-25 Build site.
Rmd 2c72e1a Mena WANG 2022-10-25 add method3
Rmd 546254b Mena WANG 2022-10-25 add method3
html 546254b Mena WANG 2022-10-25 add method3
html 2cb19ff Mena WANG 2022-10-23 Build site.
html a3d64fd Mena WANG 2022-10-23 Build site.
Rmd 40ac710 Mena WANG 2022-10-23 add method 2
html 229f405 Mena WANG 2022-10-23 Build site.
html c6a7835 Mena WANG 2022-10-23 Build site.
Rmd 0ac8e00 Mena WANG 2022-10-23 Add content to license and about page
html 05866b4 Mena WANG 2022-10-23 Build site.
Rmd eeb5169 Mena WANG 2022-10-23 start the project with method 1
Rmd c876a91 Mena WANG 2022-10-23 Start workflowr project.

In this repo, I will provide a Python to R translation of 30 essential Pandas methods introduced by Avi Chawla in The Only 30 Methods You Should Master To Become A Pandas Pro published on TowardsDataScience. The project starts on 23 Oct, 2022 and I will add one method at least every 2-3 days.

As an R user who is learning to become bilingual, I found such side-by-side translations/comparisons very helpful for my learning. Hope you find them helpful as well. Comments and discussions will be highly appreciated. :)

Please click each method below for details

Method #1. Reading a CSV

Method #2. Storing a Dataframe into a CSV

Method #3. Creating a Dataframe from a Llist

Method #4. Creating a Dataframe from a Dictionary

Method #5. The Shape of the Dataframe

Method #6. Viewing Top N Rows

Method #7. Print the Datatype of Columns

Method #8. Modifying the Datatype of a Column

Method #9. Printing Descriptive Info about the Dataframe (Method1)

Method #10. Printing Descritive Info about the Dataframe (Method2)

Method #11. Filling Missing Values

Method #12. Joining DataFrames (merge & join)

Method #13. Sorting a Dataframe

Method #14. Grouping a Dataframe

Method #15. Renaming Columns

Method #16-17. Adding New Columns

Method #18. Filtering a Dataframe1: Boolean Filtering

Method #19. Filtering a Dataframe2: Select Columns

Bonus R to Python translations

I will add some R to Python translation of loved R functions below as bonus :)

Bonus #1. complete(): Expand a dataframe