From Pandas Dataframe to Huggingface Dataset

Hi @mariosasko! What did you mean by the second approach?

dataset = Dataset.from_pandas(df, split='train')

still doesn’t work in 2024. Do I still have to create it with something like this:

dataset = DatasetDict({"train": tds, "val": vds})

?

1 Like