import pandas as pd
data = [[-50, 40, 30], [-1, 2, -2]]
df = pd.DataFrame(data)
print(df.abs())
0 1 2 0 50 40 30 1 1 2 2