class_docstr: UMAP Mixin for automagic UMAPing
class_docstr_tok: ["UMAP","Mixin","for","automagic","UMAPing"]
code: def _check_target_is_one_dimensional(
      self, y: Union[pd.DataFrame, None]
  ):
      if y is None:
          return None
      if y.ndim == 1:
          return y
      elif y.ndim == 2 and y.shape[1] == 1:
          return y
      else:
          logger.warning(
              f"* Ignoring target column of shape {y.shape} in UMAP fit, "
              "as it is not one dimensional"
          )
          return None
  
imports: import copy
  from time import time
  from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Union
  from inspect import getmodule
  import pandas
  from .None import constants
  from .constants import CUML, UMAP_LEARN
  from .feature_utils import FeatureMixin, Literal, XSymbolic, YSymbolic, prune_weighted_edges_df_and_relabel_nodes, resolve_feature_engine
  from .PlotterBase import Plottable, WeakValueDictionary
  from .util import check_set_memoize
  import logging
label_desc: Use image node_id 3 for calling the UMAPMixin obj's underlying member method code with example usage: obj._check_target_is_one_dimensional(y) and returns: None, y, y, None