Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by www.marsja.se #
 
PREVIOUS NEXT
Tagged: #python #pandas #return #column #specific #column
ADD COMMENT
Topic
Name
1+5 =