Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

matrix into-nu for conversions

Convert a matrix to a nushell table (list of lists by default).

Signature

> matrix into-nu {flags}

Flags

  • --as-records, -r: Output as a list of records with auto-generated column names

Input/output types:

inputoutput
matrixtable

Examples

Convert an identity matrix to a nushell table

> matrix identity 2 | matrix into-nu | to nuon
[[1.0, 0.0], [0.0, 1.0]]

Convert a matrix to records

> matrix identity 2 | matrix into-nu --as-records | to nuon
[["col0", "col1"]; [1.0, 0.0], [0.0, 1.0]]