▲ | morkalork 3 days ago | ||||||||||||||||||||||
Wrap the statement in (...) and you can drop the backslashes. See also how people split up complicated loc queries in pandas on multiple lines too. | |||||||||||||||||||||||
▲ | giancarlostoro 3 days ago | parent [-] | ||||||||||||||||||||||
Thank you! It seems this works for not just parens but square brackets and curly braces too! Only special requirement is indentation is consistent (duh though). I've not been doing Python day-to-day so I'm starting to lose my touch on all the nice little tricks. | |||||||||||||||||||||||
|