Hidden cases
Hi all! I have done a challenge in Pandas, 18.2 Python for Data Science https://www.sololearn.com/learning/1161 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. You can filter the DataFrame for the given month first, and then select the row with the maximum cases. Important: The output should be a DataFrame, which includes all the columns. For example, for the month of February, the expected result would be: cases deaths month date 2020-02-26 15 0 February Here is my code>>> import pandas as pd df = pd.read_csv("/usercode/files/ca-covid.csv") df.drop('state', axis=1, inplace=True) df['date'] = pd.to_datetime(df['date'], format="%d.%m.%y") df['month'] = df['date'].dt.month_name() df.set_index('date', inplace=True) by_month = df.groupby('month') month_df = by_month.get_group(input()) sort_df = month_df.sort_values(by=['cases']) print(sort_df.tail(1)) The output is correct but there is one hidden case and I could not get through it because it is hidden... What say you? Why cases are hidden for what purpose?