You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{code:java}df = h2o.H2OFrame([1, 2, 5.5], destination_frame="df")
df1 = df[3, :]
df2 = df[:2, :]
summary = df1.summary(return_data=True)
df1.rbind(df2) # Error because of different data types
H2OValueError Traceback (most recent call last)
in
----> 1 df1.rbind(df2) # Error because of different data types
/usr/local/lib/python3.7/site-packages/h2o/frame.py in rbind(self, data)
2635 "the columns must match" % (frame.ncol, self.ncol))
2636 if frame.columns != self.columns or frame.types != self.types:
-> 2637 raise H2OValueError("Column names and types must match for rbind() to work")
2638 fr = H2OFrame._expr(expr=ExprNode("rbind", self, *frames), cache=self._ex._cache)
2639 fr._ex._cache.nrows = self.nrow + sum(frame.nrow for frame in frames)
H2OValueError: Column names and types must match for rbind() to work
{code}
The text was updated successfully, but these errors were encountered:
this works -
{code:java}df = h2o.H2OFrame([1, 2, 5.5], destination_frame="df")
df1 = df[3, :]
df2 = df[:2, :]
df1.rbind(df2){code}
this fails
{code:java}df = h2o.H2OFrame([1, 2, 5.5], destination_frame="df")
df1 = df[3, :]
df2 = df[:2, :]
summary = df1.summary(return_data=True)
df1.rbind(df2) # Error because of different data types
H2OValueError Traceback (most recent call last)
in
----> 1 df1.rbind(df2) # Error because of different data types
/usr/local/lib/python3.7/site-packages/h2o/frame.py in rbind(self, data)
2635 "the columns must match" % (frame.ncol, self.ncol))
2636 if frame.columns != self.columns or frame.types != self.types:
-> 2637 raise H2OValueError("Column names and types must match for rbind() to work")
2638 fr = H2OFrame._expr(expr=ExprNode("rbind", self, *frames), cache=self._ex._cache)
2639 fr._ex._cache.nrows = self.nrow + sum(frame.nrow for frame in frames)
H2OValueError: Column names and types must match for rbind() to work
{code}
The text was updated successfully, but these errors were encountered: