{"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\n# import numpy as np # linear algebra\n# import 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\n# import os\n# for 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","execution":{"iopub.status.busy":"2023-04-28T09:17:53.650380Z","iopub.execute_input":"2023-04-28T09:17:53.651611Z","iopub.status.idle":"2023-04-28T09:17:53.656430Z","shell.execute_reply.started":"2023-04-28T09:17:53.651564Z","shell.execute_reply":"2023-04-28T09:17:53.655377Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import os\nimport pandas as pd\n\nfile = \"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/test/tdcsfog/003f117e14.csv\"\n\ndata = pd.read_csv(file)\n\n\ndata.plot(subplots = True)\ndata.describe()","metadata":{"execution":{"iopub.status.busy":"2023-04-28T10:38:21.043800Z","iopub.execute_input":"2023-04-28T10:38:21.044332Z","iopub.status.idle":"2023-04-28T10:38:21.734342Z","shell.execute_reply.started":"2023-04-28T10:38:21.044281Z","shell.execute_reply":"2023-04-28T10:38:21.733306Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"res = pd.DataFrame( columns=[\"H\", \"T\", \"W\"])\ndir = \"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/train/tdcsfog\"\n\nfor file in os.listdir(dir):\n    path = os.path.join(dir, file)\n    df = pd.read_csv(path)\n    res.loc[file] = [df.StartHesitation.sum(), df.Turn.sum(), df.Walking.sum()] \n","metadata":{"execution":{"iopub.status.busy":"2023-04-28T10:16:42.415074Z","iopub.execute_input":"2023-04-28T10:16:42.415617Z","iopub.status.idle":"2023-04-28T10:16:54.598576Z","shell.execute_reply.started":"2023-04-28T10:16:42.415566Z","shell.execute_reply":"2023-04-28T10:16:54.597070Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"res.plot()","metadata":{"execution":{"iopub.status.busy":"2023-04-28T10:22:18.875007Z","iopub.execute_input":"2023-04-28T10:22:18.875539Z","iopub.status.idle":"2023-04-28T10:22:19.168990Z","shell.execute_reply.started":"2023-04-28T10:22:18.875485Z","shell.execute_reply":"2023-04-28T10:22:19.167704Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"res.astype(bool).sum(axis=0).plot(kind=\"bar\")","metadata":{"execution":{"iopub.status.busy":"2023-04-28T10:25:58.894740Z","iopub.execute_input":"2023-04-28T10:25:58.895605Z","iopub.status.idle":"2023-04-28T10:25:59.092818Z","shell.execute_reply.started":"2023-04-28T10:25:58.895547Z","shell.execute_reply":"2023-04-28T10:25:59.091619Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}