In Python, missing values can be dropped using the dropna() function. dropna takes one argument: how. how can take two values: all or any. any drops certain rows that contain NAN or missing values, while all drops all the rows contains NAN or missing values:
# Drop missing value rows using dropna() function
# Read the data
data=pd.read_csv('employee.csv')
data=data.dropna()
data
This results in the following output:
This summarizes the dataset as a dataframe.