iyarlin / r-advantages-over-python Goto Github PK
View Code? Open in Web Editor NEWThis repository enumerates all the reasons why R is better than python for DS
This repository enumerates all the reasons why R is better than python for DS
I am referring to this part of your comparison:
R-advantages-over-python/README.md
Lines 1316 to 1318 in 0633661
It seems that you can easily do that:
values = np.array(['a', 1, (1, 2, 3), 'wow', ['sweet', 2]])
indices = np.arange(len(values))
values[indices > 2]
## array(['wow', list(['sweet', 2])], dtype=object)
I'm not so sure it's objectively worse in Python. It's about the same number of lines, and the only difference seems to be a subjective judgement call about the ubiquitousness of functions. I'm not sure it's a strong enough example.
Great repo by the way!
The benchmark has quite different results now that Polars and DataFrames.jl have matured a bit more, even datatable for python. I've been working on automl packages for both R and Python (the R one is much further along and the Python one is relatively new) and I can't state enough how almost everything I do to create these packages is more easily done in R.
Now that Python does have some promising data wrangling packages (polars / datatable) I think it's important to focus on the capabilities in those packages compared to data.table (which is still king in my book). The example you have with the case-when of dplyr vs pandas is a superb example of two things: the capabilities that exists and the ease of which to deploy them, and in both cases, R wins. I believe that you'll find this to be true to more you go digging into feature engineering capabilities from all those packages.
Anyway, great work
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.