I been using:
df = df.convert_objects(convert_numeric=True).dropna()
but since it's being deprecated I need to replace it with to_numeric
I've tried
df = pd.to_numeric
df = df.dropna()
Sample data:
Name  Race Fav Age  Weight Height Style Cut
John   D    K  23    120   23.5    DD   RET
Rose   Z    U  33    110   47.9    KZ   DEZ
James  Z    U  FF    UK    NOT     Z    R
Would like to convert to drop the rows that are non numeric
Output:
Name  Race Fav Age  Weight Height Style Cut
John   D    K  23    120   23.5    DD   RET
Rose   Z    U  33    110   47.9    KZ   DEZ
 
     
     
    