code: def edges_df_transformer_default(edges_df):
      # FIXME weird pandas bug forcing here vs post, otherwise color col is offset one with last row as null
      edges_df = edges_df.assign(
          ColorInt=pd.Series(edges_df["Color"].factorize()[0])
          .apply(lambda r: r % 12)
          .astype("int32")
      )
      return edges_df
  
file_path: pygraphistry/graphistry/nodexlistry.py
imports: import pandas
label_desc: Use image node_id 4 for calling the NodeXLGraphistryBase obj's underlying member method code with example usage: obj.edges_df_transformer_default(edges_df) and returns: edges_df