Drop rows containing NaN in a #Python #Pandas data frame, but only in specific columns, with "subset": df.dropna() # drops rows containing NaN df.dropna(subset='x') # drops rows where column x is NaN df.dropna(subset=['x', 'y']) # drops rows where x or y is NaN
0 reposts3 likes