I didn't have this choice because I was forced to move from R to Python:

It depends on your **environment**: When you are embedded in an **engineer** department, working technical group or something similar than Python is more feasible.

When you are surrounded by **scientists** and especially **statisticians**, stay with R.

PS: R offers keras and tensorflow as well though it is implemented under the hood of python. Only very advanced stuff will make you need Python.
Though I'm getting more and more used to Python, the synthax in **R is easier**. And though each package has its own, it is somehow consistent while Python is not..
And ggplot is so strong. Python has a clone (plotnine) but it lacks several (important) features. In principle you can do nearly as much as in R but especially visualization and data wrangling is much easier in R. Thus, the most famous Python library, pandas, is a **clone** of R.

PSS: **Advanced** statistics aims definitely at R. Python offers a lot of everyday tools and methods for a data scientist but it will never reach those >**13,000** packages R provides. For example, I had to do an inverse regression and python doesn't offer this. In R you can choose between several confidence tests and whether it is linear or nonlinear.
The same goes to mixed models: It is implemented in python but it is so basic there I can't realize how this can be sufficient for someone.

12You can't

switchyourself to Python. You are not talking about a project you already wrote in R and wants to port it to Python, you are simply asking about learning Python (not forgetting R). Is it worth learning Python? Nowdays it is almost impossible tonotlearn Python if you work with anything related to data handling with a computer... – lvella – 2019-08-05T14:07:01.553It might also be worth mentioning that if you are writing papers or preparing presentations that you would have to compare the tools there. So e.g. in the case of R you would have Sweave or KnitR for static papers or (

`beamer`

class) presentations and in the case and Jupyter Notebook (formerly IPython Notebook) for dynamic notebooks (which you can also export to TeX). – phk – 2019-08-06T06:59:53.263