Budget split as percentages

Easybroadcastingkeepdims· 10 XP

Each row of spend is a team, and each column is how much it spent on ads, tools and travel (illustrative numbers).

Store each team's spending as a percentage of that team's total, rounded to 1 decimal. Each row should add up to about 100.

Expected answer

Store your answer in result.

Hints, the later steps and the answer come with Pro.

import numpy as np

spend = np.array([
    [5000, 1200, 800],
    [300, 2500, 200],
    [1500, 1500, 3000],
])
result = ...