text_plain_output_1.png
import pandas as pd

stock_data = pd.read_csv('../input/ibovespa-index/ibovespa_indexq.csv')

stock_data.isna().mean()

round(stock_data.isna().mean().sum(), 2)

stock_data.isna().sum().sum()

stock_data.isnull().sum()

perc = 1
min_count = int((100 - perc) / 100 * stock_data.shape[0] + 1)
stock_data = stock_data.dropna(axis=1, thresh=min_count)

stock_data.isna().mean().sum()