Use pandas dataframe’s inbuilt filter to delete rows based on column value

# Imports 
import pandas as pd

# Let's create a pandas dataframe
df = pd.DataFrame({"Name": ['Joyce', 'Joy', 'Ram', 'Maria'], 
                   "Age": [19, 18, 20, 19]}, columns = ['Name', 'Age'])

print("Created dataframe: \n{}".format(df))
Created dataframe: 
    Name  Age
0  Joyce   19
1    Joy   18
2    Ram   20
3  Maria   19
# Let's delete rows with age 19
df = df[df.Age != 19]

print("Modified dataframe: \n{}".format(df))
Modified dataframe: 
  Name  Age
1  Joy   18
2  Ram   20