{"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":"import numpy as np\nimport pandas as pd\nimport os","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-07-21T19:53:50.093826Z","iopub.execute_input":"2022-07-21T19:53:50.094510Z","iopub.status.idle":"2022-07-21T19:53:50.120646Z","shell.execute_reply.started":"2022-07-21T19:53:50.094403Z","shell.execute_reply":"2022-07-21T19:53:50.119772Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"def load_data(filename):\n    csv_path = os.path.join('../input/Covid19-Death-Predictions/', filename)\n    return pd.read_csv(csv_path)","metadata":{"execution":{"iopub.status.busy":"2022-07-21T19:55:08.235633Z","iopub.execute_input":"2022-07-21T19:55:08.235996Z","iopub.status.idle":"2022-07-21T19:55:08.241142Z","shell.execute_reply.started":"2022-07-21T19:55:08.235968Z","shell.execute_reply":"2022-07-21T19:55:08.239916Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cov_cases = load_data('train.csv')","metadata":{"execution":{"iopub.status.busy":"2022-07-21T19:55:09.093341Z","iopub.execute_input":"2022-07-21T19:55:09.093712Z","iopub.status.idle":"2022-07-21T19:55:09.478123Z","shell.execute_reply.started":"2022-07-21T19:55:09.093682Z","shell.execute_reply":"2022-07-21T19:55:09.477240Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"- Notice that most features are int and float and we only have the Location feature as an Object.\n- We have 129156 datapoints for each feature. and there is a lot of missing data that either needs to be filled, removed or combined with other features using some feature engineering.","metadata":{}},{"cell_type":"code","source":"cov_cases.info()","metadata":{"execution":{"iopub.status.busy":"2022-07-21T19:55:28.195356Z","iopub.execute_input":"2022-07-21T19:55:28.195771Z","iopub.status.idle":"2022-07-21T19:55:28.235305Z","shell.execute_reply.started":"2022-07-21T19:55:28.195738Z","shell.execute_reply":"2022-07-21T19:55:28.234011Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cov_cases['Location'].value_counts()","metadata":{"execution":{"iopub.status.busy":"2022-07-21T19:55:37.000407Z","iopub.execute_input":"2022-07-21T19:55:37.000816Z","iopub.status.idle":"2022-07-21T19:55:37.018274Z","shell.execute_reply.started":"2022-07-21T19:55:37.000784Z","shell.execute_reply":"2022-07-21T19:55:37.017044Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# List of the countries that data is gathered from\ncov_cases['Location'].value_counts().keys().values","metadata":{"execution":{"iopub.status.busy":"2022-07-21T19:56:03.391272Z","iopub.execute_input":"2022-07-21T19:56:03.392397Z","iopub.status.idle":"2022-07-21T19:56:03.407074Z","shell.execute_reply.started":"2022-07-21T19:56:03.392356Z","shell.execute_reply":"2022-07-21T19:56:03.405919Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# corresponding number of cases of each country listed above\ncov_cases['Location'].value_counts().values ","metadata":{"execution":{"iopub.status.busy":"2022-07-21T19:57:06.296881Z","iopub.execute_input":"2022-07-21T19:57:06.297308Z","iopub.status.idle":"2022-07-21T19:57:06.311453Z","shell.execute_reply.started":"2022-07-21T19:57:06.297257Z","shell.execute_reply":"2022-07-21T19:57:06.309569Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}