code: def test_partial_setting2(self):
      # GH 8473
      dates = date_range("1/1/2000", periods=8)
      df_orig = DataFrame(
          np.random.default_rng(2).standard_normal((8, 4)),
          index=dates,
          columns=["A", "B", "C", "D"],
      )
  
      expected = pd.concat(
          [df_orig, DataFrame({"A": 7}, index=dates[-1:] + dates.freq)],
          sort=True,
      )
      df = df_orig.copy()
      df.loc[dates[-1] + dates.freq, "A"] = 7
      tm.assert_frame_equal(df, expected)
      df = df_orig.copy()
      df.at[dates[-1] + dates.freq, "A"] = 7
      tm.assert_frame_equal(df, expected)
  
      exp_other = DataFrame({0: 7}, index=dates[-1:] + dates.freq)
      expected = pd.concat([df_orig, exp_other], axis=1)
  
      df = df_orig.copy()
      df.loc[dates[-1] + dates.freq, 0] = 7
      tm.assert_frame_equal(df, expected)
      df = df_orig.copy()
      df.at[dates[-1] + dates.freq, 0] = 7
      tm.assert_frame_equal(df, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, Period, Series, Timestamp, date_range, period_range
  import pandas._testing
label_desc: Use image node_id 3 for calling the TestPartialSetting obj's underlying member method code with example usage: obj.test_partial_setting2() without return types