{"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":"code","source":"#installation of sweetviz \n!pip install sweetviz","metadata":{"execution":{"iopub.status.busy":"2022-08-02T06:00:57.497594Z","iopub.execute_input":"2022-08-02T06:00:57.498097Z","iopub.status.idle":"2022-08-02T06:01:11.101514Z","shell.execute_reply.started":"2022-08-02T06:00:57.498000Z","shell.execute_reply":"2022-08-02T06:01:11.100024Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# **EDA**\nsweetviz","metadata":{}},{"cell_type":"code","source":"import pandas as pd\nimport numpy as np\nimport sweetviz as sv","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-08-02T06:05:13.146756Z","iopub.execute_input":"2022-08-02T06:05:13.147166Z","iopub.status.idle":"2022-08-02T06:05:13.153060Z","shell.execute_reply.started":"2022-08-02T06:05:13.147135Z","shell.execute_reply":"2022-08-02T06:05:13.151584Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Read test dataset and train dataset into python environment\ndf_t=pd.read_csv(\"../input/spaceship-titanic/test.csv\")\ndf_te=pd.read_csv(\"../input/spaceship-titanic/train.csv\")","metadata":{"execution":{"iopub.status.busy":"2022-08-02T06:05:15.889970Z","iopub.execute_input":"2022-08-02T06:05:15.890431Z","iopub.status.idle":"2022-08-02T06:05:15.971723Z","shell.execute_reply.started":"2022-08-02T06:05:15.890393Z","shell.execute_reply":"2022-08-02T06:05:15.970553Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_t.info()","metadata":{"execution":{"iopub.status.busy":"2022-08-02T06:05:34.531417Z","iopub.execute_input":"2022-08-02T06:05:34.531920Z","iopub.status.idle":"2022-08-02T06:05:34.559258Z","shell.execute_reply.started":"2022-08-02T06:05:34.531886Z","shell.execute_reply":"2022-08-02T06:05:34.558388Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#To know the size of dataset\nprint(\"Size of training dataset\",df_t.shape)\nprint(\"Size of test dataset\",df_te.shape)","metadata":{"execution":{"iopub.status.busy":"2022-08-02T04:29:08.423459Z","iopub.execute_input":"2022-08-02T04:29:08.423940Z","iopub.status.idle":"2022-08-02T04:29:08.430636Z","shell.execute_reply.started":"2022-08-02T04:29:08.423905Z","shell.execute_reply":"2022-08-02T04:29:08.429270Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Use sweetviz for  EDA","metadata":{}},{"cell_type":"code","source":"comp_report=sv.compare([df_t,\"Test\"],[df_te,\"Train\"])","metadata":{"execution":{"iopub.status.busy":"2022-08-02T04:32:58.437637Z","iopub.execute_input":"2022-08-02T04:32:58.438040Z","iopub.status.idle":"2022-08-02T04:33:05.793507Z","shell.execute_reply.started":"2022-08-02T04:32:58.438008Z","shell.execute_reply":"2022-08-02T04:33:05.791930Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Result display\ncomp_report.show_notebook()","metadata":{"execution":{"iopub.status.busy":"2022-08-02T04:34:40.716186Z","iopub.execute_input":"2022-08-02T04:34:40.716778Z","iopub.status.idle":"2022-08-02T04:34:40.979342Z","shell.execute_reply.started":"2022-08-02T04:34:40.716732Z","shell.execute_reply":"2022-08-02T04:34:40.977429Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"\nTo get introduction about sweetviz ,visit the  page\nhttps://www.kaggle.com/code/josmyrose/football-august","metadata":{}}]}