TabularQ
Examples
open all close allBasic Examples (2)
Scope (4)
Validate a Tabular object with named columns:
Tabular[{{"a", x, 7}, {"b", y, 9}}, {"c1", "c2", "c3"}]TabularQ[%]Validate a Tabular object with anonymous columns:
Tabular[{{"a", x, 7}, {"b", y, 9}}]Tabular[%]TabularQ gives False for anything that is not a Tabular object:
TabularQ[x]TabularQ[ListPlot[{1, 2, 3}]]TabularQ[TabularColumn[{1, 2, 3}]]TabularQ[TabularRow[{1, 2, 3}]]Tabular objects can have zero rows:
tab = Tabular[{}]TabularQ[%]They can also have zero columns:
Tabular[{{}, {}}, {}]TabularQ[%]Applications (2)
Check if a part of a Tabular object is a valid Tabular object:
tab = Tabular[{{"a", x, 7}, {"b", y, 9}, {"c", z, 11}}, {"c1", "c2", "c3"}]tab[{3, 1}, ;; 2]//TabularQTest input to Tabular on a small part of data:
test = Take[Import["ExampleData/TreesOwnedByTheCityOfChampaign.csv"], 5]TabularQ[Tabular[test]]Import the whole data in Tabular form:
Import["ExampleData/TreesOwnedByTheCityOfChampaign.csv", "Tabular"]Properties & Relations (1)
TabularQ checks validity of a full Tabular object:
tab = Tabular[{{"a", 3.5}, {"b", -1.2}}, {"col1", "col2"}]TabularQ[tab]Use TabularRowQ to check validity of individual rows:
row = tab[[2]]{TabularRowQ[row], TabularQ[row]}Use TabularColumnQ to check validity of individual columns:
col = tab[[All, 2]]{TabularColumnQ[col], TabularQ[col]}Related Guides
History
Text
Wolfram Research (2025), TabularQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TabularQ.html.
CMS
Wolfram Language. 2025. "TabularQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TabularQ.html.
APA
Wolfram Language. (2025). TabularQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TabularQ.html
BibTeX
@misc{reference.wolfram_2026_tabularq, author="Wolfram Research", title="{TabularQ}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/TabularQ.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tabularq, organization={Wolfram Research}, title={TabularQ}, year={2025}, url={https://reference.wolfram.com/language/ref/TabularQ.html}, note=[Accessed: 15-June-2026]}