class_docstr: Test common dtype coercion rules between concat and append.
class_docstr_tok: ["Test","common","dtype","coercion","rules","between","concat","and","append","."]
code: def test_concatlike_common_coerce_to_pandas_object(self):
      # GH 13626
      # result must be Timestamp/Timedelta, not datetime.datetime/timedelta
      dti = pd.DatetimeIndex(["2011-01-01", "2011-01-02"])
      tdi = pd.TimedeltaIndex(["1 days", "2 days"])
  
      exp = Index(
          [
              pd.Timestamp("2011-01-01"),
              pd.Timestamp("2011-01-02"),
              pd.Timedelta("1 days"),
              pd.Timedelta("2 days"),
          ]
      )
  
      res = dti.append(tdi)
      tm.assert_index_equal(res, exp)
      assert isinstance(res[0], pd.Timestamp)
      assert isinstance(res[-1], pd.Timedelta)
  
      dts = Series(dti)
      tds = Series(tdi)
      res = dts._append(tds)
      tm.assert_series_equal(res, Series(exp, index=[0, 1, 0, 1]))
      assert isinstance(res.iloc[0], pd.Timestamp)
      assert isinstance(res.iloc[-1], pd.Timedelta)
  
      res = pd.concat([dts, tds])
      tm.assert_series_equal(res, Series(exp, index=[0, 1, 0, 1]))
      assert isinstance(res.iloc[0], pd.Timestamp)
      assert isinstance(res.iloc[-1], pd.Timedelta)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, Index, Series
  import pandas._testing
label_desc: Use image node_id 4 for calling the TestConcatAppendCommon obj's underlying member method code with example usage: obj.test_concatlike_common_coerce_to_pandas_object() without return types