SFOE / OGD_qualitychecks

Automated pipeline to check OGD data quality using Frictionless
0 stars 0 forks source link

Step 4: Test the data #5

Open AFoletti opened 1 year ago

AFoletti commented 1 year ago

Goal: using the official frictionless github action (look around in the frictionless documentation or take my repo as example) use the datapackage to test the data in the staging area

aresssera commented 1 year ago

There is an option I found, with which I can test the data using python instead of yaml. Need to check if it properly works and what is needed from the report message.

# first install the library
# ! pip install frictionless

import frictionless
report = frictionless.validate(data_json)
print(report.valid)