May-31-2020, 02:43 AM
Hi,
Probably something stupid but I can't spot it.
Probably something stupid but I can't spot it.
1 2 3 4 5 6 |
droplist = [ 'City' , 'State' , 'Zip' , 'Property County' , 'Property State' ] #This works df.dropna(subset = [ 'City' , 'State' , 'Zip' , 'Property County' , 'Property State' ], how = 'any' ,axis = 0 ) #This doesn't ? df.dropna(subset = [droplist], how = 'any' ,axis = 0 ) #KeyError: ['City', 'State', 'Zip', 'Property County', 'Property State'] |