Coder Social home page Coder Social logo

ndgigliotti / dsc-exploring-and-transforming-json-schemas-lab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-curriculum/dsc-exploring-and-transforming-json-schemas-lab

0.0 0.0 0.0 3.44 MB

License: Other

Jupyter Notebook 100.00%

dsc-exploring-and-transforming-json-schemas-lab's Introduction

Exploring and Transforming JSON Schemas

Introduction

In this lesson, you'll formalize how to explore a JSON file whose structure and schema is unknown to you. This often happens in practice when you are handed a file or stumble upon one with little documentation.

Objectives

You will be able to:

  • Use the JSON module to load and parse JSON documents
  • Load and explore unknown JSON schemas
  • Convert JSON to a pandas dataframe

Loading the JSON file

Load the data from the file disease_data.json.

#Your code here 

Explore the first and second levels of the schema hierarchy

#Your code here

Convert to a DataFrame

Create a DataFrame from the JSON file. Be sure to retrive the column names for the dataframe. (Search within the 'meta' key of the master dictionary.) The DataFrame should include all 42 columns.

#Your code here

Level-Up

Create a bar graph of states with the highest asthma rates for adults age 18+

Summary

Well done! In this lab you got some extended practice exploring the structure of JSON files, converting json files to pandas DataFrame, and visualizing data!

dsc-exploring-and-transforming-json-schemas-lab's People

Contributors

lmcm18 avatar loredirick avatar mathymitchell avatar ndgigliotti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.