Skip to content

SDK/kedro_ge

Repository files navigation

Gitpod ready-to-code CircleCI

Example:

Data Quality lab

Intro

Este lab esta diseñado para servir como metodo de aprendizaje de Kedro + Great expectations

Contiene 2 datasets

  • Iris data
  • Netflix Tittles

Iniciar Catalogo de GE

Inicializemos el ambiente con

great_expectations init

Deberia ser algo asi

Luego debemos confirmar el tipo de dataset, path y nombre que queremos darle.

Deberia ser algo asi

Confirmemos para hacer el profiling:

================================================================================

Would you like to profile new Expectations for a single data asset within your new Datasource? [Y/n]: y

Would you like to:
    1. choose from a list of data assets in this datasource
    2. enter the path of a data file
: 1

Which data would you like to use?
    1. iris (file)
    2. netflix_titles (file)
    Don't see the name of the data asset in the list above? Just type it
: 1

Name the new Expectation Suite [iris.warning]: 

Great Expectations will choose a couple of columns and generate expectations about them
to demonstrate some examples of assertions you can make about your data.

Great Expectations will store these expectations in a new Expectation Suite 'iris.warning' here:

  file:///workspace/kedro_ge/great_expectations/expectations/iris/warning.json

Would you like to proceed? [Y/n]: 

Generating example Expectation Suite...

Done generating example Expectation Suite

================================================================================

Would you like to build Data Docs? [Y/n]: 

The following Data Docs sites will be built:

 - local_site: file:///workspace/kedro_ge/great_expectations/uncommitted/data_docs/local_site/index.html

Would you like to proceed? [Y/n]: 

Building Data Docs...

Done building Data Docs

Would you like to view your new Expectations in Data Docs? This will open a new browser window. [Y/n]: 

Agregar Datasource a GE

para agregar un nuevo dataset basta que corramos:

great_expectations datasource new

y volveremos a pasar por el menu para agregar un dataset.

Realizar un nuevo profile

great_expetations datasource profile <my_dataset>

Basic commands:

  • great_expectations suite edit
  • great_expectations suite new
  • great_expectations suite list
  • great_expectations suite delete
  • great_expectations docs build
  • great_expectations docs clean
  • great_expectations checkpoint new
  • great_expectations checkpoint list
  • great_expectations checkpoint run
  • great_expectations checkpoint script
  • great_expectations datasource list
  • great_expectations datasource profile
  • great_expectations datasource delete
  • great_expectations validation-operator run
  • great_expectations init

Key ideas

https://docs.greatexpectations.io/en/latest/reference/core_concepts.html#key-ideas

Glosario de Expectations

https://docs.greatexpectations.io/en/latest/reference/glossary_of_expectations.html

Known bugs para este ambiente en GitPod

Existe un Kernel error cuando se edita la Suite desde

great_expectations suite edit <suite_name>

para remediar esto, es mejor abrir una sesion de Kedro con un parametro para abrir el puerto:

kedro jupyter notebook --NotebookApp.allow_origin=\'$(gp url 8888)\'

About

a starter Kedro + Great Expectations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published