Pandas > Apply function to each element

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,100,size=(5, 2)), columns=['C1','C2'])
print ("dataframe")
print (dataframe)
function_result = dataframe.applymap(lambda x: x*10)
print ("apply result")
print (function_result)
dataframe
   C1  C2
0  54  11
1  31  59
2  81  76
3  42  46
4   8  24
apply result
    C1   C2
0  540  110
1  310  590
2  810  760
3  420  460
4   80  240