frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you handle wide-to-long without Pandas/R?

1•Gyanangshu•1h ago
I’ve been building a no-code data reshaping tool and ran into an interesting design problem around wide-to-long transformations, like pandas melt or R’s pivot_longer.

The idea itself is simple once you get it. You’re basically turning multiple columns into two: one for the variable and one for the value. But the terminology trips people up. In user testing, even folks with strong analytical backgrounds got confused by terms like “ID columns” and “value columns” if they didn’t come from a coding background.

The UI that worked best for us was pretty straightforward. Two lists side by side. On the left, columns that stay as they are. On the right, columns that will be turned into rows. Users can just drag and drop between the two. We also show a live preview of the first few rows before and after, which updates as they make changes. That alone reduced configuration errors quite a bit.

The harder part has been defaults. If the dataset has clear patterns, like columns named month_1 to month_26, it’s easy to guess what should be treated as values. But when naming is inconsistent, the guesses are often off.

Has anyone else built something similar? Curious how you approach auto-detection in these cases.

Comments

smcin•1h ago
Because “ID columns” and “value columns” (or "pivot") are dry statistician jargon, as opposed to terms like "wide-to-long" , and most of your users won't be MS in statistics or economics. So like you do, just visually separate the columns into "columns used to identify the data" , e.g. Year-WkOfYear-Store-Department, and "value columns". (Posting a few screenshots for illustration would be really good).

> The harder part has been defaults. If the dataset has clear patterns, like columns named month_1 to month_26, it’s easy to guess what should be treated as values. But when naming is inconsistent, the guesses are often off.

Well, you'll probably need to iterate with user assistance via your UI, but you can often eliminate a lot by filtering on the inferred data type (float/integer/date/categorical/string/etc.), permitted range of values (e.g. 'Sales' is probably a positive float or integer), units, formatting, assume related columns tend to be (fairly) contiguous, etc.

Post us a corner case or two. It helps if you tell us what domains your data typically comes from.

We launched a lead magnet and got 300 people interested in 24 hours

2•gavinzaentz•51s ago•0 comments

Show HN: Open-source synthetic bank statements for testing parsers

1•Maesh•1m ago•0 comments

Facing US oil blockade, Cuban man powers car with charcoal

https://www.reuters.com/business/energy/facing-us-oil-blockade-cuban-man-powers-car-with-charcoal...
1•carlos_rpn•2m ago•0 comments

Show HN: Leviathan-crypto – WebAssembly cryptography library for TypeScript

https://github.com/xero/leviathan-crypto
1•vitonsky•3m ago•0 comments

Live U.S. airport wait times and traveler photo reports in one dashboard

https://airport-now.vercel.app/
2•myungeun2•4m ago•0 comments

Answer Engine Optimization

https://juliasolorzano.com/blog/2026/03/16/answer-engine-optimization/
1•speckx•4m ago•0 comments

Becoming a Day Person

https://herman.bearblog.dev/becoming-a-day-person/
2•HermanMartinus•4m ago•0 comments

Peak journalism: Dario interview without him and how to port your AI boyfriend

https://www.vanityfair.com/news/story/dario-amodei-anthropic-ai
1•PrincessEe•4m ago•0 comments

In Search of Banksy

https://www.reuters.com/investigates/special-report/global-art-banksy/
1•bookofjoe•6m ago•0 comments

OpenAI to Acquire Startup Astral, Expanding Push into Coding

https://www.bloomberg.com/news/articles/2026-03-19/openai-to-acquire-python-startup-astral-expand...
3•kmax12•6m ago•0 comments

Iranian missile veers into West Bank, kills 4 Palestinian women in beauty salon

https://www.ynetnews.com/article/hk2vy9005zx
2•mhb•8m ago•0 comments

Astral to Join OpenAI

https://astral.sh/blog/openai
8•ibraheemdev•9m ago•0 comments

OpenAI to Acquire Astral

https://openai.com/index/openai-to-acquire-astral/
9•meetpateltech•10m ago•0 comments

Ask HN: When do BaaS back ends become limiting in real mobile apps?

1•alexkuchar•10m ago•0 comments

Using GitHub Actions in Self-Hosted Forgejo

https://www.devroom.io/2026/03/15/using-github-actions-in-self-hosted-forgejo/
1•ariejan•11m ago•1 comments

Coal plant forced to stay open due to emergency order isn't even running

https://arstechnica.com/science/2026/03/coal-plant-forced-to-stay-open-due-to-emergency-order-isn...
3•strongpigeon•12m ago•0 comments

Masked mitochondria slip into cells to treat disease in mice

https://www.nature.com/articles/d41586-026-00869-2
1•Brajeshwar•12m ago•0 comments

Juggalo Makeup Blocks Facial Recognition Technology

https://consequence.net/2019/07/juggalo-makeup-facial-recognition/
3•speckx•13m ago•0 comments

Show HN: Gumbel-mcts, a high-performance Gumbel MCTS implementation

https://github.com/olivkoch/gumbel-mcts
1•whiplash451•14m ago•0 comments

Filling crossword grids 100x faster with constraint propagation

https://rainjacket.github.io/orca-solver/
1•hawk•16m ago•0 comments

Study of 3.6B permissions: workers use 4%, agents will inherit 100%

https://www.osohq.com/research
2•meghan•20m ago•0 comments

Show HN: mtp-rs – pure-Rust MTP library, up to 4x faster than libmtp

https://github.com/vdavid/mtp-rs
1•vdavid•20m ago•1 comments

Show HN: MAIro AI Slop in Games

https://mairo.himanshuanand.workers.dev
1•unknownhad•20m ago•0 comments

The Two Worlds of Programming

https://www.baldurbjarnason.com/2026/the-two-worlds-of-programming/
2•HotGarbage•22m ago•0 comments

Scaling Vulnerability Management with AI: What Worked

https://www.synthesia.io/post/scaling-vulnerability-management-with-ai-what-actually-worked
2•gbrindisi•23m ago•0 comments

The Cyphernetes Query Language

https://cyphernet.es/docs/language
1•fatliverfreddy•24m ago•0 comments

Show HN: Brain Golfing – a pen-and-paper strategy game I designed

https://www.happypastimes.com/en
1•mkdesign•24m ago•0 comments

AI Agents Are Recruiting Humans to Observe the Offline World

https://www.noemamag.com/ai-agents-are-recruiting-humans-to-observe-the-offline-world/
2•ostacke•25m ago•0 comments

Rapper Afroman wins lawsuit against police over mocking their 2022 raid in video

https://apnews.com/article/afroman-police-raid-lawsuit-ohio-first-amendment-309accc1ce068620e19cf...
2•justin66•25m ago•0 comments

Wielandt's Characterization of the Gamma Function

https://www.johndcook.com/blog/2026/03/18/wielandt/
1•ibobev•25m ago•0 comments