May-20-2018, 11:02 AM
(May-20-2018, 06:30 AM)PrateekG Wrote: Can anyone please try with above json data and share me the required dataframe?
You are kidding, right? Or you want to pay someone to do it for you?
You can, of course, write a recursive function - that will traverse your JSON searching for
name
keys - and attaching ID of the parent record together with the name to your dataset.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.