def get_task_df(self):
		'''
		Returns
		-------

		'''
		term_time_df = self._get_term_time_df()
		terms_to_include = (
			term_time_df
				.groupby('term')['top']
				.sum()
				.sort_values(ascending=False)
				.iloc[:self.num_terms_to_include].index
		)
		task_df = (
			term_time_df[term_time_df.term.isin(terms_to_include)][['time', 'term']]
				.groupby('term')
				.apply(lambda x: pd.Series(self._find_sequences(x['time'])))
				.reset_index()
				.rename({0: 'sequence'}, axis=1)
				.reset_index()
				.assign(start=lambda x: x['sequence'].apply(lambda x: x[0]))
				.assign(end=lambda x: x['sequence'].apply(lambda x: x[1]))
			[['term', 'start', 'end']]
		)
		return task_df
def get_task_df ( self ) : term_time_df = self . _get_term_time_df ( ) terms_to_include = ( term_time_df . groupby ( 'term' ) [ 'top' ] . sum ( ) . sort_values ( ascending = False ) . iloc [ : self . num_terms_to_include ] . index ) task_df = ( term_time_df [ term_time_df . term . isin ( terms_to_include ) ] [ [ 'time' , 'term' ] ] . groupby ( 'term' ) . apply ( lambda x : pd . Series ( self . _find_sequences ( x [ 'time' ] ) ) ) . reset_index ( ) . rename ( { 0 : 'sequence' } , axis = 1 ) . reset_index ( ) . assign ( start = lambda x : x [ 'sequence' ] . apply ( lambda x : x [ 0 ] ) ) . assign ( end = lambda x : x [ 'sequence' ] . apply ( lambda x : x [ 1 ] ) ) [ [ 'term' , 'start' , 'end' ] ] ) return task_df
Returns
		-------