Which Do You Prefer R or Python?

Interested in the general sentiment here. Could be for quant, discretionary, any investing role honestly. 

I have found that PhD folks tend to lean R. Also, older individuals in general tend to prefer R. But Python has gained alot of traction over the last decade & younger folks usually prefer it. 

I know neither is "better." Since they can both accomplish the majority of the same goals. Anyways, interested in your opinions when it comes to programming tools among investment professionals. 

18 Comments
 
Most Helpful

Python is a completely below-average programming language that people have co-opted for data science for some godforsaken reason, despite it being verbose and clunky.

R is full of warts and weird legacy cruft that you have to learn and work around, but it flat-out wins on the one dimension that actually matters: being able to work with data. It's terse; it lets you introspect, slice, and dice data quickly; and its data-processing libraries are substantially faster to run than their Python equivalents. The magic of R is its terseness. Because you can do so much in so few keystrokes, your mental overhead to exploring your data is near-zero, and exploring your data is the most important thing in data science.

R is definitely a statistics-first language, but I've done things like web scraping, process automation, and interactive web servers in it.

I think the question is, what is your goal? If you want to learn a first coding language, Python over R. If you are worried about broad applicability (i.e. you want to become a software engineer), pick a general-purpose software engineering language such as Java (or dare I say it, Go). If you want to be a data scientist in finance...well, you should still learn Python, if only because more and more firms are using Python these days. But R is this awesome-kept secret that not enough people appreciate. It's a shame. I feel like Paul Graham yelling about how Lisp is the one true programming language. Oh well.

 

"Python is a completely below-average programming language"

Source: trust me bro

 

R is generally faster, & more accessible when it comes to anything statistical aswell as data visualization. 

You can do basically anything in R on Python, but it involves more lines of code and is less straightforward. So, in a real world scenario why not just use the faster program to accomplish the same results with fewer headaches? 

That said, Python is a general purpose programming language that can in theory accomplish everything. Whereas R is best for Data analysis, visualization, statistics, automation & with packages ML. Relistically, if you are in PE or at a discretionary fund, I cannot think of a single reason why you would need Python over R. 

However, if you are a quant and are writing algorithms, then it makes sense to lean Python. 

 

Non incidunt magnam omnis rerum sunt debitis doloremque. Labore eaque non dolorem qui qui earum explicabo. Rerum sint sint ea.

Delectus culpa iusto voluptates eius et voluptatem voluptas. Tenetur ut omnis unde tenetur non rerum consequatur esse.

Career Advancement Opportunities

August 2026 Hedge Fund

  • Point72 99.0%
  • D.E. Shaw 98.0%
  • Citadel Investment Group 97.0%
  • AQR Capital Management 96.0%
  • Magnetar Capital 95.0%

Overall Employee Satisfaction

August 2026 Hedge Fund

  • Magnetar Capital 99.0%
  • D.E. Shaw 98.0%
  • Blackstone Group 97.0%
  • Citadel Investment Group 96.0%
  • Two Sigma Investments 94.9%

Professional Growth Opportunities

August 2026 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 98.0%
  • D.E. Shaw 97.1%
  • Citadel Investment Group 96.1%
  • Magnetar Capital 95.1%

Total Avg Compensation

August 2026 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (27) $464
  • Director/MD (11) $372
  • NA (9) $320
  • Engineer/Quant (83) $287
  • 3rd+ Year Associate (26) $284
  • Manager (4) $282
  • 2nd Year Associate (32) $253
  • 1st Year Associate (76) $193
  • Analysts (233) $178
  • Intern/Summer Associate (29) $145
  • Junior Trader (5) $102
  • Intern/Summer Analyst (276) $95
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
BankonBanking's picture
BankonBanking
99.0
3
kanon's picture
kanon
99.0
4
Secyh62's picture
Secyh62
99.0
5
DrApeman's picture
DrApeman
98.9
6
GameTheory's picture
GameTheory
98.9
7
Betsy Massar's picture
Betsy Massar
98.9
8
CompBanker's picture
CompBanker
98.9
9
dosk17's picture
dosk17
98.9
10
Mimbs's picture
Mimbs
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”