Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [{"@context":"ABC","entity":"PQR","URL":"abc@yahoo.com"}]
- [{"@context":"RST","entity":"UVW","URL":"efg@gmail.com"}]
- .............
- ............
- ............
- @context entity URL
- ABC PQR abc@yahoo.com
- RST UVW efg@gmail.com
- ... ... .......
- ... ... .......
- from itertools import chain
- L = [[{"@context":"ABC","entity":"PQR","URL":"abc@yahoo.com"}],
- [{"@context":"RST","entity":"UVW","URL":"efg@gmail.com"}]]
- df = pd.DataFrame(list(chain.from_iterable(L)))
- print (df)
- @context URL entity
- 0 ABC abc@yahoo.com PQR
- 1 RST efg@gmail.com UVW
Add Comment
Please, Sign In to add comment