code: def test_to_drawdown_series_df(df):
      data = df
      actual = data.to_drawdown_series()
  
      assert len(actual) == len(data)
      aae(actual["AAPL"][0], 0, 3)
      aae(actual["MSFT"][0], 0, 3)
      aae(actual["C"][0], 0, 3)
  
      aae(actual["AAPL"][1], -0.019, 3)
      aae(actual["MSFT"][1], -0.011, 3)
      aae(actual["C"][1], -0.012, 3)
  
      aae(actual["AAPL"][9], -0.086, 3)
      aae(actual["MSFT"][9], -0.048, 3)
      aae(actual["C"][9], -0.029, 3)
  
imports: import ffn
  import pandas
  import numpy
  from pytest import fixture
  from numpy.testing import assert_almost_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_to_drawdown_series_df(df) without return types