code: def pd_to_int(h2o, pd):
      return (h2o, pd.apply(lambda x: 1 if x else 0))
  
file_path: h2o-3/h2o-py/tests/testdir_misc/pyunit_apply.py
imports: import sys
  import h2o
  from tests import pyunit_utils
  import pandas
  from pandas.util.testing import assert_frame_equal
  import numpy
  from functools import partial
label_desc: Use image node_id 2 for calling a global function with example usage: pd_to_int(h2o, pd) and returns: h2o,  pd