feat: add readme
Browse files
README.md
CHANGED
|
@@ -1,3 +1,52 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# Bixi's OpenData Modelisation
|
| 6 |
+
|
| 7 |
+
Here is a huggingface dataset refined with [AntoineGiraud/dbt_bixi_opendata](https://github.com/AntoineGiraud/dbt_bixi_opendata) dbt-core project<br>
|
| 8 |
+
that loads & transform [bixi OpenData](https://bixi.com/fr/donnees-ouvertes/) thanks to [DuckDB](https://duckdb.org/) 🦆🚀
|
| 9 |
+
|
| 10 |
+
## Viz' exploration ideas
|
| 11 |
+
|
| 12 |
+
I used Power BI to explore the transformed data offloaded to .parquet (~ 4.7 times lighter than .csv)
|
| 13 |
+
|
| 14 |
+
After the pandemic, Montrealers realy went back to bixi 🥳
|
| 15 |
+
|
| 16 |
+

|
| 17 |
+
|
| 18 |
+
## Data sources
|
| 19 |
+
|
| 20 |
+
### Bixi Rentals OpenData ([link](https://bixi.com/fr/donnees-ouvertes/))
|
| 21 |
+
|
| 22 |
+
- 🚲 **Rentals V1** : from 2014 to 2021
|
| 23 |
+
> for station info, join to station
|
| 24 |
+
yearly file with station_code
|
| 25 |
+
- ⛽ **Stations V1** : from 2014 to 2021
|
| 26 |
+
> 1 station code per year
|
| 27 |
+
- 🚲 **Rentals V2** : from 2022 to 2024+
|
| 28 |
+
> start/end station info on each rentals\
|
| 29 |
+
*-> 2.7 times heavier `.csv`* 1.4Gb -> 0.5Gb\
|
| 30 |
+
*-> 2.3 times heavier `.parquet` 250Mb -> 106Mb*
|
| 31 |
+
|
| 32 |
+
### GIS referential
|
| 33 |
+
|
| 34 |
+
- 🧭 **Municipal sectors** : from the OD 2013 survey (cf. [donnees quebec](https://www.donneesquebec.ca/recherche/dataset/artm-secteurs-municipaux-od13/resource/95ab084b-727e-4322-9433-0fed7baa690d))
|
| 35 |
+
|
| 36 |
+
## Schema/DB steps :
|
| 37 |
+
|
| 38 |
+
- **raw** : raw tables loaded as is from .csv
|
| 39 |
+
- **stg** : intermediate tables
|
| 40 |
+
- **dtm** : tables ready for analytics & reporting use
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
### Loading
|
| 45 |
+
|
| 46 |
+
DuckDB realy shines by it's speed & local OLAP capabilities 😎
|
| 47 |
+
|
| 48 |
+
Here is 🚲 v1 rentals (2014 - 2021) load & offload to .parquet
|
| 49 |
+
- `.csv` is **4.5** times heavier than `.parquet`
|
| 50 |
+
- `.json` is **2.7** times heavier than `.csv`
|
| 51 |
+
|
| 52 |
+

|