Hugging Face · Datasets

Load a local file

Load a CSV, JSON or Parquet file as a dataset.

ds = load_dataset("csv", data_files="data.csv")

Official Hugging Face documentation

More datasets commands

All datasets commands · Hugging Face cheatsheet

Was this page helpful?