code: def _drop_diagonal(self):
          
          self.network = self.network.where(
              self.network['i'] != self.network['j']).dropna()
          self.network.reset_index(inplace=True, drop=True)
docs: Drops self-contacts from the network dataframe.