{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pandas as pd\nimport seaborn as sns\npd.set_option('display.max_rows', 100)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-09-07T05:28:48.947588Z","iopub.execute_input":"2023-09-07T05:28:48.947934Z","iopub.status.idle":"2023-09-07T05:28:48.952489Z","shell.execute_reply.started":"2023-09-07T05:28:48.947907Z","shell.execute_reply":"2023-09-07T05:28:48.951596Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_events = pd.read_csv(\"/kaggle/input/child-mind-institute-detect-sleep-states/train_events.csv\")\ntrain_events = train_events.dropna()\ntrain_series = pd.read_parquet('/kaggle/input/child-mind-institute-detect-sleep-states/train_series.parquet')","metadata":{"execution":{"iopub.status.busy":"2023-09-07T05:28:49.825927Z","iopub.execute_input":"2023-09-07T05:28:49.826757Z","iopub.status.idle":"2023-09-07T05:28:49.858549Z","shell.execute_reply.started":"2023-09-07T05:28:49.826720Z","shell.execute_reply":"2023-09-07T05:28:49.857754Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_ = pd.merge(train_events, train_series, on = 'step', how = 'left')","metadata":{"execution":{"iopub.status.busy":"2023-09-07T05:30:14.817547Z","iopub.execute_input":"2023-09-07T05:30:14.817872Z","iopub.status.idle":"2023-09-07T05:30:45.179275Z","shell.execute_reply.started":"2023-09-07T05:30:14.817844Z","shell.execute_reply":"2023-09-07T05:30:45.178097Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sns.kdeplot(data=train_, x=\"anglez\", hue=\"event\", multiple=\"fill\");","metadata":{"execution":{"iopub.status.busy":"2023-09-07T05:34:39.345439Z","iopub.execute_input":"2023-09-07T05:34:39.345845Z","iopub.status.idle":"2023-09-07T05:34:54.757980Z","shell.execute_reply.started":"2023-09-07T05:34:39.345812Z","shell.execute_reply":"2023-09-07T05:34:54.755639Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sns.kdeplot(data=train_, x=\"enmo\", hue=\"event\", multiple=\"fill\");","metadata":{"execution":{"iopub.status.busy":"2023-09-07T05:34:20.868825Z","iopub.execute_input":"2023-09-07T05:34:20.869250Z","iopub.status.idle":"2023-09-07T05:34:36.128453Z","shell.execute_reply.started":"2023-09-07T05:34:20.869215Z","shell.execute_reply":"2023-09-07T05:34:36.127335Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}],"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"}}