{"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":"Used to display how the submission is made","metadata":{}},{"cell_type":"code","source":"import pandas as pd\nimport numpy as np","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df = pd.read_parquet(\"/kaggle/input/icecube-neutrinos-in-deep-ice/test_meta.parquet\").reset_index()\n\ndef make_prediction():\n    return [1.12, 1.34]\n    \ndf[\"prediction\"] = df.apply(lambda x: make_prediction(), axis=1)\ndf[\"azimuth\"] = df[\"prediction\"].apply(lambda x: x[0])\ndf[\"zenith\"] = df[\"prediction\"].apply(lambda x: x[1])\n\n# event_id,azimuth,zenith\ndf = df[[\"event_id\", \"azimuth\", \"zenith\"]]\ndf","metadata":{"execution":{"iopub.status.busy":"2023-02-14T13:10:34.811026Z","iopub.execute_input":"2023-02-14T13:10:34.811497Z","iopub.status.idle":"2023-02-14T13:10:34.847995Z","shell.execute_reply.started":"2023-02-14T13:10:34.811454Z","shell.execute_reply":"2023-02-14T13:10:34.846594Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df = df.sort_values([\"event_id\"])\ndf.to_csv('submission.csv', index=False)\n!head submission.csv","metadata":{"execution":{"iopub.status.busy":"2023-02-14T13:10:35.141476Z","iopub.execute_input":"2023-02-14T13:10:35.142040Z","iopub.status.idle":"2023-02-14T13:10:36.272434Z","shell.execute_reply.started":"2023-02-14T13:10:35.141992Z","shell.execute_reply":"2023-02-14T13:10:36.270342Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}