1# importing pandas module
2import pandas as pd
3
4# making data frame from csv file
5data = pd.read_csv("nba.csv")
6
7# making new data frame with dropped NA values
8new_data = data.dropna(axis = 0, how ='any')
9
10
11
1>>> df.dropna(inplace=True)
2>>> df
3 name toy born
41 Batman Batmobile 1940-04-25
5
1>>> df.dropna(subset=['name', 'born'])
2 name toy born
31 Batman Batmobile 1940-04-25
4