code: def _transition_features_to_df(transition_features):
      # type: (TransitionFeatureWeights) -> pd.DataFrame
      class_names = list(transition_features.class_names)
      return pd.DataFrame(
          {
              "from": [f for f in class_names for _ in class_names],
              "to": [f for _ in class_names for f in class_names],
              "coef": transition_features.coef.reshape(-1),
          },
          columns=["from", "to", "coef"],
      )
  
file_path: eli5/eli5/formatters/as_dataframe.py
imports: from itertools import chain
  from typing import Any, Dict, List, Optional
  import warnings
  import pandas
  import eli5
  from eli5.base import Explanation, FeatureImportances, TargetExplanation, TransitionFeatureWeights
  from eli5.base_utils import singledispatch
label_desc: Use image node_id 10 for calling a global function with example usage: _transition_features_to_df(transition_features) and returns: pd