Day 7: How do I sort a pandas DataFrame or a Series?

Day 7: How do I sort a pandas DataFrame or a Series?

Preview unavailable

You must log in or sign up to view this lesson.

LoginSign up

pandas in 30 days

Buy nowLearn more

Introduction

  • Welcome to the course!57
  • Download the course files2

Course videos

  • Day 1: What is pandas?14
  • Day 2: How do I read a tabular data file into pandas?36
  • Day 3: How do I select a pandas Series from a DataFrame?19
  • Day 4: Why do some pandas commands end with parentheses (and others don't)?7
  • Day 5: How do I rename columns in a pandas DataFrame?14
  • Day 6: How do I remove columns from a pandas DataFrame?10
  • Day 7: How do I sort a pandas DataFrame or a Series?8
  • Day 8: How do I filter rows of a pandas DataFrame by column value?11
  • Day 9: How do I apply multiple filter criteria to a pandas DataFrame?4
  • Day 10: Your pandas questions answered!9
  • Day 11: How do I use the "axis" parameter in pandas?8
  • Day 12: How do I use string methods in pandas?12
  • Day 13: How do I change the data type of a pandas Series?4
  • Day 14: When should I use a "groupby" in pandas?12
  • Day 15: How do I explore a pandas Series?6
  • Intermission: Can I ask you a quick favor?
  • Day 16: How do I handle missing values in pandas?11
  • Day 17: What do I need to know about the pandas index? (Part 1)5
  • Day 18: What do I need to know about the pandas index? (Part 2)13
  • Day 19: How do I select multiple rows and columns from a pandas DataFrame?8
  • Day 20: When should I use the "inplace" parameter in pandas?8
  • Day 21: How do I make my pandas DataFrame smaller and faster?15
  • Day 22: How do I use pandas with scikit-learn to create Kaggle submissions?8
  • Day 23: More of your pandas questions answered!4
  • Day 24: How do I create dummy variables in pandas?2
  • Day 25: How do I work with dates and times in pandas?6
  • Day 26: How do I find and remove duplicate rows in pandas?
  • Day 27: How do I avoid a SettingWithCopyWarning in pandas?8
  • Day 28: How do I change display options in pandas?4
  • Day 29: How do I create a pandas DataFrame from another object?6
  • Day 30: How do I apply a function to a pandas Series or DataFrame?26

Bonus videos

  • Bonus: How do I merge DataFrames in pandas?6
  • Bonus: How do I use the MultiIndex in pandas?
  • Bonus: My top 25 pandas tricks6
  • Bonus: 21 more pandas tricks2

Conclusion

  • Can I ask you a quick favor?
  • Request your certificate of completion2
  • Take another course from Data School!
  • Earn money by promoting Data School's courses!