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: With a single iteration on this dataset, learn_structure fails to converge and should give warnings.
docstr_tok: ["With","a","single","iteration","on","this","dataset",",","learn_structure","fails","to","converge","and","should","give","warnings","."]
code: def test_single_iter_gets_converged_fail_warnings(
      self, data_dynotears_p1
  ):
      """
      With a single iteration on this dataset, learn_structure fails to converge and should give warnings.
      """
  
      with pytest.warns(
          UserWarning,
          match=r"Failed to converge\. Consider increasing max_iter.",
      ):
          from_pandas_dynamic(
              pd.DataFrame(data_dynotears_p1["X"]), p=1, max_iter=1
          )
  
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 2 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_single_iter_gets_converged_fail_warnings(data_dynotears_p1) without return types