{"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 warnings\nwarnings.simplefilter('ignore')\n\nimport pandas as pd\n\npd.set_option('display.max_columns', None)","metadata":{"execution":{"iopub.status.busy":"2023-08-28T07:12:46.176338Z","iopub.execute_input":"2023-08-28T07:12:46.176695Z","iopub.status.idle":"2023-08-28T07:12:46.208102Z","shell.execute_reply.started":"2023-08-28T07:12:46.176668Z","shell.execute_reply":"2023-08-28T07:12:46.207065Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = pd.read_csv('/kaggle/input/rsna-2023-abdominal-trauma-detection/train.csv')","metadata":{"execution":{"iopub.status.busy":"2023-08-28T07:12:46.209661Z","iopub.execute_input":"2023-08-28T07:12:46.210109Z","iopub.status.idle":"2023-08-28T07:12:46.231528Z","shell.execute_reply.started":"2023-08-28T07:12:46.210084Z","shell.execute_reply":"2023-08-28T07:12:46.230841Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"corr = train.corr()\ncorr.style.background_gradient(cmap='PiYG')","metadata":{"execution":{"iopub.status.busy":"2023-08-28T07:12:46.232798Z","iopub.execute_input":"2023-08-28T07:12:46.233664Z","iopub.status.idle":"2023-08-28T07:12:46.357158Z","shell.execute_reply.started":"2023-08-28T07:12:46.23363Z","shell.execute_reply":"2023-08-28T07:12:46.356252Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"features = [col for col in train.columns if col != 'patient_id']","metadata":{"execution":{"iopub.status.busy":"2023-08-28T07:12:46.35976Z","iopub.execute_input":"2023-08-28T07:12:46.360427Z","iopub.status.idle":"2023-08-28T07:12:46.366205Z","shell.execute_reply.started":"2023-08-28T07:12:46.360392Z","shell.execute_reply":"2023-08-28T07:12:46.364297Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# any_injury, liver_low, extravasation_injury, spleen_low,spleen_high, kidney_low, bowel_injury","metadata":{"execution":{"iopub.status.busy":"2023-08-28T07:12:46.367654Z","iopub.execute_input":"2023-08-28T07:12:46.368044Z","iopub.status.idle":"2023-08-28T07:12:46.380044Z","shell.execute_reply.started":"2023-08-28T07:12:46.368016Z","shell.execute_reply":"2023-08-28T07:12:46.378716Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission = pd.read_csv('/kaggle/input/rsna-2023-abdominal-trauma-detection/sample_submission.csv')\nsubmission[features] = train[features].mean().tolist()\n\nfor feature in features:\n    \n    if feature in ['any_injury', 'liver_low', 'extravasation_injury', 'spleen_high']:\n        submission[feature] *= 20\n\nsubmission.to_csv('submission.csv', index=False)","metadata":{"execution":{"iopub.status.busy":"2023-08-28T07:12:46.381624Z","iopub.execute_input":"2023-08-28T07:12:46.381976Z","iopub.status.idle":"2023-08-28T07:12:46.415335Z","shell.execute_reply.started":"2023-08-28T07:12:46.381941Z","shell.execute_reply":"2023-08-28T07:12:46.414226Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pd.DataFrame(submission)","metadata":{"execution":{"iopub.status.busy":"2023-08-28T07:12:46.416894Z","iopub.execute_input":"2023-08-28T07:12:46.417464Z","iopub.status.idle":"2023-08-28T07:12:46.438508Z","shell.execute_reply.started":"2023-08-28T07:12:46.417435Z","shell.execute_reply":"2023-08-28T07:12:46.437604Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}