项目作者: abk7777

项目描述 :
Geospatial analysis of fuel prices in Brazil
高级语言: Jupyter Notebook
项目地址: git://github.com/abk7777/brazil-fuel-price-analysis.git
创建时间: 2019-09-21T01:42:48Z
项目社区:https://github.com/abk7777/brazil-fuel-price-analysis

开源协议:MIT License

下载


Contributors
Forks
Stargazers
Issues
MIT License
LinkedIn

Survey of fuel prices in Brazil: Geospatial Analysis

This project includes EDA and geospatial analyses in the form of choropleth maps to visualize fuel price data from the Agência Nacional do Petróleo, Gás Natural e Biocombustíveis in Brazil. The dataset was made available through Kaggle and incorporates public geospatial data available through public ftp from the Brazilian government.

— Project Status: [Completed]

Project Objective

The purpose of the project is to perform basic exploratory data analysis and to answer three questions regarding the prices of fuel products in Brazil using geospatial analysis:

  • How did the price change for the different regions of Brazil?
  • Within a region, which states increased their prices the most?
  • Which states are the cheapest (or most expensive) for different types of fuels?

These questions are addressed using choropleth map visualizations in the notebook 0.3-geospatial-analysis.ipynb.

Description

The fuel price data comes from the Agência Nacional do Petróleo, Gás Natural e Biocombustíveis (ANP in Portuguese), which releases weekly price reports of gas/petrol, diesel and other fuels used in transportation across the country. It includes the mean value per liter, number of gas stations analyzed and other information grouped by region and state. The analysis is enriched by joining the price data with geospatial data from the Brazilian government.

choropleth_fuel_comparison_by_state

Technologies

  • Python, Anaconda
  • Pandas, Matplotlib, Seaborn, Geopandas, Jupyter Notebook

Data Sources

Fuel Prices:

Shapefiles:

Getting Started

  1. Clone repo
  2. Run conda env create -f environment.yml to create the environment (requires Anaconda)
  3. Run conda activate brazil_fuel_price_env to activate the environment
  4. Run each notebook:
    • 0.1-import-clean-eda.ipynb
    • 0.2-geospatial-analysis.ipynb
  5. Figures are saved to the figures directory

Authors

License

This project is licensed under the MIT License.