-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
push!
which promotes type
#1716
Comments
Actually I like Does |
Related to #1695 (maybe even a duplicate). |
My impression is that Deprecating The behavior of
We don't have heterogenous element types in DataFrames (every element is a row) so there is not ambiguity about what to add. |
Actually I would leave But |
I agree we need to keep both |
What about adding a method for My intuition is that for missing-heavy data manipulation, like I work with consistently and which I would bet is the largest audience of DataFrames, it's reasonable to push people towards a super flexible |
This is exactly what we support now. And your example is general the reason why they need to stay different (we have the same duality in
I am OK with this (again along the @pdeffebach If I understand what @nalimilan said in #1695 correctly we could consider adding However, if it is only the case about |
Yes, why not. A vector of named tuples would have to be interpreted as several rows I guess (in practice I don't think it matters a lot).
Actually that's the opposite. :-) |
Okay I will see if this works with my current open PR. I wonder if all this stuff should be just pushed off to |
So is your proposal to make |
This is what I propose:
If we are OK with this I can propose a PR doing this. Please let me know what you think. |
Currently
push!
ing something to a DataFrame just callspush!
on each individual vectors. This means that if a new row containsmissing
, it will throw an error.Obviously the user can call
allowmissing!
on columns before they start usingpush!
, but I wonder if we should have function that does this type promotion automatically.Maybe we should deprecate
push!
and use onlyappend!
andvcat
? Then have both functions work withNamedTuples
,DataFrameRow
s etc.The text was updated successfully, but these errors were encountered: