{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pandas as pd\n\ndf = pd.read_csv(\"../input/siim-covid19-detection/train_image_level.csv\")\ndf","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2021-07-07T04:47:42.652918Z","iopub.execute_input":"2021-07-07T04:47:42.653312Z","iopub.status.idle":"2021-07-07T04:47:42.735195Z","shell.execute_reply.started":"2021-07-07T04:47:42.653234Z","shell.execute_reply":"2021-07-07T04:47:42.734314Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df['none'] = 0\ndf","metadata":{"execution":{"iopub.status.busy":"2021-07-07T04:47:42.736996Z","iopub.execute_input":"2021-07-07T04:47:42.737295Z","iopub.status.idle":"2021-07-07T04:47:42.753686Z","shell.execute_reply.started":"2021-07-07T04:47:42.737266Z","shell.execute_reply":"2021-07-07T04:47:42.752652Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for i in range(len(df)):\n    if df.loc[i,'label'].split()[0] == 'none':\n        df.loc[i,'none'] = 1\ndf","metadata":{"execution":{"iopub.status.busy":"2021-07-07T04:48:57.204665Z","iopub.execute_input":"2021-07-07T04:48:57.205035Z","iopub.status.idle":"2021-07-07T04:48:57.872429Z","shell.execute_reply.started":"2021-07-07T04:48:57.205007Z","shell.execute_reply":"2021-07-07T04:48:57.871291Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.to_csv(\"train.csv\", index=False)","metadata":{"execution":{"iopub.status.busy":"2021-07-07T04:49:22.724946Z","iopub.execute_input":"2021-07-07T04:49:22.725299Z","iopub.status.idle":"2021-07-07T04:49:22.816377Z","shell.execute_reply.started":"2021-07-07T04:49:22.725271Z","shell.execute_reply":"2021-07-07T04:49:22.815366Z"},"trusted":true},"execution_count":null,"outputs":[]}]}