huggingface / dataset-viewer

Backend that powers the dataset viewer on Hugging Face dataset pages through a public API.

Home Page:https://huggingface.co/docs/dataset-viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`StatisticsComputationError` for splits with 1 sample

polinaeterna opened this issue · comments

For splits with 1 row we might get
StatisticsComputationError: Unexpected result for column_name='audio': Some measures among minimum=694.0, maximum=694.0, mean=694.0, median=694.0, std=None are None but not all of them.
Because std for 1 sample is None and I made a check to allow this only if all samples in a split are equal to None.
example: https://huggingface.co/datasets/Aryelissa/LilFuub

A bit related to #2631