Pandas > Add new columns

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,100,size=(5, 3)), columns=['C1','C2','C3'])
print ("dataframe")
print (dataframe)
print ("dataframe added new columns")
dataframe['C1p10']=dataframe['C1'] + 10
dataframe['C101']=101
print (dataframe)
dataframe
   C1  C2  C3
0  14  81  99
1  33  89  95
2  60  27  21
3  19  85  44
4  20  62  57
dataframe added new columns
   C1  C2  C3  C1p10  C101
0  14  81  99     24   101
1  33  89  95     43   101
2  60  27  21     70   101
3  19  85  44     29   101
4  20  62  57     30   101