code: def _apply_along_column(array, func1d, **kwargs):
      if isinstance(array, pd.DataFrame):
          return array.apply(func1d, **kwargs)
      return np.apply_along_axis(func1d, 0, array, **kwargs)
  
file_path: scikit-survival/sksurv/column.py
imports: import logging
  import numpy
  import pandas
  from pandas.api.types import CategoricalDtype, is_object_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: _apply_along_column(array, func1d) and returns: np, array