Interesting Data Restructuring Problem
This seemed like an interesting problem. I hope this isn't someone's take-home homework or an interview question. It seemed organic enough when I found out about it.
Given a document like this...
doc = {
"key": "the key",
"tag1": ["list", "of", "values"],
"tag2": ["another", "list", "here"],
"tag3": ["lorem", "ipsum", "dolor"],
}
We want …
more ...