dropping nan values in code example
Example 1: how to delete nan values in python
x = x[~numpy.isnan(x)]
Example 2: dropping nan in pandas dataframe
df.dropna(subset=['name', 'born'])
x = x[~numpy.isnan(x)]
df.dropna(subset=['name', 'born'])