DEV Community

loading...

Stay with R-cran or *switch* to Python

mccurcio profile image Matt Curcio ・1 min read

I have a question for all you data science wannabes. I have been working with the R language for the last year now and have gotten to an intermediate level. I have done several machine learning projects that I really enjoyed.

However, I see soo many articles on Python all over, even here. Therefore, I am considering ditching R in favor of Python.
Any thoughts?

Discussion (8)

pic
Editor guide
Collapse
hanpari profile image
Pavel Morava

Personally, I would not ditch R when you already have knowledge of it. But I would not bet my future on it either.

From the little I know about R, it is domain-specific language which has to eventually lead to its decline since Python as the multi-purpose language has an upper hand.

Moreover, Python is quickly catching to R, so Python may predate R eventually. Of course, some people claim that the hot candidate for it is Julia. :)

Collapse
mccurcio profile image
Matt Curcio Author

Ya' know, I have come to the same conclusion.
Thanks for the comment, it reinforces my thinking.

Collapse
hanpari profile image
Pavel Morava

I saw some statistics that showed growing share of Python versus R in 2019. The trend was rather clear. But I don't know the source.

Collapse
minchulkim87 profile image
Min

Both are quite good. And I think what you learn in one, you can kind of take to the other. I've taken what I've learnt from Tidyverse and applied them to pandas (Python).
I don't think you need to "ditch" R, but it is worth picking up Python as well, I think. If you end up building a serverless ML backend on the cloud, you aren't likely going to use R for that. But if your statsmodels (Python) is behaving funky and can't converge, you can double check with R maybe.

Collapse
mccurcio profile image
Matt Curcio Author

Hey Min,
Awesome thanks!
Would you say it is generally true that R does not really have the libraries which run serverless? This is where I feel I am left behind in this area. Do you know of any tutorials that you like/recommend that go over serverless cloud work?
BTW, how is the job market in Australia? I went to Brisbane and Adelaide some time ago for work and really loved it. Is it difficult to find work as a foreigner? ;)

Collapse
patarapolw profile image
Pacharapol Withayasakpunt

I am wondering as you just use Python in RMarkdown as well. I don't really know when you will absolutely need Jupyter Lab or CoLab.

Collapse
mccurcio profile image
Matt Curcio Author

Good point, but I don't use python in Rmarkdown all that much. I use R like a hammer. ;)
You have another good point about using CoLab. I have played with that very briefly. Is that something you use much or is it just a novelty?

Collapse
patarapolw profile image
Pacharapol Withayasakpunt

I only use CoLab briefly during a short training.

I used to use Jupyter Notebook a lot, and know very well that you can transfer data between Python and Javascript.