code: def network_from_df(self, df):
          
          teneto.utils.check_TemporalNetwork_input(df, 'df')
          self.network = df
          self._update_network()
docs: Defines a network from an array.
  
          Parameters
          ----------
          array : array
              Pandas dataframe. Should have columns: \'i\', \'j\', \'t\' where i and j are node indicies and t is the temporal index.
              If weighted, should also include \'weight\'. Each row is an edge.