ValueError: `python_obj` must be a tuple, list, dict, collections.OrderedDict. Got: <class 'pandas.core.frame.DataFrame'>
Could somebody advise how I could pass a pandas dataframe to h2o? I would like avoid to write it to disk temporarily.
Thanks,Cong
h2o.H2OFrame(f.values.tolist()) # get no header
h2o.H2OFrame(f.to_dict()) # out-of-order cols due to python dict
{'Age': {0: 22.0,
1: 38.0,
2: 26.0,
3: 35.0,
4: 35.0,
5: 29.69911764705882,
6: 54.0,
7: 2.0,
8: 27.0,...
Which are expected.
But with the following code, it seems only the index for each dictionary is imported instead of the value.
--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.