Open Jolanrensen opened 5 months ago
Let's consider making except work only for selected columns and not their children
Yes, that might be a good idea. Many operations can be reproduced with remove
+ except
. And this case is just an edge-case.
exceptNew
does look promising, but we could reconsider it, as it's experimental anyway.
Eventually, we might want another way to be able to select a column and keep its parents structure (so select its parents, but delete its siblings). But we can sorta reproduce that already by doing something like:
df.getColumnsWithPaths { colsAtAnyDepth().colsOf<Int>() }
.map { it.path to it }
.toDataFrameFromPairs<Any?>()
Not sure if this is a good first issue
. It may be a difficult one, but if someone's up for it, I'd be happy to help
To reproduce:
This works:
This breaks: