{"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":"markdown","source":"# Abdomnal Trauma HistPlot","metadata":{"papermill":{"duration":0.003482,"end_time":"2022-07-03T15:34:26.115339","exception":false,"start_time":"2022-07-03T15:34:26.111857","status":"completed"},"tags":[]}},{"cell_type":"code","source":"import os\nimport numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nfrom tqdm import tqdm","metadata":{"_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","papermill":{"duration":1.092046,"end_time":"2022-07-03T15:34:27.210052","exception":false,"start_time":"2022-07-03T15:34:26.118006","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2023-08-04T17:30:16.4613Z","iopub.execute_input":"2023-08-04T17:30:16.461761Z","iopub.status.idle":"2023-08-04T17:30:16.46866Z","shell.execute_reply.started":"2023-08-04T17:30:16.461722Z","shell.execute_reply":"2023-08-04T17:30:16.467466Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train=pd.read_csv('/kaggle/input/rsna-2023-abdominal-trauma-detection/train.csv')\ntrain_meta=pd.read_csv('/kaggle/input/rsna-2023-abdominal-trauma-detection/train_series_meta.csv')\ntest_meta=pd.read_csv('/kaggle/input/rsna-2023-abdominal-trauma-detection/test_series_meta.csv')\nlabels=pd.read_csv('/kaggle/input/rsna-2023-abdominal-trauma-detection/image_level_labels.csv')","metadata":{"execution":{"iopub.status.busy":"2023-08-04T17:30:16.470755Z","iopub.execute_input":"2023-08-04T17:30:16.471141Z","iopub.status.idle":"2023-08-04T17:30:16.516066Z","shell.execute_reply.started":"2023-08-04T17:30:16.471077Z","shell.execute_reply":"2023-08-04T17:30:16.514701Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cols=train.columns.tolist()\nprint(len(cols))\n\ncols2=train_meta.columns.tolist()\nprint(len(cols2))\n\ncols3=test_meta.columns.tolist()\nprint(len(cols3))\n\ncols4=labels.columns.tolist()\nprint(len(cols4))","metadata":{"papermill":{"duration":0.012781,"end_time":"2022-07-03T15:34:28.603372","exception":false,"start_time":"2022-07-03T15:34:28.590591","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2023-08-04T17:30:16.518457Z","iopub.execute_input":"2023-08-04T17:30:16.519543Z","iopub.status.idle":"2023-08-04T17:30:16.527819Z","shell.execute_reply.started":"2023-08-04T17:30:16.5195Z","shell.execute_reply":"2023-08-04T17:30:16.526499Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(8,2,figsize=(16,32))\nfor i in tqdm(range(15)):\n    r=i//2\n    c=i%2\n    sns.histplot(train[cols[i]], label=cols[i], ax=ax[r,c],  bins=40)\n    ax[r,c].legend()\n    ax[r,c].grid()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-08-04T17:30:16.529926Z","iopub.execute_input":"2023-08-04T17:30:16.53046Z","iopub.status.idle":"2023-08-04T17:30:21.10877Z","shell.execute_reply.started":"2023-08-04T17:30:16.530411Z","shell.execute_reply":"2023-08-04T17:30:21.107432Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(2,2,figsize=(16,8))\nfor i in tqdm(range(4)):\n    r=i//2\n    c=i%2\n    sns.histplot(train_meta[cols2[i]], label=cols2[i], ax=ax[r,c],  bins=40)\n    ax[r,c].legend()\n    ax[r,c].grid()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-08-04T17:30:21.111327Z","iopub.execute_input":"2023-08-04T17:30:21.11184Z","iopub.status.idle":"2023-08-04T17:30:22.559998Z","shell.execute_reply.started":"2023-08-04T17:30:21.111801Z","shell.execute_reply":"2023-08-04T17:30:22.558517Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(2,2,figsize=(16,8))\nfor i in tqdm(range(3)):\n    r=i//2\n    c=i%2\n    sns.histplot(test_meta[cols3[i]], label=cols3[i], ax=ax[r,c],  bins=40)\n    ax[r,c].legend()\n    ax[r,c].grid()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-08-04T17:30:22.561925Z","iopub.execute_input":"2023-08-04T17:30:22.563189Z","iopub.status.idle":"2023-08-04T17:30:23.632499Z","shell.execute_reply.started":"2023-08-04T17:30:22.563133Z","shell.execute_reply":"2023-08-04T17:30:23.631002Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(2,2,figsize=(16,8))\nfor i in tqdm(range(4)):\n    r=i//2\n    c=i%2\n    sns.histplot(labels[cols4[i]], label=cols4[i], ax=ax[r,c],  bins=40)\n    ax[r,c].legend()\n    ax[r,c].grid()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-08-04T17:30:27.320086Z","iopub.execute_input":"2023-08-04T17:30:27.320525Z","iopub.status.idle":"2023-08-04T17:30:28.618042Z","shell.execute_reply.started":"2023-08-04T17:30:27.320483Z","shell.execute_reply":"2023-08-04T17:30:28.616661Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}