Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas where retuning NaN

# Try using a loc instead of a where:
df_sub = df.loc[df.yourcolumn == 'yourvalue']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #retuning #NaN
ADD COMMENT
Topic
Name
3+9 =