{"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\nimport folium\nfrom folium import plugins","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-03-08T05:21:18.719602Z","iopub.execute_input":"2022-03-08T05:21:18.720035Z","iopub.status.idle":"2022-03-08T05:21:18.724570Z","shell.execute_reply.started":"2022-03-08T05:21:18.719998Z","shell.execute_reply":"2022-03-08T05:21:18.723570Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"names=[]\npaths=[]\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        if filename[-4:]=='.csv':\n            names+=[filename[0:-4]]\n            paths+=[os.path.join(dirname, filename)]","metadata":{"execution":{"iopub.status.busy":"2022-03-08T05:21:18.726411Z","iopub.execute_input":"2022-03-08T05:21:18.726829Z","iopub.status.idle":"2022-03-08T05:21:18.957033Z","shell.execute_reply.started":"2022-03-08T05:21:18.726789Z","shell.execute_reply":"2022-03-08T05:21:18.955475Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(names)","metadata":{"execution":{"iopub.status.busy":"2022-03-08T05:21:18.958606Z","iopub.execute_input":"2022-03-08T05:21:18.958927Z","iopub.status.idle":"2022-03-08T05:21:18.965692Z","shell.execute_reply.started":"2022-03-08T05:21:18.958882Z","shell.execute_reply":"2022-03-08T05:21:18.964545Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for i in range(len(paths)):\n    names[i]=pd.read_csv(paths[i])\n    print(str(i)+'. '+paths[i].split('/')[-1][0:-4])\n    display(names[i])\n    print()","metadata":{"execution":{"iopub.status.busy":"2022-03-08T05:21:18.967610Z","iopub.execute_input":"2022-03-08T05:21:18.968647Z","iopub.status.idle":"2022-03-08T05:21:19.188823Z","shell.execute_reply.started":"2022-03-08T05:21:18.968485Z","shell.execute_reply":"2022-03-08T05:21:19.187428Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"common_names=names[3]['common_name'].unique().tolist()\nprint(len(common_names))","metadata":{"execution":{"iopub.status.busy":"2022-03-08T05:21:19.198626Z","iopub.execute_input":"2022-03-08T05:21:19.199277Z","iopub.status.idle":"2022-03-08T05:21:19.218188Z","shell.execute_reply.started":"2022-03-08T05:21:19.199233Z","shell.execute_reply":"2022-03-08T05:21:19.216663Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print('All Data')\ndata=names[3][['latitude','longitude']].reset_index(drop=True)\neq_map = folium.Map(location=[20,0],tiles='Stamen Terrain',zoom_start=1,min_zoom=2.0)\neq_map.add_child(plugins.HeatMap(data))\neq_map","metadata":{"execution":{"iopub.status.busy":"2022-03-08T05:28:31.244773Z","iopub.execute_input":"2022-03-08T05:28:31.245045Z","iopub.status.idle":"2022-03-08T05:28:31.576041Z","shell.execute_reply.started":"2022-03-08T05:28:31.245014Z","shell.execute_reply":"2022-03-08T05:28:31.574590Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"i=10\nitem=common_names[i]\nprint(item)\ndata=names[3][names[3]['common_name']==item][['latitude','longitude']].reset_index(drop=True)\neq_map = folium.Map(location=[20,0],tiles='Stamen Terrain',zoom_start=1,min_zoom=2.0)\neq_map.add_child(plugins.HeatMap(data))\neq_map","metadata":{"execution":{"iopub.status.busy":"2022-03-08T05:26:41.441654Z","iopub.execute_input":"2022-03-08T05:26:41.442082Z","iopub.status.idle":"2022-03-08T05:26:41.475661Z","shell.execute_reply.started":"2022-03-08T05:26:41.442044Z","shell.execute_reply":"2022-03-08T05:26:41.474503Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}