| import pandas as pd | |
| import pyarrow.parquet as pq | |
| parquet_file_path = './output_chunk_0.parquet' # 読み込むParquetファイルのパスを指定 | |
| # Parquetファイルを読み込む | |
| table = pq.read_table(parquet_file_path) | |
| # PyArrowのTableをPandasのDataFrameに変換 | |
| df = table.to_pandas() | |
| # 読み込んだデータを表示(例: 最初の10行を表示) | |
| print(df.head(10)) | |