FailureInfo.write_parquet#
- FailureInfo.write_parquet( ) None[source]#
Write the failure info to a single parquet file.
Writes the invalid rows along with additional boolean rule columns indicating which validation rules failed. Unlike
invalid(), this includes columns for each rule, whereFalseindicates the rule failed for that row.- Parameters:
file – The file path or writable file-like object to which to write the parquet file. This should be a path to a directory if writing a partitioned dataset. The
mkdirkwarg controls whether the directory is created if needed.kwargs – Additional keyword arguments passed directly to
polars.write_parquet().metadatamay only be provided if it is a dictionary.
Attention
Be aware that this method suffers from the same limitations as
Schema.serialize().