Answers for "pandas get headers"

7

pd dataframe get column names

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

how to find columns of a dataframe

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

Python Answers by Framework

Browse Popular Code Answers by Language