LernerPython+data

Complex queries with method chaining in Pandas

Write clearer, cleaner, easier-to-debug, faster-executing Pandas queries with method chaining. In this class, I introduce the ideas and techniques you’ll want and need to know to write Pandas queries like the pros.

What you should know

Course Content

Course length

1.5 hours

Number of lessons

1

Training materials

1 Jupyter notebook

Coding exercises

3

LEARN MORE

Performing complex queries in Pandas? Method chaining will likely make those queries easier to write and to read. In this course, we’ll review the elements of method chaining, including the use of lambda, assign, and pipe. You’ll come out of this course able to write more complex queries in a clear, maintainable way.

  • What is method chaining? How does it help?
  • .loc in a method chain
  • .loc and lambda in a method chain
  • Using apply
  • Using pipe

This course, like all others on LernerPython.com, is taught by Reuven Lerner.