text_html_output_1.png
import pandas as pd

stroke_df = pd.read_csv('../input/stroke-prediction-dataset/healthcare-dataset-stroke-data.csv')

stroke_df.shape

na_count = []
for i in range(0, len(stroke_df.columns)):
    na_count.append(stroke_df[stroke_df.columns[i]].isna().sum())
na_df = pd.DataFrame(zip(stroke_df.columns, na_count))
na_df.columns = ['Variable', 'Counts (NA)']
na_df

stroke_df.loc[stroke_df['bmi'].isna()].describe()