This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import pandas as pd | |
import pandera as pa | |
from pandera import Column, DataFrameSchema | |
from pandera.engines.pandas_engine import PydanticModel | |
from pydantic import BaseModel, Field, ValidationError | |
# Generate a synthetic DataFrame |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libjson-xs-perl | |
echo "*.json diff=json" >> ~/.gitattributes | |
git config --global core.attributesfile ~/.gitattributes | |
git config --global diff.json.textconv "json_xs -e \"print JSON::XS->new->utf8->pretty->canonical->encode(\\\$_)\" -t none < \"\$1\"" |