#return a subset of the dataframe where the column name value != NaN df.loc[df['column name'].isnull() == False]