8 results · AI-generated index
N
numpy.org
official

NumPy Where Function

The numpy.where function is used to create a new array based on conditions. It can be used as an alternative to if-else statements for array assignment.

G
geeksforgeeks.org
article

If-Else Statement in NumPy Array

This article explains how to use if-else statements in NumPy arrays. It provides examples of using the numpy.where function and boolean indexing.

S
stackoverflow.com
article

Conditional Array Assignment in NumPy

This question on Stack Overflow discusses how to assign values to a NumPy array based on conditions. The answers provide examples of using if-else statements and the numpy.where function.

D
datacamp.com
tool

NumPy Tutorial: Conditional Statements

This tutorial on DataCamp covers conditional statements in NumPy, including if-else statements and the numpy.where function. It provides interactive exercises and examples.

Y
youtube.com
video

Using If-Else Statements with NumPy Arrays

This YouTube video explains how to use if-else statements with NumPy arrays. It provides examples of using the numpy.where function and boolean indexing.

T
towardsdatascience.com
article

NumPy Array Assignment with If-Else Statements

This article on Towards Data Science discusses how to assign values to a NumPy array based on conditions. It provides examples of using if-else statements and the numpy.where function.

R
researchgate.net
research

Conditional Array Operations in NumPy

This research paper on ResearchGate discusses conditional array operations in NumPy, including if-else statements and the numpy.where function.

N
numpy.io
official

NumPy Documentation: numpy.where

The official NumPy documentation for the numpy.where function. It explains how to use the function to create a new array based on conditions.