Get-Line-&-Column-Count
Command Description
Return line count and column count in an array, in the form of [Line count, Column count]
Command Prototype
arrayShape = Datatable.GetDataTableShape(dtTable)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
dtTable | True | expression | objDatatable | The data table to be filtered |
return
arrayShape,The variable used to save the output of the command.
Demo
aryData = [["a", 1], ["b", 2], ["c", 3], ["d", 1]]
aryColumns = ["letter", "number"]
objDatatable = Datatable.BuildDataTable(aryData,aryColumns)
arrayShape = Datatable.GetDataTableShape(objDatatable)
TracePrint(arrayShape)
// [4,2]