From 3b3bd7bd77e9c0b922f90f238901c99703e003c4 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 18 Dec 2023 05:52:41 -0500 Subject: [PATCH] fix(api): avoid casting to bool for `table.info()` `nullable` column --- ibis/expr/types/relations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/expr/types/relations.py b/ibis/expr/types/relations.py index 51f3105a19f6..a41210403eca 100644 --- a/ibis/expr/types/relations.py +++ b/ibis/expr/types/relations.py @@ -2719,7 +2719,7 @@ def info(self) -> Table: ).agg( name=lit(colname), type=lit(str(typ)), - nullable=lit(int(typ.nullable)).cast("bool"), + nullable=lit(typ.nullable), nulls=lambda t: t.isna.sum(), non_nulls=lambda t: (1 - t.isna).sum(), null_frac=lambda t: t.isna.mean(),