def stream2dict(stream_list):
    """Convert stream list into stream dict

    Parameters
    ----------
    stream_list : list
        Stream in list form (list of dicts), as returned by Strava API v3

    Returns
    -------
    stream_dict : dict
        Stream in dict form, with key set to *stream name* and value set to the actual stream list.
        In this form, the stream is ready to be consumed by pandas
    """

    stream_dict = {}

    for s in stream_list:

        stream_dict.update({s['type']: s['data']})

    return stream_dict