xxxxxxxxxx
df = df.drop(df[(df.score < 50) & (df.score > 20)].index)
xxxxxxxxxx
a_dataframe.drop(a_dataframe[a_dataframe.B > 3].index, inplace=True)
xxxxxxxxxx
# Filter all rows for which the player's
# age is greater than or equal to 25
df_filtered = df[df['Age'] >= 25]
# Print the new dataframe
print(df_filtered.head(15)
# Print the shape of the dataframe
print(df_filtered.shape)