In a single chain, add a price column (revenue / cups) to orders and return the…

pandas · from Method chaining

chaining.assign().pipe().query().loc[lambda]inplace is a trap

Putting the kettle on…

Starting up…

Exercise 1

In a single chain, add a price column (revenue / cups) to orders and return the frame — without assigning to a temporary.

your answer
stuck? the lesson behind it
Method chaining
One expression, no half-modified frames, and the same answer every time you run it.