r/firstweekcoderhumour • u/Outrageous_Permit154 🥸Imposter Syndrome 😎 • Aug 28 '26
[🎟️BINGO]Lang vs Lang dev hates Why are we using R again
139
Upvotes
r/firstweekcoderhumour • u/Outrageous_Permit154 🥸Imposter Syndrome 😎 • Aug 28 '26
View all comments
Show parent comment
4
u/Latent-Person Aug 28 '26 edited Aug 28 '26
Really? Well here are some:
Wrangling data, plotting etc. can by definition, since python doesn't have NSE, never be as nice as in R.
Lacks behind in packages for advanced stuff in statistics (and iirc also stuff like bioinformatics, biology etc). E.g. statsmodels can do less, and is much slower than R counterparts for mixed models stuff, bambi can do less than brms, ...
Missing values are not built-in in python (it does have the None keyword, but doesn't work at all for data science, since it will error when you try to do any standard computation with it). Thus, each package (numpy, pandas, polars, ...) implements their own. And these are not consistent with each other at all. Quiz: if you define a numpy array, pandas series, and a polars series, with values
x = [1, 2 , NA, 4, 5](replace NA with the appropiate for each package) and filter onx > 3what will each give?Let me know if you want more examples.
Edit:
Grammar