code: def whichmaxmin():
      # Make H2O frame
      f1 = h2o.create_frame(
          rows=10000,
          cols=100,
          categorical_fraction=0,
          missing_fraction=0,
          seed=1234,
      )
  
      # Make comparable pandas frame
      f2 = f1.as_data_frame(use_pandas=True)
  
      #############################################################
      # Col wise max
      which_max_col = f1.idxmax()
      which_max_col = which_max_col.transpose()
  
      which_max_col_pd = f2.idxmax(axis=0)
      which_max_col_pd = h2o.H2OFrame(
          pd.DataFrame(which_max_col_pd, columns=["C1"])
      )
  
      diff_max_col_idx = which_max_col - which_max_col_pd
  
      assert diff_max_col_idx.sum() == 0
  
      # Col wise min
      which_min_col = f1.idxmin()
      which_min_col = which_min_col.transpose()
  
      which_min_col_pd = f2.idxmin(axis=0)
      which_min_col_pd = h2o.H2OFrame(
          pd.DataFrame(which_min_col_pd, columns=["C1"])
      )
  
      diff_min_col_idx = which_min_col - which_min_col_pd
  
      assert diff_min_col_idx.sum() == 0
  
      #############################################################
      # Row wise max
      which_max_row = f1.idxmax(axis=1)
  
      which_max_row_pd = f2.idxmax(axis=1)
      which_max_row_pd = h2o.H2OFrame(
          pd.DataFrame(which_max_row_pd, columns=["C1"])
      )
      which_max_row_pd = (
          which_max_row_pd.ascharacter().lstrip("C").asnumeric() - 1
      )  # Had to clean up before comparison (indexing was +1)
  
      diff_max_row_idx = which_max_row - which_max_row_pd
  
      assert diff_max_row_idx.sum() == 0
  
      # Row wise min
      which_min_row = f1.idxmin(axis=1)
  
      which_min_row_pd = f2.idxmin(axis=1)
      which_min_row_pd = h2o.H2OFrame(
          pd.DataFrame(which_min_row_pd, columns=["C1"])
      )
      which_min_row_pd = (
          which_min_row_pd.ascharacter().lstrip("C").asnumeric() - 1
      )  # Had to clean up before comparison (indexing was +1)
  
      diff_min_row_idx = which_min_row - which_min_row_pd
  
      assert diff_min_row_idx.sum() == 0
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: whichmaxmin() without return types