{"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":"**Created by Sanskar Hasija**\n\n**Load Parquet Files with Low Memory🤖**\n\n**26 May 2021**\n","metadata":{}},{"cell_type":"markdown","source":"#### Dataset link - https://www.kaggle.com/datasets/odins0n/amex-parquet\n##### Read about parquet files here: https://databricks.com/glossary/what-is-parquet","metadata":{}},{"cell_type":"markdown","source":"## Imports ","metadata":{}},{"cell_type":"code","source":"import pandas as pd \nimport gc","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-05-25T21:28:51.899576Z","iopub.execute_input":"2022-05-25T21:28:51.900035Z","iopub.status.idle":"2022-05-25T21:28:51.928656Z","shell.execute_reply.started":"2022-05-25T21:28:51.899950Z","shell.execute_reply":"2022-05-25T21:28:51.927991Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Reading Train Parquet File","metadata":{}},{"cell_type":"code","source":"%%time\ntrain = pd.read_parquet('../input/amex-parquet/train_data.parquet')","metadata":{"execution":{"iopub.status.busy":"2022-05-25T19:52:15.894059Z","iopub.execute_input":"2022-05-25T19:52:15.894516Z","iopub.status.idle":"2022-05-25T19:52:23.627671Z","shell.execute_reply.started":"2022-05-25T19:52:15.89447Z","shell.execute_reply":"2022-05-25T19:52:23.626612Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.info()","metadata":{"execution":{"iopub.status.busy":"2022-05-25T19:52:23.631424Z","iopub.execute_input":"2022-05-25T19:52:23.631943Z","iopub.status.idle":"2022-05-25T19:52:23.657257Z","shell.execute_reply.started":"2022-05-25T19:52:23.631903Z","shell.execute_reply":"2022-05-25T19:52:23.656397Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.dtypes","metadata":{"execution":{"iopub.status.busy":"2022-05-25T19:52:23.659464Z","iopub.execute_input":"2022-05-25T19:52:23.660152Z","iopub.status.idle":"2022-05-25T19:52:23.680328Z","shell.execute_reply.started":"2022-05-25T19:52:23.660113Z","shell.execute_reply":"2022-05-25T19:52:23.679254Z"},"trusted":true},"execution_count":null,"outputs":[]}]}