              session_id = self._session.session_ids[-1]
              ts_data = self._time_stats[session_id]
  
              if session_id > len(self._per_session_stats):
                  self._per_session_stats.append(self._collate_stats(session_id, ts_data))
  
              stats = self._per_session_stats[-1]
  
              stats["start"] = ts_data["start_time"]
              stats["end"] = ts_data["end_time"]
 
</s> remove             for session_id, ts_data in self._time_stats.items():
 </s> add             for session_id in self._time_stats: </s> remove                 compiled.append(self._collate_stats(session_id, ts_data))
 </s> add                 compiled.append(self._collate_stats(session_id)) </s> remove                 text = "Show {}".format(item.title())
 </s> add                 text = f"Show {item.title()}" </s> remove         self._data = data
 </s> add         self._data = np.nan_to_num(data) </s> remove             lblcmb = ttk.Label(cmbframe, text="{}:".format(item), width=7, anchor=tk.W)
 </s> add             lblcmb = ttk.Label(cmbframe, text=f"{item}:", width=7, anchor=tk.W)
                self._per_session_stats.append(self._collate_stats(session_id))
              session_id = self._session.session_ids[-1]
              ts_data = self._time_stats[session_id]
  
              if session_id > len(self._per_session_stats):
                self._per_session_stats.append(self._collate_stats(session_id))
  
              stats = self._per_session_stats[-1]
  
              stats["start"] = ts_data["start_time"]
              stats["end"] = ts_data["end_time"]
keep keep keep keep replace keep keep keep keep keep
 Bugfixes:
  - Stats graph - Handle NaNs in data
  - logger - de-elevate matplotlib font messages 
lib/gui/analysis/stats.py