enable to-nu to include the whole dfr if rows is not specified (#4753)

This commit is contained in:
Darren Schroeder
2022-03-06 09:04:41 -06:00
committed by GitHub
parent 69fd777120
commit 5ae5ef5146
2 changed files with 10 additions and 1 deletions

View File

@@ -71,7 +71,12 @@ fn command(
let values = if tail {
df.tail(rows, call.head)?
} else {
df.head(rows, call.head)?
// if rows is specified, return those rows, otherwise return everything
if rows.is_some() {
df.head(rows, call.head)?
} else {
df.head(Some(df.height()), call.head)?
}
};
let value = Value::List {