  
          for item in sessions_summary:
              values = [item[column] for column in self.columns]
              kwargs = {"values": values}
              if self.check_valid_data(values):
                  # Don't show graph icon for non-existent sessions
                  kwargs["image"] = get_images().icons["graph"]
              if values[0] == "Total":
                  kwargs["tags"] = "total"
              self.tree.insert("", "end", **kwargs)
 
</s> remove             values = [item[column] for column in self.columns]
 </s> add             values = [item[column] for column in self._columns] </s> remove             self.tree.insert("", "end", **kwargs)
 </s> add             self._tree.insert("", "end", **kwargs) </s> remove         self.tree.configure(height=len(sessions_summary))
 </s> add         self._tree.configure(height=len(sessions_summary)) </s> remove         """ Insert the data into the totals tree-view """
 </s> add         """ Insert the summary data into the statistics tree-view.

        Parameters
        ----------
        sessions_summary: list
            List of session summary dicts for populating into the tree-view
        """ </s> remove         """ Clear the totals tree """
 </s> add         """ Clear all of the summary data from the tree-view. """
            if self._check_valid_data(values):
  
          for item in sessions_summary:
              values = [item[column] for column in self.columns]
              kwargs = {"values": values}
            if self._check_valid_data(values):
                  # Don't show graph icon for non-existent sessions
                  kwargs["image"] = get_images().icons["graph"]
              if values[0] == "Total":
                  kwargs["tags"] = "total"
              self.tree.insert("", "end", **kwargs)
keep keep keep keep replace keep keep keep keep keep
 GUI - Stats optimization (#1067)

* Faster stat loading + caching

* Compress data in cache

* Optimize some calculations

* Vectorize smoothing

* stats.Calculations optimized

* Load latest training data from live iterator

* Add options to training graph 
lib/gui/display_analysis.py