This project was created as part of the Python Project for Data Engineering course on Coursera. The original files and project instructions were provided by the IBM Skills Network as part of the Python Project for Data Engineering course on Coursera.
- Extracts bank data (e.g. name, market cap in USD) from the given web source.
- Cleans and transforms the data: parses numeric values, handles formatting.
- Stores the resulting dataset to:
- a CSV file (
Largest_banks_data.csv) - a SQLite database (
Banks.db)
- a CSV file (
A multi-national firm has hired you as a data engineer. Your job is to access and process data as per requirements.
Your boss asked you to compile the list of the top 10 largest banks in the world ranked by market capitalization in billion USD. Further, you need to transform the data and store it in USD, GBP, EUR, and INR per the exchange rate information made available to you as a CSV file. You should save the processed information table locally in a CSV format and as a database table. Managers from different countries will query the database table to extract the list and note the market capitalization value in their own currency.
- Write a function to extract the tabular information from the given URL under the heading By Market Capitalization, and save it to a data frame.
- Write a function to transform the data frame by adding columns for Market Capitalization in GBP, EUR, and INR, rounded to 2 decimal places, based on the exchange rate information shared as a CSV file.
- Write a function to load the transformed data frame to an output CSV file.
- Write a function to load the transformed data frame to an SQL database server as a table. 5.Write a function to run queries on the database table.
- Run the following queries on the database table: a. Extract the information for the London office, that is Name and MC_GBP_Billion b. Extract the information for the Berlin office, that is Name and MC_EUR_Billion c. Extract the information for New Delhi office, that is Name and MC_INR_Billion
- Write a function to log the progress of the code.
- While executing the data initialization commands and function calls, maintain appropriate log entries.
Install the required libraries using the following syntax:
pip install <library-names>
Run the script using:
python bank_project_etl.py
- This project was created as part of the Python for Data Engineering course on Coursera, provided by the IBM Skills Network.