{"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","_kg_hide-input":true,"execution":{"iopub.status.busy":"2023-01-31T09:20:26.248409Z","iopub.execute_input":"2023-01-31T09:20:26.248806Z","iopub.status.idle":"2023-01-31T09:20:26.270352Z","shell.execute_reply.started":"2023-01-31T09:20:26.248780Z","shell.execute_reply":"2023-01-31T09:20:26.268343Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sen_geo=pd.read_csv(\"/kaggle/input/icecube-neutrinos-in-deep-ice/sensor_geometry.csv\")","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:20:26.272493Z","iopub.execute_input":"2023-01-31T09:20:26.272771Z","iopub.status.idle":"2023-01-31T09:20:26.286121Z","shell.execute_reply.started":"2023-01-31T09:20:26.272745Z","shell.execute_reply":"2023-01-31T09:20:26.283831Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import seaborn as sns\nimport matplotlib.pyplot as plt","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:20:26.288600Z","iopub.execute_input":"2023-01-31T09:20:26.289010Z","iopub.status.idle":"2023-01-31T09:20:26.294269Z","shell.execute_reply.started":"2023-01-31T09:20:26.288983Z","shell.execute_reply":"2023-01-31T09:20:26.293450Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from mpl_toolkits import mplot3d\nimport plotly.express as px","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:20:26.296324Z","iopub.execute_input":"2023-01-31T09:20:26.296919Z","iopub.status.idle":"2023-01-31T09:20:26.309779Z","shell.execute_reply.started":"2023-01-31T09:20:26.296880Z","shell.execute_reply":"2023-01-31T09:20:26.308020Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X=sen_geo['x']\nY=sen_geo['y']\nZ=sen_geo['z']\nsensors=sen_geo['sensor_id']","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:38:39.966932Z","iopub.execute_input":"2023-01-31T09:38:39.967320Z","iopub.status.idle":"2023-01-31T09:38:39.972254Z","shell.execute_reply.started":"2023-01-31T09:38:39.967294Z","shell.execute_reply":"2023-01-31T09:38:39.971077Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig=plt.figure()\nax = plt.axes(projection ='3d')\nx=X\ny=Y\nz=Z\nax.plot3D(x, y, z, 'green')\nax.set_title('Plotting x,y,z coordinates')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:43:11.654668Z","iopub.execute_input":"2023-01-31T09:43:11.654996Z","iopub.status.idle":"2023-01-31T09:43:11.808206Z","shell.execute_reply.started":"2023-01-31T09:43:11.654971Z","shell.execute_reply":"2023-01-31T09:43:11.806679Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Check for null values\nsen_geo.isna().sum()","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:20:26.514456Z","iopub.execute_input":"2023-01-31T09:20:26.514711Z","iopub.status.idle":"2023-01-31T09:20:26.525850Z","shell.execute_reply.started":"2023-01-31T09:20:26.514687Z","shell.execute_reply":"2023-01-31T09:20:26.524797Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sen_geo.columns","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:20:26.527655Z","iopub.execute_input":"2023-01-31T09:20:26.527926Z","iopub.status.idle":"2023-01-31T09:20:26.537576Z","shell.execute_reply.started":"2023-01-31T09:20:26.527901Z","shell.execute_reply":"2023-01-31T09:20:26.536612Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"dist_X=abs(X.min() - X.max())\ndist_Y=abs(Y.min() - Y.max())\ndist_Z=abs(Z.min() - Z.max())","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:24:28.923795Z","iopub.execute_input":"2023-01-31T09:24:28.924229Z","iopub.status.idle":"2023-01-31T09:24:28.932602Z","shell.execute_reply.started":"2023-01-31T09:24:28.924203Z","shell.execute_reply":"2023-01-31T09:24:28.930899Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"dist_X, dist_Y, dist_Z\n#length along each axis","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:27:07.181932Z","iopub.execute_input":"2023-01-31T09:27:07.183152Z","iopub.status.idle":"2023-01-31T09:27:07.189403Z","shell.execute_reply.started":"2023-01-31T09:27:07.183089Z","shell.execute_reply":"2023-01-31T09:27:07.188351Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Aerial View\nfig, ax = plt.subplots()\nax.scatter(X, Y)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:42:22.137707Z","iopub.execute_input":"2023-01-31T09:42:22.138054Z","iopub.status.idle":"2023-01-31T09:42:22.304142Z","shell.execute_reply.started":"2023-01-31T09:42:22.138027Z","shell.execute_reply":"2023-01-31T09:42:22.302361Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Cross Section View\nfig, ax = plt.subplots()\nax.scatter(X, Z)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-01-31T09:56:08.456941Z","iopub.execute_input":"2023-01-31T09:56:08.458692Z","iopub.status.idle":"2023-01-31T09:56:08.616185Z","shell.execute_reply.started":"2023-01-31T09:56:08.458512Z","shell.execute_reply":"2023-01-31T09:56:08.615253Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}