Listening hours by source
EasySpotifygroupbysumunit conversion· 10 XP
Streams record how long they played in milliseconds. The product team wants total listening hours for each place a stream can start (playlist, radio, search and so on).
From streams.csv, store the total hours played per source, rounded to 1 decimal, as a Series.
Expected answer
Store your answer in result.
- 1 hour is 3,600,000 milliseconds
Hints, the later questions and the answer come with Pro.
import pandas as pd
streams = pd.read_csv("streams.csv")
result = ...