code: def test_rbind_summary():
      h2o.remove_all()
      df = h2o.H2OFrame(
          [1, 2, 5.5], destination_frame="df"
      )  # original frame
      dfr = h2o.H2OFrame(
          [5.5, 1, 2], destination_frame="dfr"
      )  # reversed row content
      df1 = df[2, :]
      df2 = df[:2, :]
      summary = df1.summary(return_data=True)
      df3 = df1.rbind(df2)  # fixed
      df3r = df2.rbind(df1)
  
      compareFramesLocal(dfr, df3)  # should contain 5.5, 1, 2
      compareFramesLocal(df, df3r)  # should contain 1,2,5.5
  
      df1 = df[
          3, :
      ]  # this will result in an NA since we do not have 4 rows in df.
      dfr[0, 0] = float("nan")
      df4 = df1.rbind(df2)
      compareFramesLocal(df4, dfr)  # should contain NA, 1, 2
  
      # performing the same test with an additionl categorical column per Michalk request.
      h2o.remove_all()
      df = h2o.H2OFrame(
          [[1, "a"], [2, "b"], [5.5, "c"]], destination_frame="dfc"
      )  # original frame
      df[1] = df[1].asfactor()
      dfr = h2o.H2OFrame(
          [[5.5, "c"], [1, "a"], [2, "b"]], destination_frame="dfrc"
      )  # reversed row content
      dfr[1] = df[
          1
      ].asfactor()  # this somehow switch the row content of the factor column to be alphabetical
      dfr[0, 1] = "c"
      dfr[1, 1] = "a"
      dfr[2, 1] = "b"
      df1 = df[2, :]
      df2 = df[:2, :]
      summary = df1.summary(return_data=True)
      df3 = df1.rbind(df2)  # fixed
      df3r = df2.rbind(df1)
      compareFramesLocal(dfr, df3)  # should contain 5.5, 1, 2
      compareFramesLocal(df, df3r)  # should contain 1,2,5.5
  
      # copying test from Michalk
      df1 = h2o.H2OFrame([[1, "a"], [2, "b"]])
      df1[1] = df1[1].asfactor()
  
      df2 = h2o.H2OFrame([[2.2, "b"], [1.1, "a"]])
      df2[1] = df2[1].asfactor()
  
      print(df1.summary())
      print(df2.summary())
  
      df3 = df1.rbind(df2)
      assert df3.nrow == (
          df1.nrow + df2.nrow
      ), "Expected rbind rows: {0}, actual rows: " "{1}".format(
          df1.nrow + df2.nrow, df3.nrow
      )
  
imports: import h2o
  import math
  from h2o.exceptions import H2OTypeError, H2OValueError
  from tests import pyunit_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_rbind_summary() without return types