# Why can't I use Logistic Regression with a target variable with 0/1 values?

**URL:** <https://community.exploratory.io/t/why-cant-i-use-logistic-regression-with-a-target-variable-with-0-1-values/3897>\
**Category:** HowTo\
**Created:** [May 12, 2025, 4:57pm UTC](https://community.exploratory.io/t/why-cant-i-use-logistic-regression-with-a-target-variable-with-0-1-values/3897 "2025-05-12T16:57:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kan\_Nishida](https://community.exploratory.io/user_avatar/community.exploratory.io/kan_nishida/32/14_2.png) [@Kan\_Nishida](https://community.exploratory.io/u/Kan_Nishida)\
**Post date:** [May 12, 2025, 4:57pm UTC](https://community.exploratory.io/t/why-cant-i-use-logistic-regression-with-a-target-variable-with-0-1-values/3897/1 "2025-05-12T16:57:23Z")

</div>

If your target column is Numeric data type with 0 or 1 value, then you want to convert to Logical data type first. You can do so from the column header menu.

 ![image](https://community.exploratory.io/uploads/default/original/2X/9/942e5e6530e371f5cbd0bfe4b38e541fdab064b6.jpeg)

Once you converted the data type to Logical data type, then you can select it as a target variable for Logistic Regression.
