Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python select columns names from dataframe

# 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.analyticslane.com #
 
PREVIOUS NEXT
Tagged: #python #select #columns #names #dataframe
ADD COMMENT
Topic
Name
2+8 =