Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import pandas as pd
- with open("walmart.json") as f:
- data = json.load(f)
- walmart = data["items"]
- wdf = pd.DataFrame(walmart,columns=["productId","primaryOffer"])
- print(wdf.loc[0,"primaryOffer"])
- pd.set_option('display.max_colwidth', None)
- print(wdf)
Advertisement
Add Comment
Please, Sign In to add comment