Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rows = list(range(5)) + [354, 765]
- rows
- summer.iloc[rows]
- #################################
- col = summer.columns[:3].to_list() + ["Gender", "Event"]
- col
- summer.loc[:, col]
- #################################
- summer.loc[[200, 300], ["Athlete", "Medal"]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement