Setting dataset feature value as numpy array

lhoestq
Tue, 14 Nov 2023 12:58:43 +0000

You can do

ds = ds.with_format("np", columns=["audio"], output_all_columns=True)

The audio column is then formatted as numpy arrays, and the other columns are unformatted