Worst Day problem
The statement of one of the tasks of the Python for Data Science course is as follows: "Given the COVID data, find the day with maximum cases in a given month. Take a *month name* as input and output the row that corresponds to the day with the maximum number of cases in that month." Okay, actually, it's easy. I decided to use grouping, so I wrote the following code: https://code.sololearn.com/c22K70hZRp59/?ref=app You can make sure that if you enter the name of the month correctly, this program works correctly. But when I try to submit this solution, an error occurs: "The code is trying to access the column "cases" in the dataframe, but it is using the wrong syntax. The correct syntax would be df.loc[m]." But the KeyError in my program occurs if and only if the month is entered incorrectly! Then I decided to find out what exactly the tester program sends as input to my program. Let's modify the code a bit: https://code.sololearn.com/cZIS9C1GfrTP/?ref=app (Yes, I assumed the tester program in 5th test case was sending the month number instead of the name.) Here is the error I got: "The code is trying to convert the string "Asd" into an integer, but this is not possible." In this regard, the question: Asd - what is this month?) And what output is expected from my program if the input does not match the name of any month?