dfr into-nu for dataframe

Converts a section of the dataframe into nushell Table.

Signature

> dfr into-nu --rows --tail

Parameters

  • --rows {number}: number of rows to be shown
  • --tail (-t): shows tail rows

Examples

Shows head rows from dataframe

> [[a b]; [1 2] [3 4]] | dfr into-df | dfr into-nu
╭───┬───┬───╮
│ # │ a │ b │
├───┼───┼───┤
│ 012 │
│ 134 │
╰───┴───┴───╯

Shows tail rows from dataframe

> [[a b]; [1 2] [5 6] [3 4]] | dfr into-df | dfr into-nu -t -n 1
╭───┬───┬───╮
│ # │ a │ b │
├───┼───┼───┤
│ 234 │
╰───┴───┴───╯

dfr into-nu for expression

Convert expression into a nu value for access and exploration.

Signature

> dfr into-nu

Examples

Convert a col expression into a nushell value

> dfr col a | dfr into-nu
╭───────┬────────╮
│ exprcolumn │
│ value │ a      │
╰───────┴────────╯