frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Why Pandas feels clunky when coming from R (2024)

https://www.sumsar.net/blog/pandas-feels-clunky-when-coming-from-r/
52•Tomte•3h ago

Comments

great_wubwub•3h ago
I have no R experience but have been using Polars instead of Pandas for this sort of stuff and it feels less clunky. How does Polars compare to R?
j_bum•2h ago
I strongly prefer `dplyr` and the R stack for table processing and visualization.

But, recently I’ve been working with much larger scale data than R can handle (thanks to R’s base int32 limitation) and have been needing to use Python instead.

Polars feels much more intuitive and similar to `dplyr` to me for table processing than Pandas does.

I often ask my LLM of choice to “translate this dplyr call to Polars” as I’ve been learning the Polars syntax.

aydyn•1h ago
It blows my mind that in 2025 R is still limited to 2^31-1 rows. R needs a Python 3.0 moment, but that is unfortunately not going to happen for certain unfortunate but unnecessary reasons.
j_bum•1h ago
Yep. I have a deep love/hate relationship with R.

This is one of those decisions that I just do not understand. In your mind, why do you imagine a set of improvements won’t be made?

Otherwise, for now, working with Python and R using the reticulate package in Quarto is perfect for my needs.

If the Positron IDE could get in-line plot visualization in Quarto documents like the RStudio IDE has, I’d be the happiest camper.

BDPW•3h ago
I've had a similar experience from the opposite side. I've had quite a few years of experience in Python and had to work in R for an internship during my masters.

My impression was that it's pretty easy to do straightforward things like the examples described in the article. But when you have to do complicated or unusual things with your data I found it very frustrating to work with. Access to the underlying data was often opague and it was difficult to me at times to figure out what was happening under the hood.

Does anyone here know any research areas still using R?

Tomte•2h ago
Everyone in statistics, and lots of people applying statistics in other disciplines (anthropology etc.).
j_bum•2h ago
In addition to stats, R is widely used in computational biology and bioinformatics domains. It’s also widely used in the biopharma industry for a variety of other purposes.
mauritsd•2h ago
IME (bioinformatics PhD in the netherlands a number of years ago) it's mostly still preferred in a (pre-)clinical context, not so much in academia itself
kgwgk•2h ago
> My impression was that it's pretty easy to do straightforward things like the examples described in the article. But when you have to do complicated or unusual things with your data I found it very frustrating to work with.

That's where I realised that the "modern" approach was taken in the article - which obviously I had not looked at.

pteetor•1h ago
R is used extensively in quant finance. The quant traders, portfolio managers, and risk managers with whom I work all use R.
vharuck•1h ago
As an R user, I get what you mean. If you need to do things that don't fit well in the "tidyverse" model, you have three options:

1. Wrap the complicated bits in functions, then force it into the tidyverse model by abusing summarize and mutate.

2. Use data.table. It's very adaptable and handles arbitrary multiline expressions (returning a data.table if the last expression returns a list, otherwise returning the object as-is).

3. Use base R. It's not as bad as people make it out to be. You'll need to learn it to anyway, if you want to do anything beyond the basics.

tyfon•1h ago
Not really research pr se, but it's used extensively in banking here in Norway for anything from statistical model development to basic analysis and reporting.
dkdcio•2h ago
pandas* per the style guide (nobody follows it)

also I recommend trying Ibis. created by the creator of pandas originally and solves so many of the issues

https://ibis-project.org

jna_sh•2h ago
Any thoughts on ibis vs polars?
gnulinux•2h ago
Disclaimer: Never used Ibis before but I daily use polars and DuckDB.

It seems like Ibis uses DuckDB on its backend (by default) and has Polars support as well. Given this, maybe see if Ibis works better for you than polars. If you very specifically need polars, using that will for sure be better. DuckDB is faster than polars and it has great polars support, so depending on how Ibis is implemented it might be "better" than polars as data frame lib.

dleather•1h ago
I couldn't agree more. I'm fluent in languages like Julia, and MATLAB. I'm 90% fluent in R and prefer data.table over dplyr but working in both is easy enough. The past few months I've been fully transitioning to Python. And while base Python I find to be extremely elegant, typical data science and scientific computing workflows are a headache. There aren't just 1-2 packages to choose from for each use, every package has it's own syntax, keeping track of Pandas Series vs DataFrames is confusion. Want fast differentiable code? Then rewrite everything in numpy in JAX which requires its own tricks.

What Python desperately needs is a coordinated effort for a core data science /scientific computing stack with a unified framework.

In my opinion, if it weren't for Python's extensive use in Industry and package ecosystem, Julia would be the language of choice for nearly all data science and scientific computing uses.

wodenokoto•1h ago
A really, really big part of this is thanks to RStudio, which, when you run a line and write a line will peek into memory to see what the columns in your dataframe is and understand the dplyr DSL to help you auto complete what essentially is non-existing variables.
smabie•30m ago
The original sin of Pandas is row indices
hatmatrix•3m ago
Actually I like that you can use it as a dictionary of tuples (i.e., rows).
emehex•21m ago
I haven't seriously used R in nearly a decade but I still miss (and think about) dpylr and the hadleyverse...

A few years ago I made a package called "redframes" that tried to "solve" all of my frustrations with pandas, make data wrangling feel more like R, while retaining all the best bits of Python...

Alas, it never really took off. For those curious: https://github.com/maxhumber/redframes

hatmatrix•4m ago
Hey this looks pretty tidy.

There is so much hype and luck to widespread adoption, you never know with these things.

__mharrison__•3m ago
Lots of readers of my book, Effective Pandas, say it helps them feel more like they are used to with R...

(I've never used R myself, but certainly have some very strong opinions about Pandas after having written 3 books about it.)

African Pygmies

https://en.wikipedia.org/wiki/African_Pygmies
1•Boogie_Man•50s ago•0 comments

Project Kuiper: Amazon's New Satellite Internet Initiative?

https://www.aboutamazon.com/news/innovation-at-amazon/what-is-amazon-project-kuiper
1•tosh•56s ago•0 comments

Historical Roots of the "Whitening" of Brazil [pdf]

https://library.fes.de/libalt/journals/swetsfulltext/12558053.pdf
1•guiambros•6m ago•0 comments

Community fact-checking increases moral outrage in replies to misleading posts

https://dl.acm.org/doi/10.1145/3706598.3713909
1•anigbrowl•6m ago•0 comments

The Countries Behind the Most Devastating Hacks – White House CIO [video]

https://www.youtube.com/watch?v=WC-ycrROAMg
1•zerof1l•7m ago•0 comments

To My Fans (Scrapers)

https://nathanshobbies.com/posts/tomybots/
1•danepowell•10m ago•0 comments

Show HN: qc-ai – Quick Config for Neovim with OpenAI

https://github.com/psaia/qc-ai
1•dovebarra•12m ago•0 comments

Trump 10 Commandments Released with Trump Bible: "Thou Shalt Not Fact-Check Me"

https://sites.google.com/view/annnewsforamerica/home
1•heyhoheyho•14m ago•0 comments

Ask HN: Should HN censor or replace the phrase "back in the day" in comments?

1•amichail•15m ago•2 comments

Free online participation in the Ada Developers Workshop, June 13th

https://forum.ada-lang.io/t/reminder-free-online-participation-in-the-ada-developers-workshop-june-13th/2109
1•DragonSpiritWTP•16m ago•0 comments

Weekend build: Free local first image conversion in the browser

https://dnnsthnnr.com/blog/weekend-build-free-local-first-image-conversion-in-the-browser/blog/weekend-build-free-local-first-image-conversion-in-the-browser
1•dnnsthnnr•17m ago•2 comments

The Vulnerability of Starting a New Hobby

https://mhmiller.bearblog.dev/the-vulnerability-of-starting-a-new-hobby/
1•Tomte•17m ago•0 comments

Chris Dixon – The Idea Maze (2013)

https://cdixon.org/2013/08/04/the-idea-maze/
1•rmason•19m ago•1 comments

Bill Atkinson Dies from Cancer at 74

https://daringfireball.net/linked/2025/06/07/bill-atkinson-rip
5•todsacerdoti•19m ago•1 comments

Linux Foundation tries to play peacemaker in ongoing WordPress scuffle

https://www.theregister.com/2025/06/06/linux_foundation_wordpress_peacemaker/
1•saikatsg•19m ago•0 comments

Monitors Database

https://comparepcmonitors.com/
1•mjcurl•25m ago•0 comments

Sophie Germain Prime Project

https://palaiologos.rocks/sophie-germain/
3•snoofydude•26m ago•0 comments

Diabolus Ex Machina

https://amandaguinzburg.substack.com/p/diabolus-ex-machina
1•laurex•30m ago•0 comments

A world built on fossil fuels is loud. Advocates are defending peace and quiet

https://grist.org/looking-forward/a-world-built-on-fossil-fuels-is-loud-heres-how-advocates-are-defending-peace-and-quiet/
2•rntn•33m ago•0 comments

Yuri Levitan

https://en.wikipedia.org/wiki/Yuri_Levitan
1•gametorch•34m ago•0 comments

Meta found a new way to violate your privacy. Here’s what you can do.

https://www.washingtonpost.com/technology/2025/06/06/meta-privacy-facebook-instagram/
11•m463•36m ago•1 comments

I built a small prompt manager that's now used by 100 people

https://www.echostash.app
1•debeast•37m ago•1 comments

Software OSS Mercenary

https://sdegutis.github.io/blog/software-oss-mercenary.html
1•90s_dev•39m ago•0 comments

Plants hear their pollinators, and produce sweet nectar in response

https://www.cbc.ca/listen/live-radio/1-51-quirks-and-quarks/clip/16150976-plants-hear-pollinators-produce-sweet-nectar-response
1•marojejian•41m ago•1 comments

Brazil and China move ahead on 3k-km railway crossing the Amazon

https://news.mongabay.com/short-article/brazil-china-move-ahead-on-3000-km-railway-crossing-the-amazon/
1•PaulHoule•42m ago•0 comments

Apple Is on Defense at WWDC

https://www.theverge.com/apple/681739/wwdc-2025-epic-trial-apple-intelligence
2•retskrad•43m ago•2 comments

Concolic Testing

https://languagelog.ldc.upenn.edu/nll/?p=56814
1•nateb2022•44m ago•0 comments

Ccusage: CLI tool for analyzing Claude Code usage

https://github.com/ryoppippi/ccusage
1•handfuloflight•45m ago•0 comments

Europe's Climate Urgency: Driven by Green Ideals or Fear of an African Refugees?

https://masatoshinishimura.com/europes-climate-urgency-driven-by-green-ideals-or-fear-of-an-african-refugees/
3•massanishi•47m ago•0 comments

Homemade GPS Receiver (1992)

https://lea.hamradio.si/~s53mv/navsats/theory.html
2•picture•48m ago•0 comments