Python - Accessing Nested Dictionary Keys

Поділитися
Вставка
  • Опубліковано 13 лис 2018
  • Working with .json data is a very common task, no matter if you’re coming from the data science or the web development world. Let’s get started with the .json encoder in this video and see how we can access, modify and save .json data in Python.
    ----------
    Learn Python from scratch: acad.link/python-blockchain
    Download the source file: a.storyblok.com/f/42126/x/ffd...
    What is a Dictionary: docs.python.org/3/tutorial/da...
    What are Lists: docs.python.org/3/tutorial/in...
    Want to learn something totally different? Check out all other courses: academind.com/learn/our-courses
    ----------
    • You can follow Max on Twitter (@maxedapps).
    • And you should of course also follow @academind_real.
    • You can also find us on Facebook.( / academindchannel )
    • Or visit our Website (www.academind.com) and subscribe to our newsletter!
    See you in the videos!
    ----------
    Academind is your source for online education in the areas of web development, frontend web development, backend web development, programming, coding and data science! No matter if you are looking for a tutorial, a course, a crash course, an introduction, an online tutorial or any related video, we try our best to offer you the content you are looking for. Our topics include Angular, React, Vue, Html, CSS, JavaScript, TypeScript, Redux, Nuxt.js, RxJs, Bootstrap, Laravel, Node.js, Progressive Web Apps (PWA), Ionic, React Native, Regular Expressions (RegEx), Stencil, Power BI, Amazon Web Services (AWS), Firebase or other topics, make sure to have a look at this channel or at academind.com to find the learning resource of your choice!
  • Наука та технологія

КОМЕНТАРІ • 250

  • @aybikegundogdu9872
    @aybikegundogdu9872 Рік тому +2

    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 😂

  • @raghavendragowda3997
    @raghavendragowda3997 5 років тому +10

    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!!!

    • @academind
      @academind  5 років тому

      Just wonderful to read that Raghavendra, thank you so much!

  • @ashxos
    @ashxos 3 роки тому +1

    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 UA-cam Search. What a relief! This is the best video of Nested list example ever. Thanks a Lot!

  • @rajguptaverma
    @rajguptaverma 3 роки тому +1

    No much nested code..... a very simple presentation..... a great video...finally got relevant information...Thank you

  • @deepshah737
    @deepshah737 Рік тому +1

    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!

  • @nataliagomes5541
    @nataliagomes5541 2 роки тому

    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.

  • @ininvideos
    @ininvideos 4 роки тому +36

    You did a good job explaining and breaking down nested lists and nested dictionaries in a json file. Best tutorial.

  • @ParleysWoodedJourney
    @ParleysWoodedJourney 2 роки тому +1

    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

  • @brentsimpson3791
    @brentsimpson3791 2 роки тому +1

    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.

  • @puttygutt
    @puttygutt 3 роки тому +1

    Fantastic overview of navigating nested dictionaries! Incredibly helpful. Thank you.

  • @bobdesilets2077
    @bobdesilets2077 3 роки тому +17

    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!!!

    • @bobby_bouche
      @bobby_bouche Рік тому +1

      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!

  • @krishnakiranvajha3175
    @krishnakiranvajha3175 3 роки тому

    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 !!

  • @rchur
    @rchur 2 роки тому

    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 UA-cam video many times.
    I would like to express my sincere gratitude to you. All the best and stay safe. Cheers
    Rchur

  • @timlambert4955
    @timlambert4955 3 роки тому +6

    This was a really well done video. Well organised and executed. The teacher deserves Kudos!

  • @getacho
    @getacho 4 роки тому

    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.

  • @cesarrivas3743
    @cesarrivas3743 4 роки тому

    Thanks for the good explanation, understanding that jsons are basically dictionarys and lists make a great impact!

  • @mommyfurry9596
    @mommyfurry9596 2 роки тому

    Very clear and precise! Just like industry-based example. Thank you so much, more powers!

  • @TashieTash
    @TashieTash 3 роки тому +8

    Thank you so much! this helped me out! best tutorial ever!

  • @tmmason10
    @tmmason10 3 роки тому

    I looked all afternoon and this was so clear to understand.

  • @samanthaanita
    @samanthaanita Рік тому

    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!!!

  • @otroclinker
    @otroclinker 4 роки тому +1

    Thanks so much, it really helped me. Keep doing great courses.

  • @shailyrathore3071
    @shailyrathore3071 3 роки тому

    Well explained.
    I was looking for this kind of session from long back. Thanks a lot.

  • @timob12
    @timob12 2 роки тому

    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

  • @aliyanpops6424
    @aliyanpops6424 3 роки тому

    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!!

  • @sarashan12
    @sarashan12 2 місяці тому

    Fantastic walk through and great way to grasp the flow even for a starter . Keep creating videos like this

  • @ryhanuddin9373
    @ryhanuddin9373 2 роки тому

    Very Concise and to the point. Great video!

  • @user-hf5vf7fe1m
    @user-hf5vf7fe1m 9 місяців тому

    Thanks so much! I spent hours to go through TA's video but was still confused. This is definitely life-saving!

  • @xstuartfbarrettx
    @xstuartfbarrettx 4 роки тому +1

    Excellent walk through. It was exactly what I was looking for. Thank you!

  • @detlefschulz-8879
    @detlefschulz-8879 4 роки тому +4

    Sehr gut erklärt, vielen Dank!

  • @sanobarlambey7997
    @sanobarlambey7997 4 роки тому +1

    Perfectly explained..thank you!

  • @eliyassala3505
    @eliyassala3505 2 роки тому +1

    Thanks! This is useful when first dealing with a raw JSON response and want to parse through the data to get specific values.

  • @forwardclarity
    @forwardclarity Рік тому

    This has to be the best video on the subject I’ve seen. Thanks man!

  • @lindaphan9234
    @lindaphan9234 4 роки тому

    Very clear explanation . Thank you!

  • @abbisalmi1948
    @abbisalmi1948 3 роки тому

    Thanks for the detailed explanation. Worth every minute.

  • @antonietapintorebelo5020
    @antonietapintorebelo5020 5 років тому +5

    Thank you so much! You saved my ass for my Graduation Internship

    • @academind
      @academind  5 років тому

      Happy to read that the video was helpful Antonieta :)

  • @palo8818
    @palo8818 Рік тому

    I couldn't find the JSON file in description, but I followed using my own. Thank you ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

  • @caioborgonha3900
    @caioborgonha3900 3 місяці тому

    Great job! This is really a practical example to train and use on our daily jobs

  • @sth7721
    @sth7721 4 роки тому

    Very Nice Explanation in a simple manner. Keep it up. Thanks a Lot!!

  • @alvaroramirez8151
    @alvaroramirez8151 2 роки тому

    Is it possible to find just the right video you were looking for? Yes. Great video

  • @wasislos
    @wasislos 4 роки тому

    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.

  • @michaelc3650
    @michaelc3650 4 роки тому

    Thank you so much!! This is just the video I needed

  • @ashwithullal
    @ashwithullal 3 роки тому

    Explained with super clarity.

  • @SOMEONE-eq5bu
    @SOMEONE-eq5bu 2 роки тому

    very well simplified, much appreciate it.

  • @leodigiacomo
    @leodigiacomo 11 місяців тому

    This is great. explaining the logic and how to interpret the syntax. Thanks for this video!

  • @adamkeinan1535
    @adamkeinan1535 2 роки тому

    You are a genius! im a Senior DevOps Engineer and still learning from you each time!!! well done sir!!!

    • @adamkeinan1535
      @adamkeinan1535 Рік тому

      @@MimiArtIIst Not really. i was implementing few of the methods shown in the video on a API

  • @divyaarasu5057
    @divyaarasu5057 3 роки тому

    Incredible. The best tutorial video I have ever seen 😊

  • @Chillos100
    @Chillos100 2 роки тому

    Brilliant!! Very well explained, thanks a lot!

  • @beenasindia8000
    @beenasindia8000 3 роки тому

    Best tutorial !! you made a difference to my learning . Thank you

  • @mirkoobkircher2571
    @mirkoobkircher2571 4 роки тому +1

    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!

  • @muracama84
    @muracama84 4 роки тому

    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

  • @alextsavalos5692
    @alextsavalos5692 3 роки тому

    excellent video !
    Perfect explanations and veery helpful !
    Thank you very much !

  • @kaushikbose4988
    @kaushikbose4988 3 роки тому

    Fantastic explanation. Hope to see more from you.

  • @karandhanak6015
    @karandhanak6015 4 роки тому

    wonderful explanation. Thank you very much!

  • @09nbnb
    @09nbnb 2 роки тому

    Thank You so much. Great video and exactly what I needed.

  • @maximelebreux2914
    @maximelebreux2914 Рік тому

    thank you very much for this tutoriel! Well explained!

  • @cardozoveronica
    @cardozoveronica Місяць тому

    Super clear information here! thank you 💚

  • @stefanvandenberg93
    @stefanvandenberg93 3 роки тому

    Excellent explenation! Helped me out so much! Thanks a ton! :D:D

  • @Germar0
    @Germar0 Рік тому

    Thank you very much for this explanation!

  • @fujimorikuro895
    @fujimorikuro895 5 років тому +2

    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!

    • @academind
      @academind  5 років тому

      Thank you Kuro, happy to read that the video was helpful!

  • @xheer543
    @xheer543 2 роки тому

    INSANELY HELPFUL THANK YOU MUCH.

  • @jiaouyang6305
    @jiaouyang6305 2 роки тому

    Fantastic tutorial, thank you!

  • @danielhaycraft7004
    @danielhaycraft7004 Рік тому +1

    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**

    • @easydatascience2508
      @easydatascience2508 Рік тому

      You can try mine too. The channel has both Python and R playlists, with downloadable source files.

  • @kevindemellosantamaria2208
    @kevindemellosantamaria2208 4 роки тому

    Você é um lindo. Thanks a lot for explaining. You save my job.

  • @scoobontheweb
    @scoobontheweb Рік тому

    awesome explanation path... Thank you very much

  • @Rumi_Rune
    @Rumi_Rune 3 роки тому

    This is a great tutorial for my small project challenge.

  • @jndesign
    @jndesign Рік тому

    Thank you for this it really clarified things for me.

  • @johnmartin9329
    @johnmartin9329 3 роки тому

    BEST tutorial on python good and simple explanation thanks keep it up man u rocks

  • @SriRam-yq4id
    @SriRam-yq4id 2 роки тому

    Excellent Video and thanks for teaching us.

  • @leportillow
    @leportillow 3 роки тому

    Finally I understood this, thank you

  • @deeek92
    @deeek92 3 роки тому

    Pretty good explanation! Thanks a lot! :)

  • @Theworldofeverything_67
    @Theworldofeverything_67 2 роки тому

    Best video for nested dictionaries 👍👍👍

  • @russellsue8520
    @russellsue8520 2 роки тому

    Thank you very much for this tutorial ❤️

  • @pukhrajsuthar7223
    @pukhrajsuthar7223 Рік тому

    Great, work really Very clear and precise! This is what exactly industry-based example. Thank you so much.

  • @basicmaths3443
    @basicmaths3443 4 роки тому +1

    How to append that in separate columns of a dataframe?

  • @aiishg_
    @aiishg_ 2 роки тому

    How did you format the data in visual studio at the end of the video? Please let me know!

  • @paulsavelli5013
    @paulsavelli5013 4 роки тому

    Great explanations, thanks

  • @duceparthiparthiban4441
    @duceparthiparthiban4441 4 роки тому

    Thank you so much
    i want more examples for different ways
    keep it up

  • @kaynatroy3690
    @kaynatroy3690 4 роки тому

    Thank you, this video was very helpful. Although, i am trying to access a dictionary within a dictionary but rather than showing up as a dictionary, the nested dictionary shows up as a string, would you know why ?

  • @denisglazer8413
    @denisglazer8413 5 років тому

    Great job explaining, sir! Thanks a lot!

  • @pipedreamsnetwerk5110
    @pipedreamsnetwerk5110 Рік тому

    This was amazing, thank you

  • @phsmack
    @phsmack 3 роки тому

    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.

  • @joringrant
    @joringrant 4 роки тому

    Is there anyway to do that without using nested for loops? Looking for something more efficient

  • @anwaralisathiopowershellac6093
    @anwaralisathiopowershellac6093 3 роки тому

    thanks you explained delicately the difficult one ..

  • @healthdatascience6577
    @healthdatascience6577 3 роки тому

    This video is saving me. Thanks!

  • @muhammadnaveedkhan6739
    @muhammadnaveedkhan6739 2 роки тому

    Thank you sir. Excellent job

  • @ThiyaguShanmugam
    @ThiyaguShanmugam 4 роки тому

    Very clear explanation.

  • @tenzinsishe9628
    @tenzinsishe9628 3 роки тому

    Very helpful! thank you :)

  • @digambarmishra
    @digambarmishra Рік тому +2

    I tried to download the source file but got message as access denied. Can you please give me access to this file.

  • @skeldon66
    @skeldon66 3 роки тому

    Great job explaining this topic thx

  • @lank_asif
    @lank_asif 5 років тому

    This was amazing, thank you!

    • @academind
      @academind  5 років тому

      Thank you Lank, happy to read that!

  • @mattk3650
    @mattk3650 3 роки тому

    Thank you sir, very helpful.

  • @ParleysWoodedJourney
    @ParleysWoodedJourney 2 роки тому +1

    Is there a place we can still get the source file you used in your demonstration? The link in the description is dead.

  • @maclanphere5674
    @maclanphere5674 4 роки тому

    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?

  • @bigpoe3379
    @bigpoe3379 3 роки тому

    Thank you so much, you helped me a lot :D

  • @avalealidzy6739
    @avalealidzy6739 3 роки тому

    Excellent tutorial!!!

  • @nicholasberglund
    @nicholasberglund 3 роки тому

    Excellent! Thank you ❤️

  • @S3shubham
    @S3shubham 3 роки тому

    love you ... brother ... for this.
    i learned something new for you ..... You help me in my journey of learning python

  • @sathishkumarvp3686
    @sathishkumarvp3686 3 роки тому

    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?

  • @viniciusnavarro93
    @viniciusnavarro93 2 роки тому

    Thanks a lot! saved me in my work

  • @venkateshneelam3435
    @venkateshneelam3435 4 роки тому +1

    Nice explanation thnXs