Answers for "huggingface dataset from pandas"

0

huggingface dataset from pandas

from datasets import Dataset
import pandas as pd
df = pd.DataFrame({"a": [1, 2, 3]})
dataset = Dataset.from_pandas(df)
Posted by: Guest on June-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language