{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Compare" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Arche allows you to compare two data sets. All you have to do is call the `Arche` with a `source` (that is the data source to validate) and a `target` (a data source to compare with)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from arche import *\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "url = \"https://raw.githubusercontent.com/scrapinghub/arche/master/docs/source/nbs/data\"" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "a = Arche(source=pd.read_csv(f\"{url}/items_products_8.csv\"), target=pd.read_csv(f\"{url}/items_products_7.csv\"),\n", " schema=f\"{url}/products.json\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "a.report_all()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.2" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 4 }