{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","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"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":3004,"databundleVersionId":861823,"sourceType":"competition"}],"dockerImageVersionId":30587,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nimport plotly.express as px","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-11-25T11:24:23.255752Z","iopub.execute_input":"2023-11-25T11:24:23.256158Z","iopub.status.idle":"2023-11-25T11:24:26.987243Z","shell.execute_reply.started":"2023-11-25T11:24:23.256125Z","shell.execute_reply":"2023-11-25T11:24:26.986196Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df = pd.read_csv('/kaggle/input/digit-recognizer/train.csv')\ntest = pd.read_csv('/kaggle/input/digit-recognizer/test.csv')\n\ndf.head()","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:24:26.990198Z","iopub.execute_input":"2023-11-25T11:24:26.991638Z","iopub.status.idle":"2023-11-25T11:24:34.765275Z","shell.execute_reply.started":"2023-11-25T11:24:26.991586Z","shell.execute_reply":"2023-11-25T11:24:34.763680Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.shape","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:24:34.767274Z","iopub.execute_input":"2023-11-25T11:24:34.767726Z","iopub.status.idle":"2023-11-25T11:24:34.776898Z","shell.execute_reply.started":"2023-11-25T11:24:34.767688Z","shell.execute_reply":"2023-11-25T11:24:34.775367Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.label.value_counts(normalize= True)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:29:40.520089Z","iopub.execute_input":"2023-11-25T11:29:40.520611Z","iopub.status.idle":"2023-11-25T11:29:40.536139Z","shell.execute_reply.started":"2023-11-25T11:29:40.520569Z","shell.execute_reply":"2023-11-25T11:29:40.534539Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X = df.drop('label', axis =1)\ny = df['label']","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:30:14.590850Z","iopub.execute_input":"2023-11-25T11:30:14.591258Z","iopub.status.idle":"2023-11-25T11:30:14.793021Z","shell.execute_reply.started":"2023-11-25T11:30:14.591227Z","shell.execute_reply":"2023-11-25T11:30:14.791990Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"y.value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:30:14.858729Z","iopub.execute_input":"2023-11-25T11:30:14.859985Z","iopub.status.idle":"2023-11-25T11:30:14.872313Z","shell.execute_reply.started":"2023-11-25T11:30:14.859930Z","shell.execute_reply":"2023-11-25T11:30:14.871025Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# Splitting\nfrom sklearn.model_selection import train_test_split\nX_train, X_test, y_train, y_test = train_test_split(X, y, stratify = y, random_state=42)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:31:44.198715Z","iopub.execute_input":"2023-11-25T11:31:44.199119Z","iopub.status.idle":"2023-11-25T11:31:44.581284Z","shell.execute_reply.started":"2023-11-25T11:31:44.199087Z","shell.execute_reply":"2023-11-25T11:31:44.579895Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print('Traning data shape:', X_train.shape)\nprint('Testing data shape:', X_test.shape)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:31:53.330667Z","iopub.execute_input":"2023-11-25T11:31:53.331111Z","iopub.status.idle":"2023-11-25T11:31:53.338120Z","shell.execute_reply.started":"2023-11-25T11:31:53.331079Z","shell.execute_reply":"2023-11-25T11:31:53.336468Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"type(X_train)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:32:22.688465Z","iopub.execute_input":"2023-11-25T11:32:22.688914Z","iopub.status.idle":"2023-11-25T11:32:22.697287Z","shell.execute_reply.started":"2023-11-25T11:32:22.688880Z","shell.execute_reply":"2023-11-25T11:32:22.695427Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"classes = np.unique(y_train)\nnClasses = len(classes)\nprint('Total number of outputs : ', nClasses)\nprint('Output classes : ', classes)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:31:55.214493Z","iopub.execute_input":"2023-11-25T11:31:55.214962Z","iopub.status.idle":"2023-11-25T11:31:55.223761Z","shell.execute_reply.started":"2023-11-25T11:31:55.214928Z","shell.execute_reply":"2023-11-25T11:31:55.221984Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# Check sample image\n# index = np.random.choice(range(0,len(X)-1))\nindex = 10\nimg = np.reshape(X_train.iloc[index, :].values, (28,28))\nplt.imshow(img, cmap='gray')","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:37:24.236917Z","iopub.execute_input":"2023-11-25T11:37:24.237363Z","iopub.status.idle":"2023-11-25T11:37:24.572463Z","shell.execute_reply.started":"2023-11-25T11:37:24.237326Z","shell.execute_reply":"2023-11-25T11:37:24.570789Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train.min(axis=0).min(axis=0), X_train.max(axis=0).max(axis=0)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:40:13.181460Z","iopub.execute_input":"2023-11-25T11:40:13.181980Z","iopub.status.idle":"2023-11-25T11:40:13.232273Z","shell.execute_reply.started":"2023-11-25T11:40:13.181935Z","shell.execute_reply":"2023-11-25T11:40:13.230955Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train.min().min(), X_train.max().max()","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:41:29.286218Z","iopub.execute_input":"2023-11-25T11:41:29.286682Z","iopub.status.idle":"2023-11-25T11:41:29.339871Z","shell.execute_reply.started":"2023-11-25T11:41:29.286646Z","shell.execute_reply":"2023-11-25T11:41:29.338435Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# Normalization\nX_train = X_train/255.0\nX_test = X_test/255.0","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:42:32.592081Z","iopub.execute_input":"2023-11-25T11:42:32.592567Z","iopub.status.idle":"2023-11-25T11:42:32.672162Z","shell.execute_reply.started":"2023-11-25T11:42:32.592533Z","shell.execute_reply":"2023-11-25T11:42:32.671161Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train.min(axis=0).min(axis=0), X_train.max(axis=0).max(axis=0)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:42:33.077941Z","iopub.execute_input":"2023-11-25T11:42:33.078428Z","iopub.status.idle":"2023-11-25T11:42:33.219320Z","shell.execute_reply.started":"2023-11-25T11:42:33.078372Z","shell.execute_reply":"2023-11-25T11:42:33.217858Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from sklearn.tree import DecisionTreeClassifier\nfrom sklearn.model_selection import cross_val_score\ntree = DecisionTreeClassifier(random_state = 0)\nscores= cross_val_score(tree, X_train, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:45:59.229841Z","iopub.execute_input":"2023-11-25T11:45:59.230316Z","iopub.status.idle":"2023-11-25T11:46:19.977026Z","shell.execute_reply.started":"2023-11-25T11:45:59.230283Z","shell.execute_reply":"2023-11-25T11:46:19.975689Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from sklearn.neighbors import KNeighborsClassifier\nfrom sklearn.model_selection import cross_val_score\n\nknn = KNeighborsClassifier()\nscores= cross_val_score(knn, X_train, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:48:20.761532Z","iopub.execute_input":"2023-11-25T11:48:20.761991Z","iopub.status.idle":"2023-11-25T11:48:43.709108Z","shell.execute_reply.started":"2023-11-25T11:48:20.761958Z","shell.execute_reply":"2023-11-25T11:48:43.707612Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from sklearn.decomposition import PCA\npca = PCA(n_components=10)\nX_train_pca_10 = pca.fit_transform(X_train)\nX_test_pca_10 = pca.transform(X_test)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:08:06.408795Z","iopub.execute_input":"2023-11-25T12:08:06.409653Z","iopub.status.idle":"2023-11-25T12:08:09.826139Z","shell.execute_reply.started":"2023-11-25T12:08:06.409594Z","shell.execute_reply":"2023-11-25T12:08:09.823722Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"scores= cross_val_score(tree, X_train_pca_10, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:51:19.983584Z","iopub.execute_input":"2023-11-25T11:51:19.984475Z","iopub.status.idle":"2023-11-25T11:51:21.579109Z","shell.execute_reply.started":"2023-11-25T11:51:19.984423Z","shell.execute_reply":"2023-11-25T11:51:21.576095Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"scores= cross_val_score(knn, X_train_pca_10, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T11:51:30.703424Z","iopub.execute_input":"2023-11-25T11:51:30.703908Z","iopub.status.idle":"2023-11-25T11:51:36.459486Z","shell.execute_reply.started":"2023-11-25T11:51:30.703865Z","shell.execute_reply":"2023-11-25T11:51:36.458216Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pca.explained_variance_ratio_","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:08:09.830125Z","iopub.execute_input":"2023-11-25T12:08:09.834031Z","iopub.status.idle":"2023-11-25T12:08:09.853654Z","shell.execute_reply.started":"2023-11-25T12:08:09.833938Z","shell.execute_reply":"2023-11-25T12:08:09.851610Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"np.sum(pca.explained_variance_ratio_)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:09:25.575616Z","iopub.execute_input":"2023-11-25T12:09:25.576143Z","iopub.status.idle":"2023-11-25T12:09:25.586442Z","shell.execute_reply.started":"2023-11-25T12:09:25.576098Z","shell.execute_reply":"2023-11-25T12:09:25.584645Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# Explained Variance Bar Plot\nexplained_variance_df = pd.DataFrame({'explained_variance':pca.explained_variance_ratio_,\n                                        'principal_components':range(1, len(pca.explained_variance_ratio_)+1)})\nsns.barplot(explained_variance_df, x='principal_components', y='explained_variance')","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:17:11.809456Z","iopub.execute_input":"2023-11-25T12:17:11.809872Z","iopub.status.idle":"2023-11-25T12:17:12.189021Z","shell.execute_reply.started":"2023-11-25T12:17:11.809842Z","shell.execute_reply":"2023-11-25T12:17:12.188029Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"explained_variance_df","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:16:54.995183Z","iopub.execute_input":"2023-11-25T12:16:54.996765Z","iopub.status.idle":"2023-11-25T12:16:55.012135Z","shell.execute_reply.started":"2023-11-25T12:16:54.996689Z","shell.execute_reply":"2023-11-25T12:16:55.010623Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pca = PCA(n_components=784)\nx_train_pca = pca.fit_transform(X_train)\nx_test_pca = pca.transform(X_test)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:18:08.406310Z","iopub.execute_input":"2023-11-25T12:18:08.406784Z","iopub.status.idle":"2023-11-25T12:18:13.280055Z","shell.execute_reply.started":"2023-11-25T12:18:08.406750Z","shell.execute_reply":"2023-11-25T12:18:13.278347Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pca.explained_variance_ratio_","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:18:26.710797Z","iopub.execute_input":"2023-11-25T12:18:26.711233Z","iopub.status.idle":"2023-11-25T12:18:26.732176Z","shell.execute_reply.started":"2023-11-25T12:18:26.711202Z","shell.execute_reply":"2023-11-25T12:18:26.730374Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"np.cumsum(pca.explained_variance_ratio_)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:20:50.009188Z","iopub.execute_input":"2023-11-25T12:20:50.009684Z","iopub.status.idle":"2023-11-25T12:20:50.028538Z","shell.execute_reply.started":"2023-11-25T12:20:50.009650Z","shell.execute_reply":"2023-11-25T12:20:50.027520Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"np.sum(pca.explained_variance_ratio_)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:22:26.783020Z","iopub.execute_input":"2023-11-25T12:22:26.783534Z","iopub.status.idle":"2023-11-25T12:22:26.792610Z","shell.execute_reply.started":"2023-11-25T12:22:26.783496Z","shell.execute_reply":"2023-11-25T12:22:26.790711Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"explained_variance = np.cumsum(pca.explained_variance_ratio_)\npx.area(explained_variance, title='Cumulative Explained Variance', labels={'index':'n_components', 'value':'explained_variance_ratio_'})","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:23:38.659740Z","iopub.execute_input":"2023-11-25T12:23:38.660216Z","iopub.status.idle":"2023-11-25T12:23:38.817955Z","shell.execute_reply.started":"2023-11-25T12:23:38.660183Z","shell.execute_reply":"2023-11-25T12:23:38.816608Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pca = PCA(n_components=0.9)\nX_train_pca = pca.fit_transform(X_train)\nX_test_pca = pca.transform(X_test)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:25:58.916845Z","iopub.execute_input":"2023-11-25T12:25:58.917343Z","iopub.status.idle":"2023-11-25T12:26:03.664079Z","shell.execute_reply.started":"2023-11-25T12:25:58.917308Z","shell.execute_reply":"2023-11-25T12:26:03.661801Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pca.n_components_","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:26:27.601597Z","iopub.execute_input":"2023-11-25T12:26:27.602055Z","iopub.status.idle":"2023-11-25T12:26:27.611795Z","shell.execute_reply.started":"2023-11-25T12:26:27.602021Z","shell.execute_reply":"2023-11-25T12:26:27.610269Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train.shape, X_train_pca.shape","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:27:48.946653Z","iopub.execute_input":"2023-11-25T12:27:48.947127Z","iopub.status.idle":"2023-11-25T12:27:48.956545Z","shell.execute_reply.started":"2023-11-25T12:27:48.947093Z","shell.execute_reply":"2023-11-25T12:27:48.955471Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"scores= cross_val_score(tree, X_train_pca, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:28:37.859526Z","iopub.execute_input":"2023-11-25T12:28:37.860041Z","iopub.status.idle":"2023-11-25T12:28:53.267932Z","shell.execute_reply.started":"2023-11-25T12:28:37.860007Z","shell.execute_reply":"2023-11-25T12:28:53.266508Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"scores= cross_val_score(knn, X_train_pca, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:28:53.270103Z","iopub.execute_input":"2023-11-25T12:28:53.270567Z","iopub.status.idle":"2023-11-25T12:28:58.449051Z","shell.execute_reply.started":"2023-11-25T12:28:53.270529Z","shell.execute_reply":"2023-11-25T12:28:58.447853Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# Reconstruction\nX_train_reconstructed = pca.inverse_transform(X_train_pca)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:38:31.130279Z","iopub.execute_input":"2023-11-25T12:38:31.130874Z","iopub.status.idle":"2023-11-25T12:38:31.507095Z","shell.execute_reply.started":"2023-11-25T12:38:31.130836Z","shell.execute_reply":"2023-11-25T12:38:31.505482Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print('Original Data Shape: ', X_train.shape)\nprint('Compressed Data Shape: ', X_train_pca.shape)\nprint('Reconstructed Data Shape: ', X_train_reconstructed.shape)","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:38:31.509001Z","iopub.execute_input":"2023-11-25T12:38:31.509365Z","iopub.status.idle":"2023-11-25T12:38:31.518169Z","shell.execute_reply.started":"2023-11-25T12:38:31.509333Z","shell.execute_reply":"2023-11-25T12:38:31.516498Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# Original vs Reconstructed\n\noriginal_img = X_train.iloc[4].values.reshape(28,28)\nreconstructed_img = X_train_reconstructed[4].reshape(28,28)\n\nplt.figure(figsize=(8,4))\nplt.subplot(1,2,1)\nplt.imshow(original_img, cmap='gray')\nplt.title('Original Image')\nplt.subplot(1,2,2)\nplt.imshow(reconstructed_img, cmap='gray')\nplt.title('Reconstructed Image')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-11-25T12:38:32.663833Z","iopub.execute_input":"2023-11-25T12:38:32.664327Z","iopub.status.idle":"2023-11-25T12:38:33.136935Z","shell.execute_reply.started":"2023-11-25T12:38:32.664290Z","shell.execute_reply":"2023-11-25T12:38:33.135702Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from xgboost import XGBClassifier\n\nxgb = XGBClassifier()\n\nscores= cross_val_score(xgb, X_train_pca, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T04:14:57.847782Z","iopub.execute_input":"2023-11-25T04:14:57.848327Z","iopub.status.idle":"2023-11-25T04:15:43.139703Z","shell.execute_reply.started":"2023-11-25T04:14:57.848292Z","shell.execute_reply":"2023-11-25T04:15:43.138273Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from xgboost import XGBClassifier\n\nxgb = XGBClassifier()\n\nscores= cross_val_score(xgb, X_train, y_train, cv= 3)\nprint('Scores: ', scores)\nprint('Mean Score: ', np.mean(scores))\nprint('Std. Deviation: ', np.std(scores))","metadata":{"execution":{"iopub.status.busy":"2023-11-25T04:16:25.231781Z","iopub.execute_input":"2023-11-25T04:16:25.232125Z","iopub.status.idle":"2023-11-25T04:22:22.768465Z","shell.execute_reply.started":"2023-11-25T04:16:25.232102Z","shell.execute_reply":"2023-11-25T04:22:22.767861Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"+ With 87 Features (Using PCA): We have got a mean score of 95.2 % \n+ with 784 features (Original Data) : We have got a mean score of 96.6 %","metadata":{}},{"cell_type":"code","source":"xgb.fit(X_train_pca, y_train)\nprint('Training Score: ', xgb.score(X_train_pca, y_train))\nprint('Testing Score: ', xgb.score(X_test_pca, y_test))\n","metadata":{"execution":{"iopub.status.busy":"2023-11-25T04:32:54.072928Z","iopub.execute_input":"2023-11-25T04:32:54.073285Z","iopub.status.idle":"2023-11-25T04:33:13.288446Z","shell.execute_reply.started":"2023-11-25T04:32:54.073260Z","shell.execute_reply":"2023-11-25T04:33:13.287826Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test.head()","metadata":{"execution":{"iopub.status.busy":"2023-11-25T04:34:24.480985Z","iopub.execute_input":"2023-11-25T04:34:24.481333Z","iopub.status.idle":"2023-11-25T04:34:24.502090Z","shell.execute_reply.started":"2023-11-25T04:34:24.481307Z","shell.execute_reply":"2023-11-25T04:34:24.500687Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}