Describe_events#
Eventstream#
- Eventstream.describe_events(session_col='session_id', raw_events_only=False, event_list=None)[source]#
 Display general information on eventstream events. If
session_colis present in eventstream, also output session statistics.- Parameters:
 - session_colstr, default ‘session_id’
 Specify name of the session column. If the column is present in the eventstream, output session statistics.
- raw_events_onlybool, default False
 If
True- statistics will only be shown for raw events. IfFalse- statistics will be shown for all events presented in your data.- event_listlist of str, optional
 Specify events to be displayed.
- Returns:
 - pd.DataFrame
 Eventstream statistics:
The following metrics are calculated for each event present in the eventstream (or the narrowed eventstream if parameters
event_listorraw_events_onlyare used). Let all_events, all_users, all_sessions be the numbers of all events, users, and sessions present in the eventstream. Then:number_of_occurrences - the number of occurrences of a particular event in the eventstream;
unique_users - the number of unique users who experienced a particular event;
unique_sessions - the number of unique sessions with each event;
number_of_occurrences_shared - number_of_occurrences / all_events (raw_events_only, if this parameter =
True);unique_users_shared - unique_users / all_users;
unique_sessions_shared - unique_sessions / all_sessions;
time_to_FO_user_wise category - timedelta between
path_startand the first occurrence (FO) of a specified event in each user path.steps_to_FO_user_wise category - the number of steps (events) from
path_startto the first occurrence (FO) of a specified event in each user path. Ifraw_events_only=Trueonly raw events will be counted.time_to_FO_session_wise category - timedelta between
session_startand the first occurrence (FO) of a specified event in each session.steps_to_FO_session_wise category - the number of steps (events) from
session_startto the first occurrence (FO) of a specified event in each session. Ifraw_events_only=Trueonly raw events will be counted.
Agg functions for each
first_occurrence*category are: mean, std, median, min, max.
See also
EventTimestampHistPlot the distribution of events over time.
TimedeltaHistPlot the distribution of the time deltas between two events.
UserLifetimeHistPlot the distribution of user lifetimes.
Eventstream.describeShow general eventstream statistics.
Notes
All
floatvalues are rounded to 2.All
datetimevalues are rounded to seconds.
See Eventstream user guide for the details.