ray/doc/source/ray-overview/doc_test/ray_data.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
261 B
Python
Raw Normal View History

import ray
# TODO: make this copy-paste-able
# read a local CSV file
csv_path = "path/to/file.csv"
ds = ray.data.read_csv(csv_path)
# read parquet from S3
parquet_path = "s3://ursa-labs-taxi-data/2019/06/data.parquet"
ds = ray.data.read_parquet(parquet_path)