similar function like lazy function in pandera code example
Example: similar function like lazy function in pandera
try:
schema.validate(df, lazy=True)
except pa.errors.SchemaErrors as err:
print("Schema errors and failure cases:")
print(err.failure_cases.head())
print("\nDataFrame object that failed validation:")
print(err.data.head())