{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.14","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":81933,"databundleVersionId":9643020,"sourceType":"competition"}],"dockerImageVersionId":30786,"isInternetEnabled":false,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import sklearn\nimport pandas as pd\nimport numpy as np\n\ndf_test = pd.read_csv(\"/kaggle/input/child-mind-institute-problematic-internet-use/test.csv\")\ndf_test.head()\ndf_test.describe()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-11-16T22:31:37.992178Z","iopub.execute_input":"2024-11-16T22:31:37.993123Z","iopub.status.idle":"2024-11-16T22:31:38.110917Z","shell.execute_reply.started":"2024-11-16T22:31:37.993072Z","shell.execute_reply":"2024-11-16T22:31:38.109687Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df_sub = pd.DataFrame(df_test[\"id\"])\ndf_sub.head()\n# sii values\nvalues = [0, 1, 2, 3]\n\n# Add a new column with random sii values\ndf_sub['sii']= np.random.choice(values, size=len(df_sub))\n\ndf_sub.head()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-11-16T22:31:38.112736Z","iopub.execute_input":"2024-11-16T22:31:38.113685Z","iopub.status.idle":"2024-11-16T22:31:38.127503Z","shell.execute_reply.started":"2024-11-16T22:31:38.113609Z","shell.execute_reply":"2024-11-16T22:31:38.126203Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df_sub.to_csv(\"/kaggle/working/submission.csv\", index=False)","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2024-11-16T22:31:38.129289Z","iopub.execute_input":"2024-11-16T22:31:38.129741Z","iopub.status.idle":"2024-11-16T22:31:38.137058Z","shell.execute_reply.started":"2024-11-16T22:31:38.129688Z","shell.execute_reply":"2024-11-16T22:31:38.135741Z"}},"outputs":[],"execution_count":null}]}