code: def test_frame_init_df_array_series(self):
      s = pd.Series([1, 2, 3], index=["a", "b", "c"], name=".target")
      mdf = pdml.ModelFrame(
          np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
          target=s,
          index=["a", "b", "c"],
          columns=["A", "B", "C"],
      )
  
      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([".target", "A", "B", "C"])
      )
  
      expected = pd.DataFrame(
          np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
          index=["a", "b", "c"],
          columns=["A", "B", "C"],
      )
      tm.assert_frame_equal(mdf.data, expected)
      tm.assert_series_equal(mdf.target, s)
      self.assertEqual(mdf.target.name, ".target")
      self.assertEqual(mdf.target_name, ".target")
  
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 6 for calling the TestModelFrame obj's underlying member method code with example usage: obj.test_frame_init_df_array_series() without return types