TabularColumnQ[tcol]
yields True if tcol is a valid TabularColumn object, and False otherwise.
TabularColumnQ[tcol,tsel]
yields True if the elements of tcol have type matching tsel, and False otherwise.
TabularColumnQ
TabularColumnQ[tcol]
yields True if tcol is a valid TabularColumn object, and False otherwise.
TabularColumnQ[tcol,tsel]
yields True if the elements of tcol have type matching tsel, and False otherwise.
Details
- TabularColumnQ tests whether an input is a valid TabularColumn object.
- For a string pattern spatt, TabularColumnQ[tcol,spatt] checks whether the elements of tcol have a type matching spatt.
- The column type selector tsel can have one of these forms:
-
tpatt type pattern tclass named class of types - Possible type patterns tpatt include cases like "Integer*" or "Quantity"::["Real64",_].
- Possible type classes tclass include:
-
"Numbers" number types "MachineNumbers" machine-sized number types "Reals" real-valued types, including integers "MachineReals" machine-sized real-valued types, including integers "Integers" integer types "MachineIntegers" machine-sized integer types "FloatingPoint" numbers with floating-point representation "MachineFloatingPoint" machine-sized real and complex numbers "FloatingPointReals" real numbers with floating-point representation "MachineFloatingPointReals" machine-sized real numbers "FloatingPointComplexes" complex numbers with floating-point representation "Lists" each element is a list
Examples
open all close allBasic Examples (3)
Test whether an object is a valid TabularColumn object:
TabularColumn[{1, 2, 3, 4}]TabularColumnQ[%]Test whether an object is a valid TabularColumn object:
TabularColumn[Quantity[{1., 2., 3., 4.}, "Meters"]]TabularColumnQ[%]Test whether an object is a valid TabularColumn object:
TabularColumn[Alphabet[]]TabularColumnQ[%]Test whether the elements of the tabular column are strings:
TabularColumnQ[%%, "String"]Scope (6)
Check validity of TabularColumn objects of different types:
TabularColumn[{True, False, True}]//TabularColumnQTabularColumn[{5, 2, 6, 3}]//TabularColumnQTabularColumnQ gives False for anything that is not a TabularColumn object:
TabularColumnQ[x]TabularColumnQ[{1, 2, 3}]TabularColumnQ[{{1}, {2}, {3}}]TabularColumnQ[TabularRow[{1, 2, 3}]]TabularColumn objects can be empty:
TabularColumn[{}]TabularColumnQ[%]A TabularColumn object can contain list elements:
TabularColumn[{{1, 2}, {3, 4}, {5, 6}}]TabularColumnQ[%]It is not a Tabular object:
TabularQ[%%]Check the type of a TabularColumn object:
col = TabularColumn[{1, 2, 3, 4}]TabularColumnQ[col, "Integer64"]TabularColumnQ[col, "Integer32"]TabularColumnQ[col, "Real64"]Check whether this TabularColumn object has an integer form of element type:
col = TabularColumn[{1, 2, 3, 4}]TabularColumnQ[col, "Integer*"]Check that the type belongs to the "Integers" type class:
TabularColumnQ[col, "Integers"]Applications (2)
Check if a part of a Tabular object is a valid TabularColumn:
tab = Tabular[{{"a", x, 7}, {"b", y, 9}}, {"c1", "c2", "c3"}]tab[All, 2]//TabularColumnQtab[All, "c1"]//TabularColumnQTake a TabularColumn of dates given as strings:
tcol = TabularColumn[Association["Data" -> {{0, {0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104,
112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248,
256, 264, 272, 280, 288, 296, 304, 312, 320, 32 ... 14/1/72014/1/72014/1/72014/1/72014/1/72014/1/82014/1/82014/1/82014/1/8\
2014/1/82014/1/82014/1/92014/1/92014/1/92014/1/9"}, {}, DataStructure["BitVector",
{"Data" -> ByteArray["////////7w=="], "Capacity" -> 53}]}, "ElementType" -> "String"]];tcol[[1]]Test if the conversion to "Date" type yields a valid TabularColumn:
TabularColumn[tcol, "Date"]//TabularColumnQProperties & Relations (2)
TabularColumnQ gives False for a Tabular object with a single column:
tab = Tabular[{{1}, {2}, {3}}]TabularColumnQ[tab]Use TabularQ to validate Tabular objects of any dimensions:
TabularQ[tab]Extract the column of that Tabular object:
col = tab[[All, 1]]TabularColumnQ[col]Columns and rows are not Tabular objects:
TabularQ[col]TabularColumnQ validates TabularColumn objects:
TabularColumnQ[TabularColumn[{1, 2, 3, 4}]]TabularRowQ validates TabularRow objects:
TabularRowQ[TabularRow[{1, 2, 3, 4}]]See Also
Related Guides
History
Text
Wolfram Research (2025), TabularColumnQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TabularColumnQ.html.
CMS
Wolfram Language. 2025. "TabularColumnQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TabularColumnQ.html.
APA
Wolfram Language. (2025). TabularColumnQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TabularColumnQ.html
BibTeX
@misc{reference.wolfram_2026_tabularcolumnq, author="Wolfram Research", title="{TabularColumnQ}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/TabularColumnQ.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tabularcolumnq, organization={Wolfram Research}, title={TabularColumnQ}, year={2025}, url={https://reference.wolfram.com/language/ref/TabularColumnQ.html}, note=[Accessed: 13-June-2026]}