code: def test_frame_init_df_df(self):
      # initialization by dataframe and dataframe
      df = pd.DataFrame(
          {"A": [1, 2, 3], "B": [4, 5, 6], "C": [7, 8, 9]},
          index=["a", "b", "c"],
          columns=["A", "B", "C"],
      )
      target = pd.DataFrame(
          {"t1": [10, 11, 12], "t2": [13, 14, 15]},
          index=["a", "b", "c"],
      )
      mdf = pdml.ModelFrame(df, target=target)
  
      self.assertIsInstance(mdf, pdml.ModelFrame)
      self.assertEqual(mdf.shape, (3, 5))
      expected = pd.DataFrame(
          {
              "t1": [10, 11, 12],
              "t2": [13, 14, 15],
              "A": [1, 2, 3],
              "B": [4, 5, 6],
              "C": [7, 8, 9],
          },
          index=["a", "b", "c"],
          columns=["t1", "t2", "A", "B", "C"],
      )
      tm.assert_frame_equal(mdf, expected)
      tm.assert_index_equal(mdf.index, pd.Index(["a", "b", "c"]))
      tm.assert_index_equal(
          mdf.columns, pd.Index(["t1", "t2", "A", "B", "C"])
      )
      tm.assert_frame_equal(mdf.data, df)
      tm.assert_frame_equal(mdf.target, target)
      tm.assert_index_equal(mdf.target.columns, pd.Index(["t1", "t2"]))
      tm.assert_index_equal(mdf.target_name, pd.Index(["t1", "t2"]))
      self.assertTrue(mdf.has_multi_targets())
  
      target = pd.DataFrame({"t1": [10, 11, 12], "t2": [13, 14, 15]})
      msg = "data and target must have equal index"
      with pytest.raises(ValueError, match=msg):
          mdf = pdml.ModelFrame(df, target=target)
  
      # single column DataFrame will results in single target column
      target = pd.DataFrame({"t1": [10, 11, 12]}, index=["a", "b", "c"])
      mdf = pdml.ModelFrame(df, target=target)
      self.assertIsInstance(mdf, pdml.ModelFrame)
      self.assertEqual(mdf.shape, (3, 4))
      tm.assert_index_equal(mdf.index, pd.Index(["a", "b", "c"]))
      tm.assert_index_equal(
          mdf.columns, pd.Index(["t1", "A", "B", "C"])
      )
      tm.assert_frame_equal(mdf.data, df)
  
      target = pd.Series([10, 11, 12], name="t1", index=["a", "b", "c"])
      tm.assert_series_equal(mdf.target, target)
      self.assertEqual(mdf.target_name, "t1")
  
imports: import pytest
  import datetime
  import warnings
  import numpy
  import pandas
  import sklearn.datasets
  import sklearn.svm
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 2 for calling the TestModelFrameMultiTarges obj's underlying member method code with example usage: obj.test_frame_init_df_df() without return types