Pandas > Dataframe transform using lambda function

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,5,size=(5, 3)), columns=['C1','C2','C3'])
print ("dataframe")
print (dataframe)
new_dataframe = dataframe.transform(lambda x: x*100)
print ("transformed data")
print (new_dataframe)
dataframe
   C1  C2  C3
0   3   4   4
1   4   3   3
2   2   3   2
3   3   0   3
4   4   3   2
transformed data
    C1   C2   C3
0  300  400  400
1  400  300  300
2  200  300  200
3  300    0  300
4  400  300  200