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

raw_data = pd.read_csv('../input/cumulative.csv')

koi_pond = ['koi_pdisposition', 'koi_tce_plnt_num', 'koi_tce_delivname', 'kepler_name']
cols = raw_data.columns
for c in cols:
    if 'err' in c:
        koi_pond.append(c)
data = raw_data.drop(koi_pond, axis=1)

data = data.dropna()
print(f'The dataset had {raw_data.shape[0]} rows. It now has {data.shape[0]} rows.\n({raw_data.shape[0] - data.shape[0]} rows were dropped, leaving you with {round(data.shape[0] / raw_data.shape[0] * 100, 2)}% of the original number of entries.)')