How e-commerce-depi-team/e-commerce works
This repository prepares Olist e-commerce data and enriches it with Brazilian economic indicators. The principal workflow is to fetch World Bank data, reshape it into CSV, and independently prepare Olist raw files into staging tables with a validation report; exploration and investigation scripts support data profiling. The README also documents an Airflow, dbt, and PostgreSQL warehouse platform. Its wiring is documented, but the tree contains no DAG definitions or dbt models, so those links reflect README-level capabilities rather than inspected implementations.
Main entry points: raw Olist raw files · prepare_olist_staging.py Olist staging prep · dags Airflow services · extract_world_bank.py Economic extraction
Components 24
Data ingestion
- Olist raw files
data/raw - Economic extraction
src/extract_world_bank.py - Economic JSON
data/raw/external - Economic transform
src/transform_world_bank.py
Exploration and quality
- Olist staging prep
src/prepare_olist_staging.py - Order profiling
src/explore_orders.py - Item profiling
src/explore_order_items.py - Payment profiling
src/explore_order_payments.py - Review profiling
src/explore_order_reviews.py - Product profiling
src/explore_products.py - Seller profiling
src/explore_sellers.py - Geolocation profiling
src/explore_geolocation.py - Translation profiling
src/explore_category_translation.py - Geolocation investigation
src/investigate_geolocation.py - Review investigation
src/investigate_order_reviews.py - Product investigation
src/investigate_products.py
Warehouse platform
- Airflow services
dags - dbt project
dbt_project - PostgreSQL warehouse
docker/postgres/init/01_create_schemas.sql
Data products
- Staging CSVs
- Validation report
- Economic CSV
Other components
- Pipeline operator
- World Bank API
Connections 36
- Pipeline operator → Economic extraction: runs
README.md - World Bank API → Economic extraction: provides indicators
README.md - Economic extraction → Economic JSON: saves responses
README.md - Pipeline operator → Economic transform: runs
README.md - Economic JSON → Economic transform: reads JSON
src/transform_world_bank.py - Economic transform → Economic CSV: writes CSV
src/transform_world_bank.py - Pipeline operator → Olist staging prep: runs
README.md - Olist raw files → Olist staging prep: loads files
src/prepare_olist_staging.py - Olist staging prep → Staging CSVs: writes tables
src/prepare_olist_staging.py - Olist staging prep → Validation report: writes report
src/prepare_olist_staging.py - Pipeline operator → Order profiling: runs
src/explore_orders.py - Olist raw files → Order profiling: reads orders
src/explore_orders.py - Pipeline operator → Item profiling: runs
src/explore_order_items.py - Olist raw files → Item profiling: reads items
src/explore_order_items.py - Pipeline operator → Payment profiling: runs
README.md - Olist raw files → Payment profiling: profiles payments
- Pipeline operator → Review profiling: runs
src/explore_order_reviews.py - Olist raw files → Review profiling: reads reviews
src/explore_order_reviews.py - Pipeline operator → Product profiling: runs
src/explore_products.py - Olist raw files → Product profiling: reads products
src/explore_products.py - Pipeline operator → Seller profiling: runs
README.md - Olist raw files → Seller profiling: profiles sellers
- Pipeline operator → Geolocation profiling: runs
src/explore_geolocation.py - Olist raw files → Geolocation profiling: reads locations
src/explore_geolocation.py - Pipeline operator → Translation profiling: runs
src/explore_category_translation.py - Olist raw files → Translation profiling: reads categories
src/explore_category_translation.py - Pipeline operator → Geolocation investigation: runs
src/investigate_geolocation.py - Olist raw files → Geolocation investigation: reads locations
src/investigate_geolocation.py - Pipeline operator → Review investigation: runs
src/investigate_order_reviews.py - Olist raw files → Review investigation: reads reviews
src/investigate_order_reviews.py - Pipeline operator → Product investigation: runs
src/investigate_products.py - Olist raw files → Product investigation: reads products
src/investigate_products.py - Pipeline operator → Airflow services: uses platform
README.md - Airflow services → PostgreSQL warehouse: connects to
README.md - Airflow services → dbt project: runs dbt
README.md - dbt project → PostgreSQL warehouse: reads and writes
README.md