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: The learned structure should be acyclic
docstr_tok: ["The","learned","structure","should","be","acyclic"]
code: def test_no_cycles(self, data_dynotears_p2):
      """
      The learned structure should be acyclic
      """
      sm = from_pandas_dynamic(
          pd.DataFrame(
              data_dynotears_p2["X"], columns=["a", "b", "c", "d", "e"]
          ),
          p=2,
          w_threshold=0.05,
      )
      assert nx.algorithms.is_directed_acyclic_graph(sm)
  
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 16 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_no_cycles(data_dynotears_p2) without return types