Lista nomi variabili categoriche

PHOTO EMBED

Thu Nov 25 2021 09:14:50 GMT+0000 (Coordinated Universal Time)

Saved by @MatteoK #python

df.select_dtypes(include=['object', 'category']).columns
content_copyCOPY

Ritorna la lista delle colonne categoriche

https://stackoverflow.com/questions/53911645/get-list-of-column-names-having-either-object-or-categorical-dtype