Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
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