1import pandas as pd
2
3df = pd.DataFrame({'values_1': ['700','ABC','500','XYZ','1200'],
4 'values_2': ['DDD','150','350','400','5000']
5 })
6
7df = df.apply (pd.to_numeric, errors='coerce')
8df = df.dropna()
9df = df.reset_index(drop=True)
10
11print (df)
12
1#return a subset of the dataframe where the column name value != NaN
2df.loc[df['column name'].isnull() == False]