docstr: Check that the df from `return_df=true` is
  equivalent the result if `return_df=false`
docstr_tok: ["Check","that","the","df","from","`","return_df=true","`","is","equivalent","the","result","if","`","return_df=false","`"]
code: def test_return_df_true_equivalent_to_false(self):
      """Check that the df from `return_df=true` is
      equivalent the result if `return_df=false`"""
      df = pd.DataFrame(np.random.random([50, 10]))
      df_dyno = DynamicDataTransformer(p=3).fit_transform(
          df, return_df=True
      )
      X, Xlags = DynamicDataTransformer(p=3).fit_transform(
          df, return_df=False
      )
      assert np.all(df_dyno.values[:, :10] == X)
      assert np.all(df_dyno.values[:, 10:] == Xlags)
  
file_path: causalnex/tests/structure/test_transformers.py
imports: import re
  import numpy
  import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from causalnex.structure.transformers import DynamicDataTransformer
label_desc: Use image node_id 6 for calling the TestDynamicDataTransformer obj's underlying member method code with example usage: obj.test_return_df_true_equivalent_to_false() without return types