Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list columns in pandas df

# Import pandas package 
import pandas as pd 
    
# making data frame 
data = pd.read_csv("nba.csv") 
    
# list(data) or
list(data.columns)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #list #columns #pandas #df
ADD COMMENT
Topic
Name
6+8 =