Sorting Values in Dataframe #12
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @NeelaGitH sorry for the late response! Here, it appears you were asked to firstly sort the values by the index associated with price which is why the To further understand my point I would recommend trying to download this dataset into your local system and printing out the two results when using |
Beta Was this translation helpful? Give feedback.
Hey @NeelaGitH sorry for the late response!
Here, it appears you were asked to firstly sort the values by the index associated with price which is why the
sort_index()
method is correct. If you were usingsort_values()
that didn't work mostly because you had to sort one specific index in ascending order and thesort_values()
function does not do so as intended.To further understand my point I would recommend trying to download this dataset into your local system and printing out the two results when using
sort_values()
andsort_index()
respectively.