First Login Date
logins has columns player and day, where day is a date written like "2024-03-15" (year-month-day, so comparing the text also compares the dates). Return a dictionary mapping each player to their earliest day.
Example 1
logins {"player":["a","b","a"],"day":["2024-05-02","2024-01-10","2024-03-01"]}
returns {"a":"2024-03-01","b":"2024-01-10"}
a first logged in on 2024-03-01.
Constraints
- The tables are small
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Fix Name CapitalsEasy
- Grade LettersEasy
- Ids in Only One TableEasy
- InitialsEasy
- Invalid TweetsEasy
- Latest Row per PlayerEasy
- Longest TitleEasy
- Make SlugsEasy