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: Edges must contain the 'weight' from the adjacent table
docstr_tok: ["Edges","must","contain","the","'weight","'","from","the","adjacent","table"]
code: def test_edges_contain_weight(self, data_dynotears_p3):
      """Edges must contain the 'weight' from the adjacent table"""
      sm = from_pandas_dynamic(
          pd.DataFrame(
              data_dynotears_p3["X"], columns=["a", "b", "c", "d", "e"]
          ),
          p=3,
      )
      assert np.all(
          [
              isinstance(w, (float, int, np.number))
              for u, v, w in sm.edges(data="weight")
          ]
      )
  
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 13 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_edges_contain_weight(data_dynotears_p3) without return types