how to square a column in pandas code example Example: squre value of a column pandas df = pd.DataFrame({'a': range(0,100)}) np.square(df) np.power(df, 2)