visions.functional.type_inference_report_frame
- visions.functional.type_inference_report_frame(df, typeset)[source]
Return formatted report of the output of compare_detect_inference_frame.
- Parameters
df (
DataFrame
) – the DataFrame to detect types ontypeset (
VisionsTypeset
) – the Typeset that provides the type context
- Return type
str
- Returns
Text-based comparative type inference report
Examples
>>> import pandas as pd >>> from visions.functional import type_inference_report_frame >>> from visions.typesets import StandardSet >>> >>> typeset = StandardSet() >>> df = pd.read_csv('dataset.csv') >>> >>> report = type_inference_report_frame(df, typeset) >>> print(report)