TabularRow[data]
represents a single row of a Tabular object.
TabularRow[data,{key1,key2,…}]
sets keyi as the name of column i of the tabular row object.
TabularRow
TabularRow[data]
represents a single row of a Tabular object.
TabularRow[data,{key1,key2,…}]
sets keyi as the name of column i of the tabular row object.
Details and Options
- TabularRow is typically used to represent a row in a Tabular object. It contains column names and types.
- Possible forms of input data in TabularRow include:
-
<|col1val1,col2val2,…|> association of values vali with column keys coli {val1,val2,…} list of values - TabularRow[{val1,val2,…},{col1,col2,…}] is equivalent to TabularRow[<|col1val1,col2val2,…|>].
- The Normal form of TabularRow is a list of values when no column names are specified or an association of values when columns are named.
Examples
open all close allBasic Examples (3)
Create a TabularRow object from an association:
TabularRow[<|"col1" -> 7, "col2" -> "cat", "col3" -> -3.1|>]Check the types automatically assigned to each column:
ColumnTypes[%]Create a TabularRow object from a list of values:
TabularRow[{7, "cat", -3.1}]The entries of the row do not have column keys:
ColumnKeys[%]Extract a tabular row from a Tabular object:
Tabular[{<|"a" -> 1, "b" -> 2, "c" -> 3|>, <|"a" -> 4, "b" -> 5, "c" -> 6|>}]%[[1]]Normalize into an association:
Normal[%]Scope (5)
Create a TabularRow with named columns:
row1 = TabularRow[<|"c1" -> 3, "c2" -> "dog", "c3" -> True|>]Alternatively, specify the column keys separately:
row2 = TabularRow[{3, "dog", True}, {"c1", "c2", "c3"}]row3 = TabularRow[{3, "dog", True}, <|"ColumnKeys" -> {"c1", "c2", "c3"}|>]row1 === row2 === row3A TabularRow object can be empty:
TabularRow[{}]TabularRow[<||>]Construct a TabularRow object from a numeric vector, specifying column types:
TabularRow[<|"a" -> 1, "b" -> 2, "c" -> 3|>, <|"ColumnTypes" -> {"Integer64", "Integer32", "Integer16"}|>]ColumnTypes[%]Mix number, string and Boolean types:
TabularRow[{1, "dog", True}, <|"ColumnTypes" -> {"Integer8", "String", "Boolean"}|>]ColumnTypes[%]The elements of a TabularRow object can be lists:
row = TabularRow[{{1, 2}, {"a", "b"}, {True, False}}]ColumnTypes[row]Applications (1)
Take a list of TabularRow expressions:
data = Transpose@{RandomReal[1, 3], RandomDate[3], RandomChoice[Alphabet[], 3]}rows = TabularRow /@ dataBuild a Tabular object from those rows:
Tabular[rows]Alternatively, use ToTabular:
ToTabular[rows, "Rows"]Normalize to get the data back:
Normal[%]Properties & Relations (2)
Check validity of a TabularRow object with TabularRowQ:
TabularRow[Alphabet[]]TabularRowQ[%]A TabularRow object is not a valid one-row Tabular object:
row = TabularRow[{1, "a", True}]{TabularRowQ[row], TabularQ[row]}Construct a Tabular object with only that row:
tab = Tabular[{row}]{TabularRowQ[tab], TabularQ[tab]}See Also
Related Guides
History
Text
Wolfram Research (2025), TabularRow, Wolfram Language function, https://reference.wolfram.com/language/ref/TabularRow.html.
CMS
Wolfram Language. 2025. "TabularRow." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TabularRow.html.
APA
Wolfram Language. (2025). TabularRow. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TabularRow.html
BibTeX
@misc{reference.wolfram_2026_tabularrow, author="Wolfram Research", title="{TabularRow}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/TabularRow.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tabularrow, organization={Wolfram Research}, title={TabularRow}, year={2025}, url={https://reference.wolfram.com/language/ref/TabularRow.html}, note=[Accessed: 13-June-2026]}