Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get dataframe column names

# Import pandas package 
import pandas as pd 
    
# making data frame 
data = pd.read_csv("nba.csv") 
  
# iterating the columns
for col in data.columns:
    print(col)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #dataframe #column #names
ADD COMMENT
Topic
Name
3+7 =