df = pd.DataFrame([[4, 9]] * 3, columns=['A', 'B']) df.apply(np.sqrt) # A B #0 2.0 3.0 #1 2.0 3.0 #2 2.0 3.0