79156566

Date: 2024-11-04 18:25:28
Score: 2
Natty:
Report link

Use is_bool_dtype :

from pandas.api.types import is_bool_dtype
...
is_bool_dtype(df["a"])

Reference : https://pandas.pydata.org/docs/reference/api/pandas.api.types.is_bool_dtype.html

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: c_drik