Obtener nombres de colum de DataFram como List Python
# Method 1
list(df)
# Method 2
df.columns.values.tolist()
# Method 3 - list comprehension
[col for col in df]
Connor
# Method 1
list(df)
# Method 2
df.columns.values.tolist()
# Method 3 - list comprehension
[col for col in df]