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. 

 

Magnam aspernatur reiciendis deleniti fuga rerum illo dolor. Et rem quo dolorem veritatis. Sit praesentium voluptates repudiandae vel. Dolor necessitatibus voluptatem aliquam eveniet est. Totam accusantium et autem deleniti.

Est eos consequatur quidem ut voluptatem aliquid voluptatem. Deleniti asperiores corrupti hic voluptate velit. Nemo quis et sed necessitatibus eum unde. Non rem sed soluta rem minus asperiores.

Non enim nesciunt delectus reprehenderit quae porro natus. Non distinctio illo et dicta nihil qui.

Career Advancement Opportunities

July 2026 Hedge Fund

  • Point72 99.0%
  • D.E. Shaw 98.1%
  • Citadel Investment Group 97.1%
  • AQR Capital Management 96.2%
  • Magnetar Capital 95.2%

Overall Employee Satisfaction

July 2026 Hedge Fund

  • Magnetar Capital 99.0%
  • D.E. Shaw 98.0%
  • Blackstone Group 97.1%
  • Citadel Investment Group 96.1%
  • Millennium Partners 95.1%

Professional Growth Opportunities

July 2026 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 98.1%
  • D.E. Shaw 97.1%
  • Citadel Investment Group 96.2%
  • Magnetar Capital 95.2%

Total Avg Compensation

July 2026 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (27) $464
  • Director/MD (12) $423
  • NA (9) $320
  • Engineer/Quant (86) $288
  • 3rd+ Year Associate (26) $284
  • Manager (4) $282
  • 2nd Year Associate (32) $253
  • 1st Year Associate (77) $191
  • Analysts (242) $181
  • Intern/Summer Associate (29) $145
  • Junior Trader (5) $102
  • Intern/Summer Analyst (282) $96
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
CompBanker's picture
CompBanker
98.9
7
dosk17's picture
dosk17
98.9
8
GameTheory's picture
GameTheory
98.9
9
Betsy Massar's picture
Betsy Massar
98.9
10
Jamoldo's picture
Jamoldo
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...”