Cup Size Against Milk

Data with PythonMedium+20 XP+20

Cup Size Against Milk

A café logs every milky drink it sells: the cup size and the milk. Here are Saturday morning's 20 orders, stored in a DataFrame called orders (read down the left half, then down the right):

order_idsizemilkorder_idsizemilk
101largeoat111largeoat
102smalldairy112mediumdairy
103mediumoat113smallsoy
104largedairy114largedairy
105largeoat115mediumoat
106smalloat116smalldairy
107mediumsoy117largeoat
108largesoy118mediumdairy
109smalldairy119largesoy
110mediumoat120smalloat

The owner suspects that people who order oat milk go large more often than people who order dairy. To check, she counts the orders in a grid, one row per size and one column per milk, and compares two shares:

What does the last line print? The code keeps full precision and rounds to 3 decimal places only at the very end, so do the same.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.