So delicate, detailed, precise and iterative explanation which can save any beginner or experienced Python developer's day. Hats off to the patience level and step-by-step explanation!!!
Mate! I'm new at Python, but this one video has unlocked the whole dictionary and table within a dictionary within a table thing...I had quite literally sampled numerous whiskeys over it... so if you're ever in NZ look me up.
I've struggled with understanding how to pull out specific information in nested dictionaries for a long time now. Not only do finally understand the type errors I was getting, I have a much better idea of how to do basic code development in Jupyter. Thank you!!!
this is me right now, I just failed a class quiz on extracting specific values from nested dictionaries. I feel so utterly dumb right now so here I am, diving into this vid to hopefully figure out why my stupid brain can't figure it out!
I am studying AWS boto3 and understanding Nested Dicts was a struggle for me for weeks! I can't believe how taught me this concept in few minutes! Thank you so much! I wish you great health!
This is Amazing! I was searching for nested list examples on blogs, youtube for a week. After one week, today I got this video in RUclips Search. What a relief! This is the best video of Nested list example ever. Thanks a Lot!
what an incredible explanation. Nothing on the internet compares to this video about json. Seriously, thank you so much!!!!! I paused the video all happy because I'm understanding to give thanks from my heart. Thank you! You have an amazing didactic, explain very well, in detail and with patience for beginners. I'll come back more often on your channel.
Explained the difficult nested json in a simpler way breaking down first then applied the same into python code ....I struggled writing complex ones ...after watching this I could write easily...Thanks so much !!
you're the GOAT. This kind of material is going to be present on my midterm tomorrow, and I felt so enlightened after watching this video. BIG UP TO YOU!!!
Thank you so much for this. It really helped that you went from dictionary to list to a dictionary to list . . . and then showed each step individually and then at the end showed how they can all be daisy-chained into nested loops. saved and added to my personal python playlist
Hi, I am unable to download the source file from your link. Error: This XML file does not appear to have any style information associated with it. The document tree is shown below. AccessDenied Access Denied G8QDM85DPG3DQM5M b/XNC5DM7r2vWBPsjvLp6dzwiFuFzMz8oUAKKJlpKMTfnyAnYCvtPX1F3eJVfAPsY+gLPkojJtc=
Super helpful, will need to review this several times but you helped a lot with my confusions of how to access a Dict when it outputs a list and then becomes a Dict again and then outputs a list and so on. Need to keep reminding myself to take a step by step approach
Hey Mate, thanks for the video. You did a good job in explaining how to write a parser for nested json. Today I successfully wrote my very first nested json parser after watching your RUclips video many times. I would like to express my sincere gratitude to you. All the best and stay safe. Cheers Rchur
Thanks for the video. Although I suggest you explain to your viewers, that you are using the Python context manager. When people come here to learn, they can be easily misled that whenever they want to work with a .json file, it is necessary to use the context manager. We both know that you can open a .json without this method.
This video saved my sanity. Give this man a tasty craft beer...unless he is a recovering alcoholic, in which case give him whatever he wants that is equivalent to the tasty craft beer.
Excellent explanation about how to work with nested dictionaries. I was able to apply this knowledge with a very difficult json file. Thank you very much for your hard work.
How can we print that data in dictionary format so that key and value pair seen, for example {results: results, class: class A, username: abc}. But not nested. Each item should have initial key and rest of nested keys too
Thank you for the video. I noticed some peoples names came up more than once. It would have made sense in this lesson to have added the code to how you could have outputted results with non-repeated names.
Great tutorial. One question: What did you press (and what is in your VS Code settings apart pep8 formatting) to format the list from the json file? Thank you.
I have question. Why we need loop for list ? what the loop do for the list data and put the data into variable. I tried to access 'replies' and tried directly access username data with replies_data['user']['display_name'] without loop then i got error "list indices must be integers or slices, not str" then i change the 'user' and 'display_name' with integer value and it's didn't work until i put loop and finally, I got the display_name value. Why i need loop for accessing the 'display_name'. Thanks
after the first dict when I do the look 'for...in' and I look at the type, it says string insteand of list... I don't know why I don't get a list out of the dictionnary
Hello, Can you help me with this problem, I want to check whether a key exists in the json file , if so then want to dump the whole data in which the key exist into new json file....
What if there are multiple nested dictionaries in a List inside a list of dictonaries , I cant find a way avoiding doing that for example: [1], it looks like this data[0]['element'][0']['value']['#text]
Using similar data, I converted the data to a pd.DataFrame (so it looks like a table) and the column that is the key becomes a column. In that column there are the nested dictionaries (one nested dictionary per row) in the dataframe. How do I “bring out” the rested dictionaries out of the column?? I don’t want to keep on doing the index for each value. Any assistance would be helpful.
Hi sir, I want to know how I can delete one of the element from the final list replies access. Like based on a value. Example like if class key's value is answer I want to keep the element, if it is something like un answered I want to delete that element from the list index. And it should be no longer present in my original json object. Kindly help me on this sir. Thank you.
How to retrieve only the Json Key using python ? Since my JSON File is dynamic i want to first count how many keys ? and post then i will print the key and keyvalues in to string. Kindly help me
Great video, great examples. I needed to learn how to get some data from Github Api v4. The json is very deep, 8 or 9 layers all different types lists, dict, tuples. Thanks for helping me.
very good--I've seen examples that use the methods of .values() and .items() when accessing dict/JSON data. You've managed without them. When are these useful?
thanks for your video... this gave me good idea how to handle json file... I came across in real world,.. struggling to fix... the scenario if this... reading nested dictionary in a json file and add a item to a list if a condition meet.. can you suggest something to refer?
Great stuff and super helpful! thanks so much for this. If I may ask one question on it: assuming in addition to "display_name" you'd also like to extract the value from "_class" key, how would you amend the code to end up with a 2d array for "save_data" instead of a 1d array with 1 column? e.x.: print(save_data) >>> [["user", "Maximilian Schwarzmüller"]["user","Bernd Raucher"]] thanks again!
So delicate, detailed, precise and iterative explanation which can save any beginner or experienced Python developer's day. Hats off to the patience level and step-by-step explanation!!!
Just wonderful to read that Raghavendra, thank you so much!
Mate! I'm new at Python, but this one video has unlocked the whole dictionary and table within a dictionary within a table thing...I had quite literally sampled numerous whiskeys over it... so if you're ever in NZ look me up.
No much nested code..... a very simple presentation..... a great video...finally got relevant information...Thank you
You did a good job explaining and breaking down nested lists and nested dictionaries in a json file. Best tutorial.
I've struggled with understanding how to pull out specific information in nested dictionaries for a long time now. Not only do finally understand the type errors I was getting, I have a much better idea of how to do basic code development in Jupyter. Thank you!!!
this is me right now, I just failed a class quiz on extracting specific values from nested dictionaries. I feel so utterly dumb right now so here I am, diving into this vid to hopefully figure out why my stupid brain can't figure it out!
I am studying AWS boto3 and understanding Nested Dicts was a struggle for me for weeks! I can't believe how taught me this concept in few minutes! Thank you so much! I wish you great health!
This is Amazing! I was searching for nested list examples on blogs, youtube for a week. After one week, today I got this video in RUclips Search. What a relief! This is the best video of Nested list example ever. Thanks a Lot!
This video saved me. I have been stuck on this task at my job for two weeks now and finally I see the light at the end of the tunnel 😂
even me, now it was helpful
You are a genius! im a Senior DevOps Engineer and still learning from you each time!!! well done sir!!!
@@HadiArtIIst Not really. i was implementing few of the methods shown in the video on a API
This was a really well done video. Well organised and executed. The teacher deserves Kudos!
couldn't agree more! 🙌
Is there a place we can still get the source file you used in your demonstration? The link in the description is dead.
what an incredible explanation. Nothing on the internet compares to this video about json. Seriously, thank you so much!!!!! I paused the video all happy because I'm understanding to give thanks from my heart. Thank you! You have an amazing didactic, explain very well, in detail and with patience for beginners. I'll come back more often on your channel.
Explained the difficult nested json in a simpler way breaking down first then applied the same into python code ....I struggled writing complex ones ...after watching this I could write easily...Thanks so much !!
you're the GOAT. This kind of material is going to be present on my midterm tomorrow, and I felt so enlightened after watching this video. BIG UP TO YOU!!!
Thank you so much for this. It really helped that you went from dictionary to list to a dictionary to list . . .
and then showed each step individually and then at the end showed how they can all be daisy-chained into nested loops.
saved and added to my personal python playlist
I looked all afternoon and this was so clear to understand.
Man Man Man I have been trying to figure this out for 2 days cause am a newbie, but you saved me...no you saved a lot of peeps out here. Thank you!!
Fantastic overview of navigating nested dictionaries! Incredibly helpful. Thank you.
Is it possible to find just the right video you were looking for? Yes. Great video
Hi, I am unable to download the source file from your link.
Error: This XML file does not appear to have any style information associated with it. The document tree is shown below.
AccessDenied
Access Denied
G8QDM85DPG3DQM5M
b/XNC5DM7r2vWBPsjvLp6dzwiFuFzMz8oUAKKJlpKMTfnyAnYCvtPX1F3eJVfAPsY+gLPkojJtc=
Super helpful, will need to review this several times but you helped a lot with my confusions of how to access a Dict when it outputs a list and then becomes a Dict again and then outputs a list and so on. Need to keep reminding myself to take a step by step approach
Hey Mate, thanks for the video. You did a good job in explaining how to write a parser for nested json. Today I successfully wrote my very first nested json parser after watching your RUclips video many times.
I would like to express my sincere gratitude to you. All the best and stay safe. Cheers
Rchur
Thanks so much! I spent hours to go through TA's video but was still confused. This is definitely life-saving!
This has to be the best video on the subject I’ve seen. Thanks man!
Fantastic walk through and great way to grasp the flow even for a starter . Keep creating videos like this
Thank you so much! You saved my ass for my Graduation Internship
Happy to read that the video was helpful Antonieta :)
I couldn't find the JSON file in description, but I followed using my own. Thank you ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
I tried to download the source file but got message as access denied. Can you please give me access to this file.
thank you for this! literally took two seconds to scan along what you were doing and i realized where i was going wrong lol! thank you!
Subscribed**
You can try mine too. The channel has both Python and R playlists, with downloadable source files.
Great job! This is really a practical example to train and use on our daily jobs
Thanks! This is useful when first dealing with a raw JSON response and want to parse through the data to get specific values.
This was helpful for me, your way of explaining is really spot on too, because even I understood what was being explained lolol, good job and thanks!
Thank you Kuro, happy to read that the video was helpful!
Thank you so much! this helped me out! best tutorial ever!
Thanks for the video. Although I suggest you explain to your viewers, that you are using the Python context manager. When people come here to learn, they can be easily misled that whenever they want to work with a .json file, it is necessary to use the context manager. We both know that you can open a .json without this method.
Explained with super clarity.
This is great. explaining the logic and how to interpret the syntax. Thanks for this video!
How to append that in separate columns of a dataframe?
Is there anyway to do that without using nested for loops? Looking for something more efficient
This video saved my sanity. Give this man a tasty craft beer...unless he is a recovering alcoholic, in which case give him whatever he wants that is equivalent to the tasty craft beer.
Thanks for the good explanation, understanding that jsons are basically dictionarys and lists make a great impact!
Excellent explanation about how to work with nested dictionaries. I was able to apply this knowledge with a very difficult json file. Thank you very much for your hard work.
thx, wait, just found out u can also do something like file[“bpi”][“USD”][“rate_float”]
Do you have more detail of this in your python 2023 course ?
Excellent walk through. It was exactly what I was looking for. Thank you!
Thank you Stuart!
BEST tutorial on python good and simple explanation thanks keep it up man u rocks
Best video for nested dictionaries 👍👍👍
love you ... brother ... for this.
i learned something new for you ..... You help me in my journey of learning python
Incredible. The best tutorial video I have ever seen 😊
Thanks man a lot, i was a bit confused with json i got, couldnt understand what to do, but after your video it all made sense.
Access is denied when downloading the json?
How did you format the data in visual studio at the end of the video? Please let me know!
How did you format Json data @ 24:07 ?
This is a great tutorial for my small project challenge.
How can we print that data in dictionary format so that key and value pair seen, for example {results: results, class: class A, username: abc}. But not nested. Each item should have initial key and rest of nested keys too
Thank you for the video. I noticed some peoples names came up more than once. It would have made sense in this lesson to have added the code to how you could have outputted results with non-repeated names.
Great tutorial. One question: What did you press (and what is in your VS Code settings apart pep8 formatting) to format the list from the json file? Thank you.
seems vs code identifies this by the .json filename-extension. Once an .json file is loaded to VS Code press CTRL+ALT+F (like format)
Very Concise and to the point. Great video!
How can we access more complex dict to get values !?
I have question. Why we need loop for list ? what the loop do for the list data and put the data into variable. I tried to access 'replies' and tried directly access username data with replies_data['user']['display_name'] without loop then i got error "list indices must be integers or slices, not str" then i change the 'user' and 'display_name' with integer value and it's didn't work until i put loop and finally, I got the display_name value. Why i need loop for accessing the 'display_name'. Thanks
after the first dict when I do the look 'for...in' and I look at the type, it says string insteand of list... I don't know why I don't get a list out of the dictionnary
Thanks for the detailed explanation. Worth every minute.
Hello, Can you help me with this problem, I want to check whether a key exists in the json file , if so then want to dump the whole data in which the key exist into new json file....
The source file is showing access denied. Please help or tell any alternative site to download data like this.
is it possible to do this without using nested for loops?
Very Nice Explanation in a simple manner. Keep it up. Thanks a Lot!!
What if there are multiple nested dictionaries in a List inside a list of dictonaries , I cant find a way avoiding doing that for example: [1], it looks like this data[0]['element'][0']['value']['#text]
How can we convert a post script written in Elastic search in Python?
at 5:25 i'm trying to see my read_content variable's type but it's saying type is list, not a dict. how could it be possible?
So now how do I access 1 of those values instead of a list of all the values? How do you isolate only 1 name?
Best tutorial !! you made a difference to my learning . Thank you
I try to make for loops make sense with naming. Eg
for reply in data[replies]:
print(reply)
Using similar data, I converted the data to a pd.DataFrame (so it looks like a table) and the column that is the key becomes a column. In that column there are the nested dictionaries (one nested dictionary per row) in the dataframe. How do I “bring out” the rested dictionaries out of the column?? I don’t want to keep on doing the index for each value. Any assistance would be helpful.
Hi sir,
I want to know how I can delete one of the element from the final list replies access. Like based on a value. Example like if class key's value is answer I want to keep the element, if it is something like un answered I want to delete that element from the list index.
And it should be no longer present in my original json object.
Kindly help me on this sir.
Thank you.
Well explained.
I was looking for this kind of session from long back. Thanks a lot.
What happened to the source file?
Hi, If I want to remove remove 'url' for every item present in list "question_access" and print rest of the list , how can we do that ?
I have a couple Json dists and lists I need parsing through. You want to do a little freelance work?
Can't download the json file from the link. It says access denied.
Very clear and precise! Just like industry-based example. Thank you so much, more powers!
Thanks so much, it really helped me. Keep doing great courses.
Hey great one! Now how do you do if one of the nested lists doesn’t have a value? I tend to have index error
This is great - is the Jupyter notebook available?
Thank you for that explanation. Is there ANY simpler way to access Keys and Values of nested Dictionaries?
im getting key error please help me out.and is there any method to put this list into dataframes
Great, work really Very clear and precise! This is what exactly industry-based example. Thank you so much.
How to retrieve only the Json Key using python ? Since my JSON File is dynamic i want to first count how many keys ? and post then i will print the key and keyvalues in to string. Kindly help me
Super clear information here! thank you 💚
Great video, great examples. I needed to learn how to get some data from Github Api v4. The json is very deep, 8 or 9 layers all different types lists, dict, tuples. Thanks for helping me.
Is the data still available? could not download
Awesome explanation.. do you have detailed course on python by same instructor?
Amazing ...2 words ...super liked and subscribed 😀
Thanks so much Sagar, so great to have you on board of our channel!
very good--I've seen examples that use the methods of .values() and .items() when accessing dict/JSON data. You've managed without them. When are these useful?
Very well explained. Is there an updated link for the source file
when i import json and check the type it says List how do i change that to a dict?
Fantastic explanation. Hope to see more from you.
Perfectly explained..thank you!
awesome explanation path... Thank you very much
thanks for your video... this gave me good idea how to handle json file...
I came across in real world,.. struggling to fix...
the scenario if this...
reading nested dictionary in a json file and add a item to a list if a condition meet.. can you suggest something to refer?
how i can add this data to a excel file now
Great stuff and super helpful! thanks so much for this. If I may ask one question on it:
assuming in addition to "display_name" you'd also like to extract the value from "_class" key, how would you amend the code to end up with a 2d array for "save_data" instead of a 1d array with 1 column?
e.x.: print(save_data)
>>> [["user", "Maximilian Schwarzmüller"]["user","Bernd Raucher"]]
thanks again!