I've read the PythonBooklet.pdf by H2O.ai and the python API documentation, but still can't find a clean way to do this. I know I can do either of the following:
- Convert H2OFrame to Spark DataFrame and do a
flatMap
+collect
orcollect
+ list comprehension. - Use H2O's
get_frame_data
, which gives me a string of header and data separated by\n
; then convert it a list (a numeric list in my case).
Is there a better way to do this? Thank you.