Hacker News new | past | comments | ask | show | jobs | submit login

Yes, the newer "pivot_wider" and "pivot_longer" are just much cleaner and nicer than the 25 different half-broken way you can use in pandas. Luckily I don't have to do a lot of data engineering anymore, because R is just not fun for large projects while pandas is very unergonomic



It sounds like in the past you’ve used pandas/python for this. Any opinions on the best option for pivoting with those tools?


I did and honestly both ways I tried (pivot and melt) looked disappointing compared to tidyr. I just don't like the reliance on indices (and the stateful API that comes with it) in many operations, like in pivot




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: