import numpy as np
import pandas as pd
df = pd.DataFrame({"Name": ["Tom", "Mike", "Tiffany", "Varada", "Joel"],
"2018": [1, 3, 4, 5, 3],
"2019": [2, 4, 3, 2, 1],
"2020": [5, 2, 4, 4, 3]})
df
Name | 2018 | 2019 | 2020 | |
---|---|---|---|---|
0 | Tom | 1 | 2 | 5 |
1 | Mike | 3 | 4 | 2 |
2 | Tiffany | 4 | 3 | 4 |
3 | Varada | 5 | 2 | 4 |
4 | Joel | 3 | 1 | 3 |