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. 

 
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

 

Yeah but almost all say Python/R/C++. So, that's not really relevant..

 

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 culpa alias iste nulla minima minima. Dolore totam adipisci enim suscipit distinctio laborum voluptas. Laudantium facere ut cupiditate ut. In non dolorem inventore molestias ipsum voluptatem accusamus. Et laborum alias qui cumque voluptas aut.

Quos aut qui voluptas modi rem dolorem assumenda. Ipsa aspernatur non praesentium. Blanditiis libero iste qui quisquam fuga id sunt. Voluptatem aliquam ea quod et possimus voluptatem enim.

Career Advancement Opportunities

April 2024 Hedge Fund

  • Point72 98.9%
  • D.E. Shaw 97.9%
  • Citadel Investment Group 96.8%
  • Magnetar Capital 95.8%
  • AQR Capital Management 94.7%

Overall Employee Satisfaction

April 2024 Hedge Fund

  • Magnetar Capital 98.9%
  • D.E. Shaw 97.8%
  • Blackstone Group 96.8%
  • Two Sigma Investments 95.7%
  • Citadel Investment Group 94.6%

Professional Growth Opportunities

April 2024 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 97.9%
  • D.E. Shaw 96.9%
  • Magnetar Capital 95.8%
  • Citadel Investment Group 94.8%

Total Avg Compensation

April 2024 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (23) $474
  • Director/MD (12) $423
  • NA (6) $322
  • 3rd+ Year Associate (24) $287
  • Manager (4) $282
  • Engineer/Quant (71) $274
  • 2nd Year Associate (30) $251
  • 1st Year Associate (73) $190
  • Analysts (225) $179
  • Intern/Summer Associate (22) $131
  • Junior Trader (5) $102
  • Intern/Summer Analyst (250) $85
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
Betsy Massar's picture
Betsy Massar
99.0
4
Secyh62's picture
Secyh62
99.0
5
kanon's picture
kanon
98.9
6
dosk17's picture
dosk17
98.9
7
CompBanker's picture
CompBanker
98.9
8
GameTheory's picture
GameTheory
98.9
9
bolo up's picture
bolo up
98.8
10
DrApeman's picture
DrApeman
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...”