Coder Social home page Coder Social logo

limegimlet / data_analysis_gapminder_co2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 64.63 MB

Investigate per capita CO2 data from Gapminder.

Jupyter Notebook 57.02% HTML 42.98%
gapminder pandas exploratory-data-visualizations exploratory-data-analysis plotly-example

data_analysis_gapminder_co2's Introduction

Analysis of Gapminder per capita CO2 data

This project involves data wrangling several Gapminder datasets into one long-format CSV. This data is then analyzed with Pandas, Numpy, Plot.ly + Cufflinks, as well as Seaborn.

All work is in jupyter notebooks.

While all data wrangling is painful, the initial matching of region & sub-region values (e.g. 'Europe' & 'Western Europe') to country names was so particularly painful that I've documented it iin a separate file, to not distract from the flow of the data analysis.

For the same reasons, the wrangling into long format & batch-merging of multiple Gapminder datasets is also done in a separate notebook.

File structure

/gapminder:

  • analyze_CO2.ipynb: Loads data/final_df.csv and analyzes first only CO2_pc, then CO2_pc by region & sub-region, then does multi-variate analyses with variables for energy, income, and standard-of-living.

  • analyze_CO2.html: HTML export of above notebook.

  • make_df.ipynb: batch converts csv & xls files into dataframes, cleans them and converts to long format. It then merges them, then does partial-string matching to ensure all countries have values for the region & sub-region columns. Outputs final_df.csv.

  • make_df.html: HTML export of above notebook.

  • /data:

    • /merge_regions: contains jupyter notebook & .csv files. The notebook documents the merging of regions data with the Gapminder CO2 dataset. Outputs countries_with_regions.csv, which is used by make_df.ipynb.
    • /originals: contains original .csv/.xls files downloaded from gapminder. Input for make_df.ipynb.
    • final_df.csv: output of make_df.ipynb

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.