{"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":"# 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":"2022-10-11T04:58:09.593039Z","iopub.execute_input":"2022-10-11T04:58:09.593618Z","iopub.status.idle":"2022-10-11T04:58:09.608390Z","shell.execute_reply.started":"2022-10-11T04:58:09.593571Z","shell.execute_reply":"2022-10-11T04:58:09.606904Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import plotly.express as px\nimport plotly.offline as pyo\nimport plotly.graph_objects as go\nfrom plotly.subplots import make_subplots\npyo.init_notebook_mode()","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:57:48.422802Z","iopub.execute_input":"2022-10-11T04:57:48.423340Z","iopub.status.idle":"2022-10-11T04:57:48.488613Z","shell.execute_reply.started":"2022-10-11T04:57:48.423299Z","shell.execute_reply":"2022-10-11T04:57:48.485775Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df1 = pd.read_csv('../input/spaceship-titanic/train.csv')","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:26:28.107868Z","iopub.execute_input":"2022-10-11T04:26:28.108627Z","iopub.status.idle":"2022-10-11T04:26:28.138443Z","shell.execute_reply.started":"2022-10-11T04:26:28.108583Z","shell.execute_reply":"2022-10-11T04:26:28.137374Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df1.head()","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:26:28.946198Z","iopub.execute_input":"2022-10-11T04:26:28.947048Z","iopub.status.idle":"2022-10-11T04:26:28.972461Z","shell.execute_reply.started":"2022-10-11T04:26:28.947004Z","shell.execute_reply":"2022-10-11T04:26:28.970343Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"px.pie(df1,names ='HomePlanet')","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:26:29.234777Z","iopub.execute_input":"2022-10-11T04:26:29.235308Z","iopub.status.idle":"2022-10-11T04:26:29.336312Z","shell.execute_reply.started":"2022-10-11T04:26:29.235263Z","shell.execute_reply":"2022-10-11T04:26:29.334904Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"px.histogram(df1,x ='Age',nbins = 4)","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:27:08.477071Z","iopub.execute_input":"2022-10-11T04:27:08.477640Z","iopub.status.idle":"2022-10-11T04:27:08.554284Z","shell.execute_reply.started":"2022-10-11T04:27:08.477596Z","shell.execute_reply":"2022-10-11T04:27:08.553032Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"px.box(df1,y =['RoomService','FoodCourt','ShoppingMall','Spa','VRDeck'])","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:30:34.795180Z","iopub.execute_input":"2022-10-11T04:30:34.795601Z","iopub.status.idle":"2022-10-11T04:30:35.149375Z","shell.execute_reply.started":"2022-10-11T04:30:34.795566Z","shell.execute_reply":"2022-10-11T04:30:35.148245Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"px.box(df1,y ='Age')","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:34:49.427917Z","iopub.execute_input":"2022-10-11T04:34:49.428422Z","iopub.status.idle":"2022-10-11T04:34:49.499079Z","shell.execute_reply.started":"2022-10-11T04:34:49.428384Z","shell.execute_reply":"2022-10-11T04:34:49.497848Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"px.scatter(df1,x='Age', y='Spa')","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:38:50.514220Z","iopub.execute_input":"2022-10-11T04:38:50.514796Z","iopub.status.idle":"2022-10-11T04:38:50.599941Z","shell.execute_reply.started":"2022-10-11T04:38:50.514749Z","shell.execute_reply":"2022-10-11T04:38:50.598236Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"px.bar(df1,x='Age', y='Spa',color='HomePlanet')","metadata":{"execution":{"iopub.status.busy":"2022-10-11T04:41:46.798429Z","iopub.execute_input":"2022-10-11T04:41:46.799495Z","iopub.status.idle":"2022-10-11T04:41:46.912226Z","shell.execute_reply.started":"2022-10-11T04:41:46.799445Z","shell.execute_reply":"2022-10-11T04:41:46.911067Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"**Wi**","metadata":{}},{"cell_type":"markdown","source":"**Wi**","metadata":{}}]}