{"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":"### Imports","metadata":{}},{"cell_type":"code","source":"import pyarrow.parquet as pq\nimport pandas as pd","metadata":{"execution":{"iopub.status.busy":"2023-04-03T15:45:26.456632Z","iopub.execute_input":"2023-04-03T15:45:26.457888Z","iopub.status.idle":"2023-04-03T15:45:26.462326Z","shell.execute_reply.started":"2023-04-03T15:45:26.457842Z","shell.execute_reply":"2023-04-03T15:45:26.461311Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"### Functions","metadata":{}},{"cell_type":"code","source":"def read_parquet_file(file_path):\n    \"\"\"\n    Reads a parquet file and returns a Pandas DataFrame.\n\n    Parameters:\n        file_path (str): The path to the parquet file to be read.\n\n    Returns:\n        pandas.DataFrame: A DataFrame containing the data from the parquet file.\n    \"\"\"\n    # Open the parquet file\n    parquet_file = pq.ParquetFile(file_path)\n\n    # Read the data from the file into a Pandas DataFrame\n    data = parquet_file.read().to_pandas()\n\n    return data","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-04-03T15:45:26.465005Z","iopub.execute_input":"2023-04-03T15:45:26.465887Z","iopub.status.idle":"2023-04-03T15:45:26.474956Z","shell.execute_reply.started":"2023-04-03T15:45:26.465850Z","shell.execute_reply":"2023-04-03T15:45:26.474087Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"### Implementation","metadata":{}},{"cell_type":"code","source":"filepath = \"/kaggle/input/asl-signs/train_landmark_files/16069/100015657.parquet\"\ndata = read_parquet_file(filepath)\ndata","metadata":{"execution":{"iopub.status.busy":"2023-04-03T15:45:26.476157Z","iopub.execute_input":"2023-04-03T15:45:26.476679Z","iopub.status.idle":"2023-04-03T15:45:26.529449Z","shell.execute_reply.started":"2023-04-03T15:45:26.476645Z","shell.execute_reply":"2023-04-03T15:45:26.528294Z"},"trusted":true},"execution_count":null,"outputs":[]}]}