6/20/2023 0 Comments Python in rstudio exampleUse a Python package rpy2 to use R within Python.So how to do it? As of December 2015 there are three principal ways to use BOTH Python an R There are only four main languages within Data Science (~91% by KDnuggets Poll) and everyone can use SQL from their own language.It is sexier for data scientists to be skilled on (or cooler as we older guys liked to say before Harvard Business Review proclaimed data scientist as the sexiest job). You are less likely to be tied down due to a bug or feature request or a version compatibility issue.The customer does not care which language the code was written, the customer cares for insights.Yhat borrows from sqldf to make pandasql. Rather than reinvent the wheel in the other language developers can focus on innovation Even seasoned package developers like Hadley Wickham (Rstudio) borrows from Beautiful Soup (python) to make rvest for web scraping. Both languages borrow from each other.An example is using time series forecasting (forecast::auto.arima) and decision trees in R ( advstats/cart.html) and doing data munging in Python. You can get much better packages in one and then stich them with some data from the other. Both are good stable languages with interesting complementary qualities.
0 Comments
Leave a Reply. |