Detail: ClinicResult: Exporter
Overview: ClinicResult: Exporter
- ClinicResult.to_str()[source]
Return error messages as a formatted string with line breaks and indentation.
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), (False, True, True, False), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 False 1517-01-01 1 2 True 1517-04-01 2 8 True 1517-12-31 3 3 False 1517-06-30 <int64> <int64> <bool> <datetime64[D]> >>> tc = sf.TypeClinic((f, True)) >>> cr = tc(tuple[str, int]) >>> cr.to_str() In tuple[str, int] └── Expected str, provided Frame invalid In tuple[str, int] └── Expected int, provided bool invalid
ClinicResult: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display