Run ❯
Get your
own Python
server
Result Size:
625 x 565
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
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