Hugging Face · Datasets
Filter rows
Keep only rows that satisfy a condition.
ds = ds.filter(lambda row: len(row["text"]) > 50)
Official Hugging Face documentation
Hugging Face · Datasets
Keep only rows that satisfy a condition.
ds = ds.filter(lambda row: len(row["text"]) > 50)
Official Hugging Face documentation
Was this page helpful?