code: def density(self):
          
          tot_nonsparse = sum(ser.sp_index.npoints
                              for _, ser in self.items())
          tot = len(self.index) * len(self.columns)
          return tot_nonsparse / float(tot)
docs: Ratio of non-sparse points to total (dense) data points
          represented in the frame