code: def test_frame_data_proparty_series(self):
      df = pdml.ModelFrame(
          {"A": [1, 2, 3], "B": [4, 5, 6]},
          target=[7, 8, 9],
          index=["a", "b", "c"],
      )
      df.data = df["A"]
      exp = pdml.ModelFrame(
          {"A": [1, 2, 3]}, target=[7, 8, 9], index=["a", "b", "c"]
      )
      tm.assert_frame_equal(df, exp)
  
      df = pdml.ModelFrame(
          {"A": [1, 2, 3], "B": [4, 5, 6]},
          target=[7, 8, 9],
          index=["a", "b", "c"],
      )
      df.data = pd.Series([1, 2, 3], name="x", index=["a", "b", "c"])
      exp = pdml.ModelFrame(
          {"x": [1, 2, 3]}, target=[7, 8, 9], index=["a", "b", "c"]
      )
      tm.assert_frame_equal(df, exp)
  
      df = pdml.ModelFrame(
          {"A": [1, 2, 3], "B": [4, 5, 6]},
          target=[7, 8, 9],
          index=["a", "b", "c"],
      )
      with pytest.raises(TypeError):
          df.data = [1, 2, 3]
  
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 13 for calling the TestModelFrame obj's underlying member method code with example usage: obj.test_frame_data_proparty_series() without return types