Congratulations!

Writing Efficient Code with pandas

Leonidas Souliotis

PhD Candidate

What you have learned

  • Why and how to time operations
  • Select targeted rows and columns efficiently
  • Select random rows and columns efficiently

  • Replace values of a DataFrame efficiently using replace()

    • Replace multiple values using lists
    • Replace multiple values using dictionaries
Writing Efficient Code with pandas

What you have learned

  • Iterate on a DataFrame using the .iterrows() function
  • Iterate on a DataFrame using the .apply() function
  • Iterate on a DataFrame using pandas optimization
  • Iterate on a DataFrame using numpy optimization

  • Comparison of the groupby() function compared to native python code

    • When transforming the data group-wise
    • When imputing missing values group-wise
    • When filtering groups with specific characteristics
Writing Efficient Code with pandas

Congratulations!

Writing Efficient Code with pandas

Preparing Video For Download...