substituir NaN with 0 pandas python 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']