Python vs R: some performance comparisons | R Programming

Published: 12 May 2020
on channel: Maxime Rivest
3,949
83

Calling Python from R is easy and is useful to access Python libraries. In this RStats tutorial, we show you how to set up a Python session within R and some tips for translating your code. We will also run similar algorithms in Python and R to see how they compare for speed! Subscribe to learn more about R and how you can make your code faster. 🐍

00:00 Introduction and dataset
01:45 1st approach: Growing a vector with for loops
02:55 Translating R code to Python code
07:48 1st approach: Benchmarking
08:47 2nd approach: Dataframe pre-allocation
10:41 3rd approach: Lists - vectorization
13:17 4th approach: Linear algebra - matrices: Numpy
14:52 5th approach: Dataframe manipulation: Pandas
16:36 Fastest algorithms comparison

🦕 Get the code here: https://github.com/MaximeRivest/dds/b...

🏎️ R performance playlist    • R Programming - Performance  

🧮 dplyr playlist    • dplyr  

#R #Rprogramming #Python #Rtutorial #RStats #performance #RStudio #datascience #DDS #DDSR #datatable #dplyr


On this page of the site you can watch the video online Python vs R: some performance comparisons | R Programming with a duration of hours minute second in good quality, which was uploaded by the user Maxime Rivest 12 May 2020, share the link with friends and acquaintances, this video has already been watched 3,949 times on youtube and it was liked by 83 viewers. Enjoy your viewing!