Spaces:
Running
Running
davidgasquez
commited on
Commit
•
22f4652
1
Parent(s):
0fd668c
refactor: 🔄 Rename IPC-related assets and update README
Browse filesStandardized naming by renaming 'raw_spain_ipc' to 'raw_ipc' and 'spain_ipc' to 'ipc' for better clarity. Enhanced README with a title, description, and badges for improved documentation and project visibility.
- README.md +15 -2
- datalia/assets.py +2 -2
- datalia/dbt_project.py +1 -0
- dbt/models/{spain_ipc.sql → ipc.sql} +1 -1
- dbt/models/schema.yml +1 -1
- dbt/models/sources.yml +2 -2
README.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- markdownlint-disable MD033 MD041-->
|
2 |
|
3 |
+
<p align="center">
|
4 |
+
<h1 style="font-size:80px; font-weight: 800;" align="center">D A T A L I A</h1>
|
5 |
+
<p align="center">Otra Pataforma de Datos Abiertos</a> </p>
|
6 |
+
</p>
|
7 |
+
|
8 |
+
<div align="center">
|
9 |
+
<img alt="GitHub" src="https://img.shields.io/github/license/davidgasquez/datalia?style=flat-square">
|
10 |
+
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/davidgasquez/datalia/ci.yml?style=flat-square">
|
11 |
+
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/davidgasquez/datalia?style=flat-square">
|
12 |
+
</div>
|
13 |
+
|
14 |
+
<br>
|
15 |
+
|
16 |
+
Datalia es una plataforma de datos abiertos a nivel de España con el objetivo de unificar y armonizar información proveniente de diferentes fuentes.
|
datalia/assets.py
CHANGED
@@ -13,9 +13,9 @@ def dbt(context: AssetExecutionContext, dbt: DbtCliResource):
|
|
13 |
@asset(
|
14 |
retry_policy=RetryPolicy(max_retries=5),
|
15 |
)
|
16 |
-
def
|
17 |
"""
|
18 |
-
|
19 |
"""
|
20 |
|
21 |
df = pl.read_csv(
|
|
|
13 |
@asset(
|
14 |
retry_policy=RetryPolicy(max_retries=5),
|
15 |
)
|
16 |
+
def raw_ipc() -> pl.DataFrame:
|
17 |
"""
|
18 |
+
Datos de la serie histórica del Índice de Precios de Consumo (IPC) en España en formato CSV.
|
19 |
"""
|
20 |
|
21 |
df = pl.read_csv(
|
datalia/dbt_project.py
CHANGED
@@ -9,4 +9,5 @@ dbt_project = DbtProject(
|
|
9 |
.joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT)
|
10 |
.resolve(),
|
11 |
)
|
|
|
12 |
dbt_project.prepare_if_dev()
|
|
|
9 |
.joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT)
|
10 |
.resolve(),
|
11 |
)
|
12 |
+
|
13 |
dbt_project.prepare_if_dev()
|
dbt/models/{spain_ipc.sql → ipc.sql}
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
with source as (
|
2 |
-
select * from {{ source('public', '
|
3 |
),
|
4 |
|
5 |
renamed as (
|
|
|
1 |
with source as (
|
2 |
+
select * from {{ source('public', 'raw_ipc') }}
|
3 |
),
|
4 |
|
5 |
renamed as (
|
dbt/models/schema.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
version: 2
|
2 |
models:
|
3 |
-
- name:
|
4 |
description: Índice de Precios al Consumo (IPC) en España.
|
5 |
columns: []
|
|
|
1 |
version: 2
|
2 |
models:
|
3 |
+
- name: ipc
|
4 |
description: Índice de Precios al Consumo (IPC) en España.
|
5 |
columns: []
|
dbt/models/sources.yml
CHANGED
@@ -3,7 +3,7 @@ version: 2
|
|
3 |
sources:
|
4 |
- name: public
|
5 |
tables:
|
6 |
-
- name:
|
7 |
meta:
|
8 |
dagster:
|
9 |
-
asset_key: ["
|
|
|
3 |
sources:
|
4 |
- name: public
|
5 |
tables:
|
6 |
+
- name: raw_ipc
|
7 |
meta:
|
8 |
dagster:
|
9 |
+
asset_key: ["raw_ipc"]
|