FunctionRacerProblemsRace

First Login Date

EasypandasPython

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

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems