# python 3.x
import pandas as pd
import numpy as np
df = pd.DataFrame(data=np.random.randint(0, 10, (6,4)))
df.columns=["a", "b", "c", "d"]
print(df)
# adding column name to the respective columns
df.columns =['Name', 'Code', 'Age', 'Weight']
# displaying the DataFrame
print(df)
df = pd.DataFrame(d) #Uses default method for columns
print(df)