modelhub.Map.is_first_session
is_first_session
(data)Labels all hits in a session True if that session is the first session of that user in the data.
Parameters
data (bach.dataframe.DataFrame) – bach.DataFrame to apply the method on.
Returns
bach.SeriesBoolean with the same index as data.