Data_Engineering Challenge
This is a task to retrieve publicly available data and perform analysis on that data using SQL. The data were obtained through different means and format. The first dataset obtained from World Bank API is World Bank data which was extracted in a json format. The second dataset is a GDP data download from the source as .csv
Therefore, in this GitHub repo are three .py files or modules to handle the extraction, processing and staging the data in a postgresql database. A .sql file which contains all analysis done on data.
Getting Started
- data_grab.py - This module extracts the World Bank data, it cleans and saves the data in a both json and csv file for reference.
- process_csv.py - This module reads the csv files and process (JOINS & converting to dataframe) before it is staged.
- stage_data.py - Module handles the staging of data. It creates the tables and saves data to the database.
- To begin;
- Make sure all csv files are downloaded and located in the same the directory the .py files are located.
- Run stage_data.py' run the script directly.
- A prompt to enter database password and host pops up.
- Once the information is passed in, the process begins and the data is extracted and staged.
Metadata
Release files for M-challenge 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| M_challenge-0.0.3.tar.gz | 4.3 kB | Without provenance | Details for M_challenge-0.0.3.tar.gz |
Release files / M_challenge-0.0.3.tar.gz
| Download URL | M_challenge-0.0.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20164f965e1d0177627494f1b1605372f5c51d9b430d0f1bac38854b869814cb
|
|
BLAKE2b-256 checksum How to use checksums |
1e9a3bc13af74ef76360849595e167d35d0cd5925537c0a5ff30095074591af5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
|
Security for M-challenge 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.