📅  最后修改于: 2022-03-11 14:55:20.841000             🧑  作者: Mango
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())