Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = { "points": [5, 6, 4], "total": [50, 40, 20] } df = pd.DataFrame(data) print(df.mod(3))
points total 0 2 2 1 0 1 2 1 2