class_docstr: This class defines tests for the to_matrix() and to_matrix_with_info() utility
  functions.
docstr: Test that a matrix holding ints is properly turned into a double matrix.
docstr_tok: ["Test","that","a","matrix","holding","ints","is","properly","turned","into","a","double","matrix","."]
code: def testPandasIntToMatrix(self):
      """
      Test that a matrix holding ints is properly turned into a double matrix.
      """
      d = pd.DataFrame({"a": range(5)})
  
      m, _ = to_matrix(d)
  
      self.assertTrue(isinstance(m, np.ndarray))
      self.assertEqual(m.shape[0], 5)
      self.assertEqual(m.shape[1], 1)
      for i in range(5):
          self.assertEqual(m[i], i)
  
imports: import unittest
  import pandas
  import numpy
  from mlpack.matrix_utils import to_matrix
  from mlpack.matrix_utils import to_matrix_with_info
label_desc: Use image node_id 2 for calling the TestToMatrix obj's underlying member method code with example usage: obj.testPandasIntToMatrix() without return types