Keys
✖
Keys
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Get the keys in an association:

https://wolfram.com/xid/0y8w6c-bn4926

Get keys from a list of rules:

https://wolfram.com/xid/0y8w6c-cxf7cl

Keys automatically threads over lists:

https://wolfram.com/xid/0y8w6c-pfsehu

Wrap keys with Hold to prevent evaluation:

https://wolfram.com/xid/0y8w6c-yipf

Properties & Relations (5)Properties of the function, and connections to other functions
Keys are listed in the order of their appearance:

https://wolfram.com/xid/0y8w6c-cj1o4h

Keys automatically threads over lists, but not associations:

https://wolfram.com/xid/0y8w6c-llznyi

Keys returns time stamps for a TimeSeries input:

https://wolfram.com/xid/0y8w6c-hnyssz

https://wolfram.com/xid/0y8w6c-vk6a7a


https://wolfram.com/xid/0y8w6c-7pf4lj

Keys of a Tabular object returns row keys if key columns are specified:

https://wolfram.com/xid/0y8w6c-qkyqj6


https://wolfram.com/xid/0y8w6c-dgd8l7


https://wolfram.com/xid/0y8w6c-qkcio9


https://wolfram.com/xid/0y8w6c-tocgl2

For a Tabular object without key columns, Keys returns None:

https://wolfram.com/xid/0y8w6c-wd656u


https://wolfram.com/xid/0y8w6c-yfhrb9

Wolfram Research (2014), Keys, Wolfram Language function, https://reference.wolfram.com/language/ref/Keys.html (updated 2025).
Text
Wolfram Research (2014), Keys, Wolfram Language function, https://reference.wolfram.com/language/ref/Keys.html (updated 2025).
Wolfram Research (2014), Keys, Wolfram Language function, https://reference.wolfram.com/language/ref/Keys.html (updated 2025).
CMS
Wolfram Language. 2014. "Keys." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/Keys.html.
Wolfram Language. 2014. "Keys." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/Keys.html.
APA
Wolfram Language. (2014). Keys. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Keys.html
Wolfram Language. (2014). Keys. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Keys.html
BibTeX
@misc{reference.wolfram_2025_keys, author="Wolfram Research", title="{Keys}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/Keys.html}", note=[Accessed: 16-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_keys, organization={Wolfram Research}, title={Keys}, year={2025}, url={https://reference.wolfram.com/language/ref/Keys.html}, note=[Accessed: 16-April-2025
]}