{"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-07-05T14:07:35.282542Z","iopub.execute_input":"2022-07-05T14:07:35.282987Z","iopub.status.idle":"2022-07-05T14:07:35.314207Z","shell.execute_reply.started":"2022-07-05T14:07:35.282899Z","shell.execute_reply":"2022-07-05T14:07:35.313372Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#read the file \ndf= pd.read_csv(\"/kaggle/input/dsintro/train.csv\")\ndf.head(10)","metadata":{"execution":{"iopub.status.busy":"2022-07-05T14:07:35.315780Z","iopub.execute_input":"2022-07-05T14:07:35.316397Z","iopub.status.idle":"2022-07-05T14:07:37.209908Z","shell.execute_reply.started":"2022-07-05T14:07:35.316361Z","shell.execute_reply":"2022-07-05T14:07:37.208502Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.shape","metadata":{"execution":{"iopub.status.busy":"2022-07-05T14:09:53.030279Z","iopub.execute_input":"2022-07-05T14:09:53.030721Z","iopub.status.idle":"2022-07-05T14:09:53.037937Z","shell.execute_reply.started":"2022-07-05T14:09:53.030688Z","shell.execute_reply":"2022-07-05T14:09:53.036630Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#null value check \n\ndf.isnull().sum()*100/len(df)","metadata":{"execution":{"iopub.status.busy":"2022-07-05T14:09:22.952062Z","iopub.execute_input":"2022-07-05T14:09:22.952474Z","iopub.status.idle":"2022-07-05T14:09:23.006189Z","shell.execute_reply.started":"2022-07-05T14:09:22.952441Z","shell.execute_reply":"2022-07-05T14:09:23.005021Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"The 99% of the data of the roadId is null . Thats why is dont effect more in the insights in the data . Thats why drop this columns ","metadata":{}},{"cell_type":"code","source":"#drop\ndf.drop(\"roadId\",axis=1)","metadata":{"execution":{"iopub.status.busy":"2022-07-05T14:11:06.750490Z","iopub.execute_input":"2022-07-05T14:11:06.750873Z","iopub.status.idle":"2022-07-05T14:11:06.825092Z","shell.execute_reply.started":"2022-07-05T14:11:06.750840Z","shell.execute_reply":"2022-07-05T14:11:06.823564Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.dtypes","metadata":{"execution":{"iopub.status.busy":"2022-07-05T14:14:39.533275Z","iopub.execute_input":"2022-07-05T14:14:39.533801Z","iopub.status.idle":"2022-07-05T14:14:39.542226Z","shell.execute_reply.started":"2022-07-05T14:14:39.533744Z","shell.execute_reply":"2022-07-05T14:14:39.541385Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df[\"developmentId\"].sample(10)","metadata":{"execution":{"iopub.status.busy":"2022-07-05T14:15:55.758133Z","iopub.execute_input":"2022-07-05T14:15:55.759062Z","iopub.status.idle":"2022-07-05T14:15:55.769191Z","shell.execute_reply.started":"2022-07-05T14:15:55.759016Z","shell.execute_reply":"2022-07-05T14:15:55.768335Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}