-
Notifications
You must be signed in to change notification settings - Fork 37
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(f, t): create Columns when f
returns tuple / named tuple
#54
Conversation
Codecov Report
@@ Coverage Diff @@
## master #54 +/- ##
==========================================
- Coverage 93.49% 93.11% -0.38%
==========================================
Files 6 6
Lines 922 959 +37
==========================================
+ Hits 862 893 +31
- Misses 60 66 +6
Continue to review full report at Codecov.
|
Should a map that returns a In some sense, all we would need is a constructor for |
I don't think so...
Good idea to add this... One could even convert any Associative to an IndexedTable just by calling this constructor. |
An alternative approach using |
t = IndexedTable([1,2,3], Columns(x=[4,5,6]))
y = [1, 1//2, "x"]
t4 = map(x->(x.x, y[x.x-3]), t) This doesn't work with the alternative approach as |
Turns out it was throwing away the fact that the results are tuples when any field is UnionAll... Fixed in #57 |
Turned out to be a bit complicated...
addresses #52