code: def setup_ordinal_data(self, parent):
      expanded_words = (
          parent.data[parent.selected_col]
          .str.split(expand=True)
          .stack()
      )
      expanded_words.name = "label"
      expanded_words = expanded_words.reset_index()[
          ["level_0", "label"]
      ]
      expanded_words.columns = ["index", "label"]
      expanded_words = pd.merge(
          parent.data[[self.ordinal_col]],
          expanded_words.set_index("index"),
          how="inner",
          left_index=True,
          right_index=True,
      )
      expanded_word_code = [
          (
              "ordinal_data = df['{col}'].str.split(expand=True).stack()\n"
              "ordinal_data.name = 'label'\n"
              "ordinal_data = ordinal_data.reset_index()[['level_0', 'label']]\n"
              "ordinal_data.columns = ['index', 'label']\n"
              "ordinal_data = pd.merge(\n"
              "\tdf[['{ordinal}']],\n"
              "\tordinal_data.set_index('index'),\n"
              "\thow='inner',\n"
              "\tleft_index=True,\n"
              "\tright_index=True,\n"
              ")"
          ).format(col=parent.selected_col, ordinal=self.ordinal_col)
      ]
      if self.ordinal_agg == "pctsum":
          ordinal_data, ordinal_code = pctsum_updates(
              expanded_words, "label", self.ordinal_col
          )
          return ordinal_data, expanded_word_code + ordinal_code
  
      ordinal_code = expanded_word_code + [
          "ordinal_data = ordinal_data.groupby('label')[['{ordinal}']].{agg}()".format(
              ordinal=self.ordinal_col, agg=self.ordinal_agg
          )
      ]
      ordinal_data = getattr(
          expanded_words.groupby("label")[[self.ordinal_col]],
          self.ordinal_agg,
      )()
      return ordinal_data, ordinal_code
  
imports: import numpy
  import pandas
  import plotly.express
  import plotly.graph_objs
  import pprint
  import scipy.stats
  import time
  import dtale.global_state
  import dtale.pandas_util
  from dtale.code_export import build_code_export, build_final_chart_code
  from dtale.column_builders import clean, clean_code
  from dtale.describe import load_describe
  from dtale.query import build_query, load_filterable_data
  from dtale.utils import apply, classify_type, find_dtype, find_dtype_formatter, find_selected_column, get_bool_arg, get_int_arg, get_str_arg, grid_columns, grid_formatter, json_float, json_timestamp, make_list
label_desc: Use image node_id 2 for calling the WordValueCountAnalysis obj's underlying member method code with example usage: obj.setup_ordinal_data(parent) and returns: ordinal_data,  ordinal_code, ordinal_data,  unknown