is an option for SemanticImport and related functions that specifies how many of the initial rows should be considered part of a column header.
HeaderLines
is an option for SemanticImport and related functions that specifies how many of the initial rows should be considered part of a column header.
Examples
Basic Examples (2)
Control the number of lines of input used in a header key:
SemanticImportString["a
b
c", Automatic, "NamedColumns", HeaderLines -> 0]SemanticImportString["a
b
c", Automatic, "NamedColumns", HeaderLines -> 1]SemanticImportString["a
b
c", Automatic, "NamedColumns", HeaderLines -> 2]The lines to use as headers are determined after the processing of other options:
SemanticImportString["a
b
c", Automatic, "NamedColumns", HeaderLines -> 1, ExcludedLines -> {1}]See Also
History
Text
Wolfram Research (2014), HeaderLines, Wolfram Language function, https://reference.wolfram.com/language/ref/HeaderLines.html.
CMS
Wolfram Language. 2014. "HeaderLines." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HeaderLines.html.
APA
Wolfram Language. (2014). HeaderLines. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HeaderLines.html
BibTeX
@misc{reference.wolfram_2026_headerlines, author="Wolfram Research", title="{HeaderLines}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/HeaderLines.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_headerlines, organization={Wolfram Research}, title={HeaderLines}, year={2014}, url={https://reference.wolfram.com/language/ref/HeaderLines.html}, note=[Accessed: 12-June-2026]}