Answers for "how to find column name in dataframe"

7

pd dataframe get column names

lst = data.columns.values     # data is dataframe
Posted by: Guest on April-27-2020
2

how to find columns of a dataframe

list(my_dataframe.columns.values)
Posted by: Guest on June-23-2020

Code answers related to "how to find column name in dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language