📜  gcsfs pd.read_parquet - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:41.464000             🧑  作者: Mango

代码示例1
import gcsfs
import pyarrow.parquet as pq

gs_directory_path = "path to GS directory \
e.g. 'gs:///' (without ending /)"

gs = gcsfs.GCSFileSystem()
arrow_df = pq.ParquetDataset(gs_directory_path, filesystem=gs)
df = arrow_df.read_pandas().to_pandas()