Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pandas give column names

# adding column name to the respective columns
df.columns =['Name', 'Code', 'Age', 'Weight']
  
# displaying the DataFrame
print(df)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #pandas #give #column #names
ADD COMMENT
Topic
Name
9+2 =