Giter Site home page Giter Site logo

camschilling / evalcdcdatagovjson Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.99 MB

Project to evaluate data.cdc.gov metadata

Python 99.65% PowerShell 0.10% Batchfile 0.03% Perl 0.01% R 0.12% Go 0.01% Rust 0.01% Lua 0.01% Ruby 0.01% Shell 0.07% Nushell 0.03%

evalcdcdatagovjson's Introduction

Evaluating data.cdc.gov

This modules aims to capture and evaluate metrics pertaining to whether the data meets certain data principles.

This module produces 2 analysis-ready .csv files for evaluating certain metrics and produces an optional summary file (also a .csv).

The metadata_detail.csv file is metadata regarding datasets on data.cdc.gov. This metadata has been sourced from https://data.cdc.gov/data.json alongside an indicator regarding adherence to federal metadata standards sourced from https://catalog.data.gov/dcat-us/validator. Columns produced are: [id, url, theme, publisher_type, publisher_name, contact_email, access_level, type, distribution_options, record_index, metadata_is_valid, distribution_is_open_machine_readable, theme_is_valid, methodology_is_present, is_fair_proxy ]

The validator_detail.csv file is detailed data obtained from an evaluation (conducted by https://catalog.data.gov/dcat-us/validator) of federal metadata standards of https://data.cdc.gov/data.json. This data has been joined with the metadata itself such that additional record information is readily available. Columns produced are [header, notes, record_type, record_index, record_problem_category, id, url, theme, publisher_name, contact_email]

The summary.csv file is a summary of relevant attributes from the metadetail.csv file and is an optional output file.

Disclaimer: All metrics produced are to be considered proxies and should be refined for use as working operational definitions.

Execution

After cloning this respository, executing this module should look like running a python file such as:

from EvalCdcDataGovJson.src.evalcdcdatagovjson.execute import execute
execute(path="<path to write data to>", include_summary = True)

The module assumes the user has the required packages installed on their machine and that a selenium web driver for Microsoft Edge is installed. The include_summary parameter is optional and default is True.

Contribution

The virtual environment for contribution is included in the repo at eval_cdc_data_gov_json. Contributors should use pre-commit install prior to contributing. Contributors should test module using poetry run pytest.

Repository adapted from https://laszlo.substack.com/p/cq4ds-python-project-from-scratch

evalcdcdatagovjson's People

Contributors

camschilling avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.