Question 12
You are working with two datasets and trying to combine them using the following code:
from datasets import concatenate_datasets, load_dataset
ds1 = load_dataset("imdb", split="train[:4000]")ds2 = load_dataset("csv", data_files="reviews.csv")
combined_dataset = concatenate_datasets([ds1, ds2])Assume the following:
The ds1 dataset has columns: text (string), label (int).
The ds2 dataset has columns: review (string), sentiment (int).
Select all the correct statements.