---
title: "Discussion on \"How to create a column that satisfies if-else condition in Numpy\" | Hashnode"
description: "Discussion on \"How to create a column that satisfies if-else condition in Numpy\". Sometimes in our daily task, we may need to turn a particular numeric column in our DataFrame into binary.\n Thankfully, we can do that using an if-else condition statement; but it gets a bit complicated if we try to do it that way. Instead, we'd lear..."
url: "https://hashnode.com/posts/how-to-create-a-column-that-satisfies-if-else-condition-in-numpy/633192ddfef0c33425207def"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create a column that satisfies if-else condition in Numpy](https://idyvalour.hashnode.dev/how-to-create-a-column-that-satisfies-if-else-condition-in-numpy?utm_source=hashnode&utm_medium=feed)

Sometimes in our daily task, we may need to turn a particular numeric column in our DataFrame into binary. Thankfully, we can do that using an if-else condition statement; but it gets a bit complicated if we try to do it that way. Instead, we'd lear...

Sep 26, 2022 · 2 min read · idyvalour.hashnode.dev  
Read the article

-   [#beginners](https://hashnode.com/tag/beginners)
-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)
-   [#add-column](https://hashnode.com/tag/add-column)
-   [#house-value](https://hashnode.com/tag/house-value)

## Written by

[Idongesit Inyang](https://hashnode.com/@Idyvalour)

@Idyvalour

  
[View profile](https://hashnode.com/@Idyvalour)

Data Scientist

My name is Idongesit Inyang, I have a background in Civil Engineering at the University of Uyo, Nigeria. I have been in the Artificial Intelligence space for over three years and specialize in analyzing data and building data solutions to solve business problems. I’m currently tutoring and mentoring folks who are interested in Data Analysis using Python programming language.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
