Try setting emailconditions like so:

emailconditions = [
dfFinal['EmailC'].notna(),
dfFinal['EmailC'].isna() & dfFinal['EmailB'].notna(),
dfFinal['EmailC'].isna() & dfFinal['EmailB'].isna()]

Key point is to use notna() instead of is not None and isna() instead of is None.

Answer from user17242583 on Stack Overflow
🌐
NumPy
numpy.org › doc › stable › reference › generated › numpy.select.html
numpy.select — NumPy v2.5 Manual
Beginning with an array of integers ... >>> np.select(condlist, choicelist, 42) array([ 0, -1, -2, 42, 16, 25]) When multiple conditions are satisfied, the first one encountered in condlist is used....
🌐
NumPy
numpy.org › devdocs › reference › generated › numpy.select.html
numpy.select — NumPy v2.6.dev0 Manual
Beginning with an array of integers ... >>> np.select(condlist, choicelist, 42) array([ 0, -1, -2, 42, 16, 25]) When multiple conditions are satisfied, the first one encountered in condlist is used....
🌐
GitHub
github.com › pola-rs › polars › issues › 5823
Multiple Condition Mapping like `numpy.select` · Issue #5823 · pola-rs/polars
December 15, 2022 - In the pandas/numpy world this is done with the select function where you specify a list of conditions and a list of values to return for each condition. In polars there is a when, then, otherwise chain which is really great and ergonomic for ...
Author: pola-rs
🌐
w3resource
w3resource.com › python-exercises › pandas_numpy › pandas_numpy-exercise-3.php
Filter DataFrame rows with multiple conditions in Pandas
Selecting Rows Based on Multiple Conditions: selected_rows = df[(df['Age'] > 25) & (df['Salary'] > 50000)] Uses boolean indexing to select rows where both conditions are true: age is greater than 25 and salary is greater than 50000.
🌐
Stack Overflow
stackoverflow.com › questions › 67101743 › numpy-select-question-multiple-conditions
numpy select question multiple conditions - Stack Overflow
conds = [(df['sc1']=='UP_MJB'),(df['sc1']=='UP_MSCI')] actions = [df['st1'],df['st2']] df['new_col'] = np.select(conds,actions,default=df['sc1']) default parameter is used if none of the case is satisfied. In this example, it'll retain the value of col 'sc1'. Refer https://numpy.org/doc/stable/reference/generated/numpy.select.html for more info.
🌐
Uto
eltetn.uto.edu.bo › r8hp › numpy-select-multiple-conditions-dataframe.html
Uto
Numpy select multiple conditions dataframe. We can perform high performance operations on the NumPy . Numpy is most suitable for performing basic numerical computations such as mean, median, range, etc. I’m using a pandas DataFrame in which one column contains numpy arrays.
Find elsewhere
🌐
NumPy
numpy.org › doc › 2.1 › reference › generated › numpy.select.html
numpy.select — NumPy v2.1 Manual
Beginning with an array of integers ... x**2] >>> np.select(condlist, choicelist, 42) array([ 0, 1, 2, 42, 16, 25]) When multiple conditions are satisfied, the first one encountered in condlist is used....
🌐
Spark By {Examples}
sparkbyexamples.com › home › python › numpy where() multiple conditions
NumPy where() Multiple Conditions - Spark By {Examples}
March 27, 2024 - Let’s pass the multiple conditions with the help of the & operator to the where() function and get the selected elements of the given NumPy array.
🌐
Medium
medium.com › @heyamit10 › implementing-pandas-np-select-f22ddd1706f6
Implementing pandas np select. The biggest lie in data science? That… | by Hey Amit | Medium
April 12, 2025 - ... In simple terms, pandas np select accepts several conditions and corresponding choices. Depending on the conditions met, it selects the relevant choices to return in a new array.
🌐
Position Is Everything
positioniseverything.net › home › numpy where multiple conditions: a complete beginner’s guide
Numpy Where Multiple Conditions: A Complete Beginner’s Guide - Position Is Everything
December 29, 2025 - You can define multiple conditions within the NumPy.where() and wrap each condition in a pair of parenthesis, then use the | operator to separate them. ... Suppose you have an array that contains a number of values.
🌐
Medium
satnamsingh99.medium.com › np-select-vs-np-where-how-to-choose-the-right-function-for-your-numpy-arrays-a0093a96b1d9
np.select vs. np.where: How to Choose the Right Function for Your NumPy Arrays | by Satnam Singh | Medium
February 20, 2023 - The np.select function is another function in NumPy that is used to select elements from an array based on conditions. However, unlike np.where, the function can evaluate multiple conditions and return values based on the conditions that are met.
🌐
Stack Overflow
stackoverflow.com › questions › 71807860 › numpy-where-with-multiple-conditions-linked-to-dataframe
python - numpy where with multiple conditions linked to dataframe - Stack Overflow
I'm using numpy where with multiple conditions to assign a category based on a text string a transaction description. ... `import numpy as np conditions = [ df2['description'].str.contains('AEGON', na=False), df2['description'].str.contains('IB/PVV', na=False), df2['description'].str.contains('Picnic', na=False), df2['description'].str.contains('Jumbo', na=False), ] values = [ 'Hypotheek', 'Hypotheek', 'Boodschappen', 'Boodschappen'] df2['Classificatie'] = np.select(conditions, values, default='unknown')
🌐
NumPy
numpy.org › doc › 2.3 › reference › generated › numpy.select.html
numpy.select — NumPy v2.3 Manual
Beginning with an array of integers ... >>> np.select(condlist, choicelist, 42) array([ 0, -1, -2, 42, 16, 25]) When multiple conditions are satisfied, the first one encountered in condlist is used....
🌐
Stack Overflow
stackoverflow.com › questions › 71788227 › changing-values-in-a-dataframe-based-on-multiple-conditions-using-np-select
python - Changing values in a dataframe based on multiple conditions, using np.select - Stack Overflow
new_df = pd.DataFrame( np.select([df.le(-0.5), df.gt(-.5) & df.le(0.5), df.gt(0.5)], [-1, 0, 1]), index=df.index, columns=df.columns ) ... My code gave me the following error and I'm not sure what's wrong and how to fix it KeyError: <function dispatch_to_series..column_op at 0x7f64a469d158> ... No it doesn't. I get the same error without constructing a DataFrame
🌐
NumPy
numpy.org › doc › stable › reference › generated › numpy.select.html
numpy.select — NumPy v2.4 Manual
Beginning with an array of integers ... >>> np.select(condlist, choicelist, 42) array([ 0, -1, -2, 42, 16, 25]) When multiple conditions are satisfied, the first one encountered in condlist is used....