class_docstr: Test behaviour of the from_pandas method
docstr: Only numeric data frames should be supported
docstr_tok: ["Only","numeric","data","frames","should","be","supported"]
code: def test_non_numeric_data_raises_error(self):
      """Only numeric data frames should be supported"""
  
      with pytest.raises(
          ValueError, match="All columns must have numeric data.*"
      ):
          from_pandas(pd.DataFrame(data=["x"], columns=["a"]))
  
imports: import logging
  import networkx
  import numpy
  import pandas
  import pytest
  import scipy.optimize
  from mock import patch
  from causalnex.structure import StructureModel
  from causalnex.structure.data_generators import generate_binary_data, generate_binary_dataframe, generate_continuous_dataframe, generate_count_dataframe, generate_structure
  from causalnex.structure.pytorch.notears import from_numpy, from_pandas
label_desc: Use image node_id 5 for calling the TestFromPandas obj's underlying member method code with example usage: obj.test_non_numeric_data_raises_error() without return types