code: def test_add_column_fill_scalar(df):
      """Checks the `fill_remaining` parameter works as expected when value
      is a scalar."""
      df = df.add_column("fill_in_scalar", 42, fill_remaining=True)
      series = pd.Series([42 for _ in range(len(df))])
      series.name = "fill_in_scalar"
      assert_series_equal(df["fill_in_scalar"], series)
  
file_path: pyjanitor/tests/functions/test_add_column.py
imports: import numpy
  import pandas
  import pytest
  from hypothesis import given, settings
  from hypothesis import strategies
  from pandas.testing import assert_series_equal
  from janitor.testing_utils.strategies import df_strategy
label_desc: Use image node_id 8 for calling a global function with example usage: test_add_column_fill_scalar(df) without return types