Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = { "Women": [125, 230, 412], "Men": [219, 185, 452] } df = pd.DataFrame(data) print(df.eval("Women + Men"))
0 1 2 0 NaN NaN NaN 1 3.0 -3.0 -3.0 2 -4.0 5.0 -5.0