-
Notifications
You must be signed in to change notification settings - Fork 372
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
map on DataFrameColumns should return DataFrameColumns #2245
Comments
The problem is that this would be significantly breaking, as now function you pass to E.g.:
The functionality you ask for is provided by Alternatively you can do
So unless there is some more justification for the change I would leave the things as they are as what you propose would be breaking and we do not want to be breaking unless there is a significant benefit of this move (and in this case actually there are also downsides, as As a more general comment - actually I prefer |
You're right, of course, looks like |
It would be great if
map
onDataFrameColumns
would return aDataFrameColumns
object again, preserving column-names. This would enable constructs like this:and, in conjuction with #2244, also generic constructs like
Also, this way
map
onDataFrameColumns
would behave likemap
onNamedTuple
.The text was updated successfully, but these errors were encountered: