An existing dataframe has unsorted yearly sales data. You would like to arrange the data so you can slice it out later by the year. What is the -best way to transform this dataframe to accomplish this goal

🎲 Try a Random Question  |  Total Questions in Quiz: 18  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Python Clean Data — practice the complete quiz, review flashcards, or try a random question.

For Pluralsight Skill Assessments.


An existing dataframe has unsorted yearly sales data. You would like to arrange the data so you can slice it out later by the year. What is the -best way to transform this dataframe to accomplish this goal