code: def fill_empty(
      df: pd.DataFrame,
      column_names: Union[str, Iterable[str], Hashable],
      value: Any,
  ) -> pd.DataFrame:
      """Fill `NaN` values in specified columns with a given value.
  
      Super sugary syntax that wraps `pandas.DataFrame.fillna`.
  
      This method mutates the original DataFrame.
  
      !!!note
  
          This function will be deprecated in a 1.x release.
          Please use [`jn.impute`][janitor.functions.impute.impute] instead.
  
      Examples:
          >>> import pandas as pd
          >>> import janitor
          >>> df = pd.DataFrame(
          ...        {
          ...            'col1': [1, 2, 3],
          ...            'col2': [None, 4, None ],
          ...            'col3': [None, 5, 6]
          ...        }
          ...    )
          >>> df
             col1  col2  col3
          0     1   NaN   NaN
          1     2   4.0   5.0
          2     3   NaN   6.0
          >>> df.fill_empty(column_names = 'col2', value = 0)
             col1  col2  col3
          0     1   0.0   NaN
          1     2   4.0   5.0
          2     3   0.0   6.0
          >>> df.fill_empty(column_names = ['col2', 'col3'], value = 0)
             col1  col2  col3
          0     1   0.0   0.0
          1     2   4.0   5.0
          2     3   0.0   6.0
  
      Args:
          df: A pandas DataFrame.
          column_names: A column name or an iterable (list
              or tuple) of column names. If a single column name is passed in,
              then only that column will be filled; if a list or tuple is passed
              in, then those columns will all be filled with the same value.
          value: The value that replaces the `NaN` values.
  
      Returns:
          A pandas DataFrame with `NaN` values filled.
      """
  
      check_column(df, column_names)
      return _fill_empty(df, column_names, value=value)
  
file_path: pyjanitor/janitor/functions/fill.py
imports: from collections.abc import Iterable
  from enum import Enum
  from operator import methodcaller
  from typing import Any, Hashable, Iterable, Union
  import pandas
  import pandas_flavor
  from multipledispatch import dispatch
  from janitor.utils import check, check_column, deprecated_alias, refactored_function
label_desc: Use image node_id 3 for calling a global function with example usage: fill_empty(df, column_names, value) and returns: _fill_empty