{"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":"markdown","source":"## [Google Smartphone Decimeter Challenge 2022](https://www.kaggle.com/competitions/smartphone-decimeter-2022): A look at all of the ground truth maps\n### Note: This takes a while to load; it is best to wait until the **Table of Contents** appears on the right hand side before scrolling down.","metadata":{}},{"cell_type":"code","source":"import numpy as np\nimport pandas as pd\nimport folium\nfrom IPython.display import display, Markdown\nfrom pathlib import Path\n\npath        = Path(\"../input/smartphone-decimeter-2022\")\ntruth_files = (path / 'train').rglob('ground_truth.csv')\n\nfor truth_file in truth_files:\n    tmp = pd.read_csv(truth_file)\n    title_string    = Path(truth_file).parts[4]\n    subtitle_string = Path(truth_file).parts[5]\n    display(Markdown('## '+ title_string))\n    display(Markdown('#### '+ subtitle_string))\n    map = folium.Map(location=[tmp.LatitudeDegrees.mean(),\n                               tmp.LongitudeDegrees.mean()], \n                               zoom_start=11, \n                               control_scale=True)\n    # now add the phone trajectory\n    for i in range(len(tmp)):\n        folium.Circle(\n        location=[tmp.iloc[i]['LatitudeDegrees'],tmp.iloc[i]['LongitudeDegrees']],\n            fill_color='blue',\n            radius=8,).add_to(map)\n    display(map)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]}]}