Table Output

Overview

The table output anchor @output table is used to output a variable's value in a table form. This is typically used with arrays and lists.

661661

Usage

arr = np.array([[1,2,3],[4,5,6],[7,8,9]])
# @output table data=arr

Named Arguments

None

Examples

Displaying A List As A Table

arr = [[1, 3],[8, 4], [5, 1]]
# @output table data=arr
664664

Displaying A Numpy Array As A Table

arr = np.array([[1, 3],[8, 4], [5, 1]])
# @output table data=arr
663663

Displaying A Range As A Table

arr = range(5)
# @output table data=arr
666666

Displaying A Numpy Range As A Table

arr = np.arange(5)
# @output table data=arr
666666

Did this page help you?