text_html_output_1.png
import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

asus = pd.DataFrame(pd.read_csv('/kaggle/input/advertising-sales-dataset/Advertising Budget and Sales.csv'))

asus.shape

asus.drop(columns=['Unnamed: 0'])

b = asus['Newspaper Ad Budget ($)'].quantile(0.98)
asus_new = asus[asus['Newspaper Ad Budget ($)'] < b]

print('number of rows we lost', asus.shape[0] - asus_new.shape[0])