skip nan values in df 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']