isds2020 icon indicating copy to clipboard operation
isds2020 copied to clipboard

0.4.5 and 0.4.6

Open MariusMMa opened this issue 5 years ago • 1 comments
trafficstars

Hi! I have some problems with the following exercises:

0.4.5: I have sorted the indexes, so that the numbers are natural again:

df3_sorted = df3_sorted.reset_index(drop=True) print(df3_sorted)

however, it shows an assertion error... did I not drop the old one? not quite sure how to do that.

0.4.6:

df_sorted = df_weather.sort_values(by = max(obs_value), inplace = True)

The code does not work.. what should I change?

MariusMMa avatar Aug 06 '20 14:08 MariusMMa

hi @MariusMMa , regarding your first question: What does your dataframe look like? What code have you used to create the dataframe? Regarding your second question: When you sort a dataframe you usually do it by a specific column. max(obs_value) is not a column :)

jsr-p avatar Aug 06 '20 14:08 jsr-p