convert full row to nan if one value nan pandas code example
Example: pandas where retuning NaN
# Try using a loc instead of a where:
df_sub = df.loc[df.yourcolumn == 'yourvalue']
# Try using a loc instead of a where:
df_sub = df.loc[df.yourcolumn == 'yourvalue']