text_html_output_1.png
import numpy as np #biblioteca utilizada para trabalhar com vetores

import pandas as pd #biblioteca para trabalhar com dataframes (planilhas excel)

customers = pd.read_csv('../input/customer-segmentation-tutorial-in-python/Mall_Customers.csv')

customers.isnull().sum()

customers_null = customers
for col in customers_null.columns:
    customers_null.loc[customers_null.sample(frac=0.1).index, col] = np.nan

customers_null.isnull().sum()

customers_null.dropna()

customers_null.fillna(0)

customers_null.fillna(customers_null.mean())