WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

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
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
See Also
Related Guides
History
Cite this Page

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 all

Basic Examples  (3)

Test whether an object is a valid TabularColumn object:

Wolfram Language code: TabularColumn[{1, 2, 3, 4}]
Wolfram Language code: TabularColumnQ[%]

Test whether an object is a valid TabularColumn object:

Wolfram Language code: TabularColumn[Quantity[{1., 2., 3., 4.}, "Meters"]]
Wolfram Language code: TabularColumnQ[%]

Test whether an object is a valid TabularColumn object:

Wolfram Language code: TabularColumn[Alphabet[]]
Wolfram Language code: TabularColumnQ[%]

Test whether the elements of the tabular column are strings:

Wolfram Language code: TabularColumnQ[%%, "String"]

Scope  (6)

Check validity of TabularColumn objects of different types:

Wolfram Language code: TabularColumn[{True, False, True}]//TabularColumnQ
Wolfram Language code: TabularColumn[{5, 2, 6, 3}]//TabularColumnQ

TabularColumnQ gives False for anything that is not a TabularColumn object:

Wolfram Language code: TabularColumnQ[x]
Wolfram Language code: TabularColumnQ[{1, 2, 3}]
Wolfram Language code: TabularColumnQ[{{1}, {2}, {3}}]
Wolfram Language code: TabularColumnQ[TabularRow[{1, 2, 3}]]

TabularColumn objects can be empty:

Wolfram Language code: TabularColumn[{}]
Wolfram Language code: TabularColumnQ[%]

A TabularColumn object can contain list elements:

Wolfram Language code: TabularColumn[{{1, 2}, {3, 4}, {5, 6}}]
Wolfram Language code: TabularColumnQ[%]

It is not a Tabular object:

Wolfram Language code: TabularQ[%%]

Check the type of a TabularColumn object:

Wolfram Language code: col = TabularColumn[{1, 2, 3, 4}]
Wolfram Language code: TabularColumnQ[col, "Integer64"]
Wolfram Language code: TabularColumnQ[col, "Integer32"]
Wolfram Language code: TabularColumnQ[col, "Real64"]

Check whether this TabularColumn object has an integer form of element type:

Wolfram Language code: col = TabularColumn[{1, 2, 3, 4}]
Wolfram Language code: TabularColumnQ[col, "Integer*"]

Check that the type belongs to the "Integers" type class:

Wolfram Language code: TabularColumnQ[col, "Integers"]

Applications  (2)

Check if a part of a Tabular object is a valid TabularColumn :

Wolfram Language code: tab = Tabular[{{"a", x, 7}, {"b", y, 9}}, {"c1", "c2", "c3"}]
Wolfram Language code: tab[All, 2]//TabularColumnQ
Wolfram Language code: tab[All, "c1"]//TabularColumnQ

Take a TabularColumn of dates given as strings:

Wolfram Language code: 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"]];
Wolfram Language code: tcol[[1]]

Test if the conversion to "Date" type yields a valid TabularColumn :

Wolfram Language code: TabularColumn[tcol, "Date"]//TabularColumnQ

Properties & Relations  (2)

TabularColumnQ gives False for a Tabular object with a single column:

Wolfram Language code: tab = Tabular[{{1}, {2}, {3}}]
Wolfram Language code: TabularColumnQ[tab]

Use TabularQ to validate Tabular objects of any dimensions:

Wolfram Language code: TabularQ[tab]

Extract the column of that Tabular object:

Wolfram Language code: col = tab[[All, 1]]
Wolfram Language code: TabularColumnQ[col]

Columns and rows are not Tabular objects:

Wolfram Language code: TabularQ[col]

TabularColumnQ validates TabularColumn objects:

Wolfram Language code: TabularColumnQ[TabularColumn[{1, 2, 3, 4}]]

TabularRowQ validates TabularRow objects:

Wolfram Language code: TabularRowQ[TabularRow[{1, 2, 3, 4}]]
Wolfram Research (2025), TabularColumnQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TabularColumnQ.html.

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: 15-August-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: 15-August-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /