machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

[DataFrame] Head should return min(DF length, param)

Open luisquintanilla opened this issue 3 years ago • 0 comments

Problem

Given a DataFrame with 3 rows, calling Head(5) throws an error.

image

Suggested solution

Head should return the minimum of the number provided as a parameter and the length of a DataFrame

luisquintanilla avatar Aug 05 '22 17:08 luisquintanilla