Skip to content

Commit

Permalink
fix(api): avoid casting to bool for table.info() nullable column
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 18, 2023
1 parent f1841f9 commit 3b3bd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/expr/types/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 3b3bd7b

Please sign in to comment.