{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":20270,"databundleVersionId":1222630,"sourceType":"competition"}],"dockerImageVersionId":30646,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-02-20T15:33:49.374477Z","iopub.execute_input":"2024-02-20T15:33:49.375159Z","iopub.status.idle":"2024-02-20T15:36:02.837114Z","shell.execute_reply.started":"2024-02-20T15:33:49.375122Z","shell.execute_reply":"2024-02-20T15:36:02.835580Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import pandas as pd\ndf = pd.read_csv(\"/kaggle/input/siim-isic-melanoma-classification/train.csv\")","metadata":{"execution":{"iopub.status.busy":"2024-03-06T13:24:39.498294Z","iopub.execute_input":"2024-03-06T13:24:39.499540Z","iopub.status.idle":"2024-03-06T13:24:39.586387Z","shell.execute_reply.started":"2024-03-06T13:24:39.499465Z","shell.execute_reply":"2024-03-06T13:24:39.585229Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(df)","metadata":{"execution":{"iopub.status.busy":"2024-03-06T13:30:59.720545Z","iopub.execute_input":"2024-03-06T13:30:59.721040Z","iopub.status.idle":"2024-03-06T13:30:59.741318Z","shell.execute_reply.started":"2024-03-06T13:30:59.721006Z","shell.execute_reply":"2024-03-06T13:30:59.739285Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(df.shape)\nprint(df.head())\nprint(df.tail())\nprint(df.info())","metadata":{"execution":{"iopub.status.busy":"2024-03-06T13:26:25.392639Z","iopub.execute_input":"2024-03-06T13:26:25.393133Z","iopub.status.idle":"2024-03-06T13:26:25.441810Z","shell.execute_reply.started":"2024-03-06T13:26:25.393097Z","shell.execute_reply":"2024-03-06T13:26:25.439541Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"duplicates = df.duplicated().sum()\nprint(\"\\nNumber of duplicate rows:\", duplicates)","metadata":{"execution":{"iopub.status.busy":"2024-03-06T13:27:07.694451Z","iopub.execute_input":"2024-03-06T13:27:07.694973Z","iopub.status.idle":"2024-03-06T13:27:07.740362Z","shell.execute_reply.started":"2024-03-06T13:27:07.694936Z","shell.execute_reply":"2024-03-06T13:27:07.738500Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"missing_values = df.isnull().sum()\nprint(\"\\nMissing values:\\n\", missing_values)","metadata":{"execution":{"iopub.status.busy":"2024-03-06T13:27:25.194048Z","iopub.execute_input":"2024-03-06T13:27:25.194569Z","iopub.status.idle":"2024-03-06T13:27:25.231811Z","shell.execute_reply.started":"2024-03-06T13:27:25.194525Z","shell.execute_reply":"2024-03-06T13:27:25.229999Z"},"trusted":true},"execution_count":null,"outputs":[]}]}