Ask HN: Python or R?
More specifically, comparing R to Python library.
More specifically, comparing R to Python library.
I read this [blog] earlier and as a result I don't think I'll bother to learn R unless I have to.
[pandas]: http://pandas.pydata.org/
[statsmodels]: http://statsmodels.sourceforge.net/
[blog]: http://www.talyarkoni.org/blog/2013/11/18/the-homogenization...
That said, I recommend whichever language is easiest for you. I use R and have not fully learned Python, so I have an obvious bias. If you're performing complicated statistical analysis, I'd recommend R, but for more traditional programming, I get the impression that Python interfaces more efficiently with other languages.
For all interactive/exploratory analysis, for statistical graphics, for more advanced statistics, for most statistics-related research work in general, I would definitely pick R out of these two.
If statistics is only a small part of the application, if you already know exactly what you have to do (i.e. no data exploration), if you have to do a lot of web/text processing -- probably Python.
Also, check which one has more/better packages related to what you are doing.
For some stats projects I would go with something else entirely though.
You could compare R to Matlab, or R to python library with similar scope (numpy or pandas).
It's more about use cases -- is it all about statistics, or is actual statistics only a small part? Is the focus primarily on research and exploration, or on implementation and deployment?