# adding column name to the respective columns df.columns =['Name', 'Code', 'Age', 'Weight'] # displaying the DataFrame print(df)