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
I guess the result is harder to understand because the constructor uses implicit broadcasting, but if I think about it in terms of normal broadcasting rules there's no real reason for this to error. So maybe it's okay.
Yes - broadcasting is done here and that is why it was allowed. The issue is that:
DataFrame(x=some_vector, y=scalar)
is a useful pattern for populating the y column with a constant. The question is if some_vector is empty should we special case it and error (we do not; R does).
Shouldn't this be
DimensionMismatch
?Inspired by https://discourse.julialang.org/t/column-types-in-dataframes/108532
The text was updated successfully, but these errors were encountered: