Giter VIP home page Giter VIP logo

cost-of-living-eda's Introduction

Cost of living EDA

Explore and analyze the cost of living across the globe with this comprehensive EDA (Exploratory Data Analysis) project. This repository contains data-driven insights into the expenses associated with daily life in different cities worldwide. From housing and transportation to groceries and entertainment, delve into the factors influencing the cost of living. Leverage visualizations and statistical analyses to uncover trends, comparisons, and valuable information for anyone considering relocation or interested in global economic trends.

install libraries

pip3 install folium
pip3 install geopandas
pip3 install opencage
  • Using OpenCage to Retrieve Latitude and Longitude
def color_producer(val):
    if val <= df[item].quantile(.25):
        return 'forestgreen'
    elif val <= df[item].quantile(.50):
        return 'goldenrod'
    elif val <= df[item].quantile(.75):
        return 'darkred'
    else:
        return 'black'
  • A Function called "color_producer" takes a numerical value val as its input and assigns a color based on its relationship to the quantiles of a DataFrame column (df[item]). The colors are chosen in a way that reflects different ranges of the data distribution.

Analysis & Visualizations

  • It looks like Switzerland, Iceland, and Norway are the most expensive of places. This can be confirmed by looking at the data below.

  • It's also clear that Europe and North America are some of the most expensive places on Earth.

Image 0 All_prices_normalized_for_each_Country

Visualizition Analysis

Image 1 Price per Square Meter to Buy Apartment Outside of Centre

Image 2 Average Monthly Net Salary (After Tax)

Group the cities by country using the mean of all the columns. This will give a much clearer overview when looking at the map, when trying to detect any trends.

Image 3 Mapping Everything!

Further Analysis

Some further areas I would like to expore in a future notebook would be:

  • Grouping columns by similarity. Which places are more expensive for food vs. accomodation.
  • Outliers. Which places are much cheaper or expensive for particular things, and exploring possible reasons for these.
  • Exploring the correlation between how much things cost and their countries GDP.

cost-of-living-eda's People

Contributors

kianoush-h avatar

Watchers

 avatar  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.