{"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"papermill":{"default_parameters":{},"duration":42.399313,"end_time":"2022-09-13T14:09:35.443305","environment_variables":{},"exception":null,"input_path":"__notebook__.ipynb","output_path":"__notebook__.ipynb","parameters":{},"start_time":"2022-09-13T14:08:53.043992","version":"2.3.4"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":71549,"databundleVersionId":8561470,"sourceType":"competition"}],"dockerImageVersionId":30626,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# RSNA 2024 train HistPlot","metadata":{"papermill":{"duration":0.004852,"end_time":"2022-09-13T14:09:03.598005","exception":false,"start_time":"2022-09-13T14:09:03.593153","status":"completed"},"tags":[]}},{"cell_type":"code","source":"import numpy as np\nimport pandas as pd\nimport os\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nfrom tqdm import tqdm\nimport plotly.express as px\nimport plotly.graph_objects as go\nfrom plotly.subplots import make_subplots","metadata":{"_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","papermill":{"duration":2.47983,"end_time":"2022-09-13T14:09:06.081763","exception":false,"start_time":"2022-09-13T14:09:03.601933","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-05-02T08:05:58.931584Z","iopub.execute_input":"2024-05-02T08:05:58.932069Z","iopub.status.idle":"2024-05-02T08:05:58.939107Z","shell.execute_reply.started":"2024-05-02T08:05:58.932025Z","shell.execute_reply":"2024-05-02T08:05:58.937714Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train=pd.read_csv('/kaggle/input/rsna-2024-lumbar-spine-degenerative-classification/train.csv')\n","metadata":{"papermill":{"duration":0.170345,"end_time":"2022-09-13T14:09:06.256061","exception":false,"start_time":"2022-09-13T14:09:06.085716","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-05-02T08:05:58.941438Z","iopub.execute_input":"2024-05-02T08:05:58.942132Z","iopub.status.idle":"2024-05-02T08:06:02.08251Z","shell.execute_reply.started":"2024-05-02T08:05:58.942078Z","shell.execute_reply":"2024-05-02T08:06:02.079951Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"display(train[0:3])\n#display(train.info())","metadata":{"papermill":{"duration":0.035518,"end_time":"2022-09-13T14:09:06.295235","exception":false,"start_time":"2022-09-13T14:09:06.259717","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-05-02T08:06:02.084937Z","iopub.execute_input":"2024-05-02T08:06:02.085754Z","iopub.status.idle":"2024-05-02T08:06:02.109525Z","shell.execute_reply.started":"2024-05-02T08:06:02.085704Z","shell.execute_reply":"2024-05-02T08:06:02.108153Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cols=train.columns.tolist()\nprint(cols)\nprint(len(cols))","metadata":{"papermill":{"duration":0.016405,"end_time":"2022-09-13T14:09:06.315603","exception":false,"start_time":"2022-09-13T14:09:06.299198","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-05-02T08:06:02.112524Z","iopub.execute_input":"2024-05-02T08:06:02.113042Z","iopub.status.idle":"2024-05-02T08:06:02.125546Z","shell.execute_reply.started":"2024-05-02T08:06:02.112993Z","shell.execute_reply":"2024-05-02T08:06:02.123716Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(13,2,figsize=(12,60))\nplt.subplots_adjust(hspace=0.8)\n\nfor i in tqdm(range(len(cols))):\n    r=i//2\n    c=i%2\n    sns.histplot(train[cols[i]], label='train '+cols[i], ax=ax[r,c], color='C1',bins=40, alpha=0.8)\n \n    ax[r,c].legend()\n    ax[r,c].grid()\n    ax[r,c].tick_params(axis='x', labelrotation=45)\n\nplt.show()","metadata":{"papermill":{"duration":0.016812,"end_time":"2022-09-13T14:09:34.604792","exception":false,"start_time":"2022-09-13T14:09:34.58798","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-05-02T08:13:19.582672Z","iopub.execute_input":"2024-05-02T08:13:19.583485Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}