code: def _sub_complete_column(column, df, sort):  # noqa: F811
      """
      Args:
          column: list
          df: Pandas DataFrame
          sort: whether or not to sort the DataFrame.
  
      Returns:
          Pandas DataFrame
      """
      outcome = df.loc(axis=1)[column]
  
      exclude = outcome.isna().all(axis=1)
  
      if exclude.any(axis=None):
          outcome = outcome.loc[~exclude]
  
      exclude = outcome.duplicated()
  
      if exclude.any():
          outcome = outcome.loc[~exclude]
  
      if sort:
          outcome = outcome.sort_values(by=column)
  
      return outcome
  
file_path: pyjanitor/janitor/functions/complete.py
imports: import functools
  from typing import Any, Dict, List, Optional, Tuple, Union
  import pandas
  import pandas_flavor
  from pandas.api.types import is_list_like, is_scalar
  from pandas.core.common import apply_if_callable
  from janitor.functions.utils import _computations_expand_grid
  from janitor.utils import check, check_column
label_desc: Use image node_id 5 for calling a global function with example usage: _sub_complete_column(column, df, sort) and returns: outcome