SQLDAXExcelPython
Leaderboard
pandas basicsEasy10 points

Add a calculated column

Add a Margin column to products, equal to UnitPrice - UnitCost. Set result to ProductName and Margin.

Show solutionLifetime

Real Python running in your browser through Pyodide, with pandas available. Nothing you type is sent to a server unless you save a score.

Python
Loading editor…

Press Ctrl+Enter or Run to see the result here.