Skip to content

Instantly share code, notes, and snippets.

@Waflon
Last active January 19, 2024 15:14
Show Gist options
  • Save Waflon/b8bdbf7301a1d736d38ba181aa0fc130 to your computer and use it in GitHub Desktop.
Save Waflon/b8bdbf7301a1d736d38ba181aa0fc130 to your computer and use it in GitHub Desktop.
DataSet_to_DataFrame
import pandas as pd
from datasets import load_dataset
dataset = load_dataset('Waflon/FAQ', split="train") # Loading the SQuAD dataset from huggingface.
df = pd.DataFrame(dataset)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment