-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ENH] Add an option to Concatenate to merge columns with different formulae #4831
[ENH] Add an option to Concatenate to merge columns with different formulae #4831
Conversation
5498f8f
to
a86c9b9
Compare
Codecov Report
@@ Coverage Diff @@
## master #4831 +/- ##
==========================================
- Coverage 84.12% 84.11% -0.02%
==========================================
Files 282 277 -5
Lines 57327 56523 -804
==========================================
- Hits 48229 47545 -684
+ Misses 9098 8978 -120 |
4c4c79a
to
6583592
Compare
This PR works as intended for my use case. However, it crashes on some Text data. I didn't spend much time exploring this, but it seems like Concatenate treats corpora as Tables instead of Corpus. When creating a new instance, it should be the same as type as input. If types don't match, we already have an error (L285).
|
Thanks, @ajdapretnar. I know next to nothing (or rather nothing) about |
6583592
to
fab7132
Compare
As discussed on Slack, I now replaced |
Works well, except that now widget does something else by default. Two possible solutions:
@janezd, which one do you prefer? |
fab7132
to
d3df2b0
Compare
I changed the default to |
Issue
Ref gh-4791.
Description of changes
compute_value
is removed only when two variables with the same name are merged, that is, if a variable of the same type appears in the same part (attributes, classes, metas) with different compute_value. (The widget does not merge variables that appear in different parts.)The option applies only in absence of primary table, so the related checkbox is in a box that is enabled only when there is no primary table.
Includes