Answers for "Selecting columns based on their column name pandas dataframe"

1

how to find columns of a dataframe

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

python pandas return column name of a specific column

# Basic syntax:
list(df.columns)[column_number]
# This returns the column name of the column of interest
Posted by: Guest on November-05-2020

Code answers related to "Selecting columns based on their column name pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language