{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.11.11","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":102335,"databundleVersionId":12518947,"sourceType":"competition"},{"sourceId":12078491,"sourceType":"datasetVersion","datasetId":7603374}],"dockerImageVersionId":31040,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"- You'll probably read train csv many times over course of competition. You can save ~20s by using feather extension.\n- There are faster methods, but i have been using feather as it requires minimal code change, and keeps train data as it is.","metadata":{}},{"cell_type":"code","source":"import pandas as pd","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2025-06-06T09:32:22.383130Z","iopub.execute_input":"2025-06-06T09:32:22.383370Z","iopub.status.idle":"2025-06-06T09:32:25.071900Z","shell.execute_reply.started":"2025-06-06T09:32:22.383349Z","shell.execute_reply":"2025-06-06T09:32:25.070978Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"%%timeit\ntrain = pd.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train.csv')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-06-06T09:32:25.074336Z","iopub.execute_input":"2025-06-06T09:32:25.074741Z","iopub.status.idle":"2025-06-06T09:35:50.382746Z","shell.execute_reply.started":"2025-06-06T09:32:25.074718Z","shell.execute_reply":"2025-06-06T09:35:50.381589Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"%%timeit\ntrain = pd.read_feather('/kaggle/input/cmi2025-feather/train.feather')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-06-06T09:35:50.383949Z","iopub.execute_input":"2025-06-06T09:35:50.384272Z","iopub.status.idle":"2025-06-06T09:36:06.390356Z","shell.execute_reply.started":"2025-06-06T09:35:50.384218Z","shell.execute_reply":"2025-06-06T09:36:06.389463Z"}},"outputs":[],"execution_count":null}]}