|

Quick Example and Walk-Through JSON with Python

This is a quick to create a dictionary object , write it to a JSON file and then read back the file and convert it to a dictionary and access the items in the dictionary.

Credit to : codebasics.  You can check him out on Youtube

In [3]:

 

In [6]:

 

Out[6]:
In [14]:

 

In [15]:

 

Out[15]:
In [16]:

 

Out[16]:
In [18]:

 

In [19]:

 

Out[19]:
In [20]:

 

Out[20]:
In [21]:

 

Out[21]:
In [22]:

 

Out[22]:
In [30]:

 

Hope it helps

 

Want more information like this?

Similar Posts

  • WindowsError: [Error 5] Access is denied: Anaconda Python Pip Installs and Upgrade

    I was trying to run a pip install ( pip install scikit-learn) and I encountered this error:

    This is the bit we are interested in ”

    ” if you look at the error it states “WindowsError” Hence the Access Denied error is due to not having the right level of privileges to carry…

  • Simple Python Logging Callling Reload to Help Save Logging to File

      In this notes, we are looking at a simple but yet useful and powerful logging in Python In [77]:

      In [78]:

      In [79]:

     

      Want more information like this?

  • Opening and Reading Text Files by Buffer Size – Python

    Today, I went through “Opening and Reading Text Files by Buffer Size” with a friend of mine who wanted to grasp the basic concepts of Python This is a simple but straightforward tutorial into the “Opening and Reading Text Files by Buffer Size We further delved into opening and reading binary files. In our case…

  • | |

    Coursera Capstone Project – Data Analysis and Interpretation

    What is it This week, I started the Data Analysis and Interpretation Capstone by Wesleyan University on Coursera. This is the final of 5 course specialisation. The capstone project is expected to take 4 weeks. With each week tackling and doing a major component of the Project work.   What is the objective The objective of…

  • |

    DataSets Around the Web For Big Data, Machine Learning and DataScience Practices

    Here is a collection of several DataSet repositories, I have come across the web. ( I will adding more along the way) You can add to this by commenting on the post and I will update it in the this list Google Dataset Search : This is a great tool released by Google to help…

  • |

    Association Of The Literacy Rate And Life Expectancy & Association Of The Literacy Rate And Income Per Person: The Case of Ghana

    Background of the Dataset CSV file Used:   In the GapMinder Codebook the Unique        Identifier = Country Hence in this program, my Unique Identifier = Ghana 1.      There are 3 chosen variables (columns) that are core to my chosen research question which is based on the country Ghana. These are a.       incomeperperson b.      lifeexpectancy…

Leave a Reply

Your email address will not be published. Required fields are marked *