You can also debug by putting each method on a separate line, which allows for debugging by commenting out individual methods one at a time. It enhances readability too.
Example:
(df.method1()
.method2()
.method3()
)