Code/Syntax
As Python was created with emphasis on code readability it is regarded as easier to pick up in comparison to R. Let's take a look at the actual coding syntax for importing a csv file and finding the mean.
R Code
SNIPPET
1library(readr)
2
3nba_data <- read_csv("nba_2013.csv")
4
5library(purr)
6library(dplyr)
7
8nba_data %>%
9 select_if(is.numeric) %>%
10 map_dbl(mean, na.rm = TRUE)
Python Code
PYTHON
1import pandas
2
3nba_data = pandas.read_csv("nba_2013.csv")
4
5nba_data.mean()
Comparing both languages, you can see why Python is regarded as easier to read and pick up in comparison to R.