{"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":"import numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-03-11T05:27:50.647997Z","iopub.execute_input":"2023-03-11T05:27:50.649015Z","iopub.status.idle":"2023-03-11T05:27:50.681137Z","shell.execute_reply.started":"2023-03-11T05:27:50.648967Z","shell.execute_reply":"2023-03-11T05:27:50.680145Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df=pd.read_parquet('/kaggle/input/asl-signs/train_landmark_files/16069/100015657.parquet')\ndf","metadata":{"execution":{"iopub.status.busy":"2023-03-11T05:28:12.826928Z","iopub.execute_input":"2023-03-11T05:28:12.827314Z","iopub.status.idle":"2023-03-11T05:28:13.034135Z","shell.execute_reply.started":"2023-03-11T05:28:12.827278Z","shell.execute_reply":"2023-03-11T05:28:13.032916Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_new=df.drop(['z','row_id','type','landmark_index'],axis=1)\ndf_new","metadata":{"execution":{"iopub.status.busy":"2023-03-11T05:28:27.218624Z","iopub.execute_input":"2023-03-11T05:28:27.219074Z","iopub.status.idle":"2023-03-11T05:28:27.240645Z","shell.execute_reply.started":"2023-03-11T05:28:27.219031Z","shell.execute_reply":"2023-03-11T05:28:27.239006Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df1 = df_new.sort_values('frame').reset_index(drop=True)\nsplits = df1['frame'].ne(df1['frame'].shift()).loc[lambda x: x].index[1:]\nsplits","metadata":{"execution":{"iopub.status.busy":"2023-03-11T05:28:44.238697Z","iopub.execute_input":"2023-03-11T05:28:44.239148Z","iopub.status.idle":"2023-03-11T05:28:44.259722Z","shell.execute_reply.started":"2023-03-11T05:28:44.239108Z","shell.execute_reply":"2023-03-11T05:28:44.258206Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"arry=np.array(np.array_split(df1.drop(columns='frame').to_numpy(), splits))\narry ","metadata":{"execution":{"iopub.status.busy":"2023-03-11T05:29:00.648027Z","iopub.execute_input":"2023-03-11T05:29:00.648467Z","iopub.status.idle":"2023-03-11T05:29:00.665280Z","shell.execute_reply.started":"2023-03-11T05:29:00.648409Z","shell.execute_reply":"2023-03-11T05:29:00.663829Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"arry.shape","metadata":{"execution":{"iopub.status.busy":"2023-03-11T05:29:54.569563Z","iopub.execute_input":"2023-03-11T05:29:54.569993Z","iopub.status.idle":"2023-03-11T05:29:54.578340Z","shell.execute_reply.started":"2023-03-11T05:29:54.569954Z","shell.execute_reply":"2023-03-11T05:29:54.576975Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#De normalizing","metadata":{},"execution_count":null,"outputs":[]}]}