Skip to content
ADArjun Dev1mo ago

Python or R for machine learning — does the choice still matter?

My stats professor swears by R, every job posting says Python. Starting my first ML project — which do I invest in?
70
1 answers2.5K views

1 Answer

Accepted answer

KMKaran Mehta5.3K XP1mo ago
Python, and in 2026 it's not really a debate for industry work. The entire modern stack — PyTorch, scikit-learn, Hugging Face, every LLM API and deployment tool — is Python-first. Job postings reflect it at roughly a 10:1 ratio. R still genuinely wins in two places: academic statistics (specialized statistical tests and packages that Python lacks) and certain biostatistics/econometrics niches. If you're headed for a stats PhD or pharma research, R earns its keep. But the pragmatic path is: Python as your primary language, and if you later need R for one specific statistical method, learn just enough — the concepts transfer almost one-to-one. Your professor isn't wrong about R's statistical elegance; the industry just voted otherwise.
12

Know the answer?

Join Nobink to answer, vote and build your reputation.