I recall there being a lesson where we sorted values using pd.sort_values() where the values where numbers and there was a parameter to get them to sort in numerical order instead of “alphabetically”. Now I can’t find that lesson or command. Am I mis-remembering that? Or can someone tell me the option or lesson?
You can also check out this thread about it.
Data Analyst in Python, Intermediate Python and Pandas.
Currently I’m working on Guided Project: Clean And Analyze Employee Exit Surveys. I don’t remember exactly what I was trying to do, but I was playing around with some of the data, trying to pass a series to .value_counts().sort_values(), and it came out in order 1,10,2,20,3…
I went back through my code and everywhere else I’ve done that it comes out in order. Perhaps I made a mistake.