The Pocket Observatory needs a report for a grid with one night per row and one sensor per column. Start with total light per night and average reading per sensor.
np.mean accepts axis just as np.sum does. Choose the dimension to collapse: totals per night need axis 1, while means per sensor need axis 0. Fill the two placeholders; the tuple and sample print are supplied.
night_totals to the sum of each row in grid.sensor_means to the mean of each column in grid.Run main.py: expect night totals [12 18] and sensor means [6. 4.5 4.5]. Submit, then continue with the same panel in the next lesson.
Means accept an axis argument too; a sensor history runs down a column.