memoryfm.streaks#
- memoryfm.streaks(sclog, kind, minlength=10, start=None, end=None)#
Find streaks of artists/albums/tracks from a ScrobbleLog.
- Parameters:
- sclogScrobbleLog
The ScrobbleLog from which to search for streaks.
- kindalbum, artist, or track
The kind of streaks to find - artist, album or track.
- minlengthint, default 10
The minimum length that the streaks must have. Any streaks below this length are discarded.
- startstr, pd.Timestamp, default None
An optional start date to filter the ScrobbleLog. Either a string representing a datetime, a datetime object or a pandas Timestamp object.
- endstr, pd.Timestamp, default None
An optional end date to filter the ScrobbleLog. Either a string representing a datetime, a datetime object or a pandas Timestamp object.
- Returns:
- pd.DataFrame
A pandas DataFrame with columns
start,end, andlength, with each row representing a streak.