ray/doc/source/ray-overview/doc_test/ray_data.py
Max Pumperla d6bff736f3
[docs] test ray.io snippets (#22822)
Tests all snippets we have on ray.io. There were some minor issues, which I'll fix upstream.

Signed-off-by: Max Pumperla <max.pumperla@googlemail.com>
2022-03-08 15:50:57 +00:00

10 lines
261 B
Python

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)