class_docstr: This class tests the basic functionality of the Python bindings.
class_docstr_tok: ["This","class","tests","the","basic","functionality","of","the","Python","bindings","."]
docstr: Test that we can pass a one dimension matrix with some categorical features.
docstr_tok: ["Test","that","we","can","pass","a","one","dimension","matrix","with","some","categorical","features","."]
code: def testOneDimensionMatrixAndInfoPandasForceCopy(self):
      """
      Test that we can pass a one dimension matrix with some categorical features.
      """
      x = pd.DataFrame(np.random.rand(10))
  
      output = test_python_binding(
          string_in="hello",
          int_in=12,
          double_in=4.0,
          mat_req_in=[[1.0]],
          col_req_in=[1.0],
          matrix_and_info_in=x[0],
          copy_all_inputs=True,
      )
  
      self.assertEqual(output["matrix_and_info_out"].shape[0], 10)
  
      for j in range(10):
          self.assertEqual(
              output["matrix_and_info_out"][j, 0], x[0][j] * 2
          )
  
imports: import unittest
  import pandas
  import numpy
  import copy
  from mlpack.test_python_binding import test_python_binding
label_desc: Use image node_id 55 for calling the TestPythonBinding obj's underlying member method code with example usage: obj.testOneDimensionMatrixAndInfoPandasForceCopy() without return types