Python or R - which one should you learn?

Python or R - which one should you learn?

In the field of data science and machine learning, Python and R are widely used. New data science practitioners often ask which language should they focus on. As I spend time working in both languages, I notice certain strengths and weaknesses of each language. Here is my comparative compilation. Be warned though, both languages are evolving and I am continuously learning so my views are bound to change as well.

Python and R comparison

Take the above comparison with a grain of salt, because in practice, the choice of a programming language is often dictated by other real-world constraints such as cost, talent availability, training, and prior investment, or even emotional attachment.

As a good data scientist or ML practitioner, you should ultimately become comfortable with both languages and pick the right tool from the toolbox based on your use case. If you are capable of translating your problem into abstract terms (thinking about a problem in statistical terms is abstract thinking), and you know the strengths and weaknesses of each language, then the choice of language should come to you naturally. If you are completely new and just plan to pick one language, then choose Python.


要查看或添加评论,请登录

Manish Bahety的更多文章

  • The Ditch That Must Be Crossed

    The Ditch That Must Be Crossed

    After being at the same company for over a decade, a friend of mine is trying to switch his job. He has been hustling…

    2 条评论
  • The Power of Negative Reps

    The Power of Negative Reps

    Most strength training exercises can be split into two phases - the concentric phase, commonly called as positive reps…

  • Surprising Ways Sleep Shapes Our Lives

    Surprising Ways Sleep Shapes Our Lives

    Bon Jovi sang in one of his songs, "Gonna live while I’m alive. I’ll sleep when I’m dead".

  • 4 Simple Steps You Can Take Today To Improve Your Financial Life

    4 Simple Steps You Can Take Today To Improve Your Financial Life

    Here are 4 habits that have helped me improve my finances. None of these are get-rich-quick solutions, but when…

    11 条评论
  • Are your goals and dreams getting lost in the noise?

    Are your goals and dreams getting lost in the noise?

    Just like every year, when the New Year rolled around, my social media was abuzz with New Year resolutions and goals…

    1 条评论
  • Real World Examples of How Artificial Intelligence Is Being Used In Financial Services

    Real World Examples of How Artificial Intelligence Is Being Used In Financial Services

    In last few years, Artificial Intelligence has made the transition from a research topic to the early stages of…

    4 条评论
  • The business of setting goals

    The business of setting goals

    You have probably heard the sayings such as “A goal properly set is halfway reached” or “You can do anything if you set…

    8 条评论
  • How to turn forty without feeling blue

    How to turn forty without feeling blue

    George Bernard Shaw said every man over forty is a scoundrel. In that sense, I have turned into a scoundrel.

    18 条评论

社区洞察

其他会员也浏览了