You have a NumPy array representing monthly expenses: expens…
You have a NumPy array representing monthly expenses: expenses = np.array([2100, 1850, 2400, 1950, 2200, 3100]). Write Python code to: (1) calculate the average monthly expense, (2) find the months that had expenses above the average using boolean indexing, and (3) calculate the total of only those above-average months.
Read Details