class_docstr: Test behaviour of the learn_dynamic_structure of `from_pandas_dynamic`
class_docstr_tok: ["Test","behaviour","of","the","learn_dynamic_structure","of","`","from_pandas_dynamic","`"]
docstr: Every columns that is in the data should become a node in the learned structure
docstr_tok: ["Every","columns","that","is","in","the","data","should","become","a","node","in","the","learned","structure"]
code: def test_all_columns_in_structure(self, data_dynotears_p2):
      """Every columns that is in the data should become a node in the learned structure"""
      sm = from_pandas_dynamic(
          pd.DataFrame(
              data_dynotears_p2["X"], columns=["a", "b", "c", "d", "e"]
          ),
          p=2,
          w_threshold=0.4,
      )
      assert sorted(sm.nodes) == [
          f"{var}_lag{l_val}"
          for var in ["a", "b", "c", "d", "e"]
          for l_val in range(3)
      ]
  
imports: import re
  import networkx
  import numpy
  import pandas
  import pytest
  from causalnex.structure.dynotears import from_numpy_dynamic, from_pandas_dynamic
label_desc: Use image node_id 11 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_all_columns_in_structure(data_dynotears_p2) without return types