Skip to content
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

Add Map transform #187

Merged
merged 9 commits into from
Aug 30, 2023
Merged

Add Map transform #187

merged 9 commits into from
Aug 30, 2023

Conversation

eliascarv
Copy link
Member

@eliascarv eliascarv commented Aug 30, 2023

The Map transform applies a function to table columns using the map function.
The following codes are equivalent:

table |> Map([:a, :b] => ((a, b) -> 2a + b) => :c)
table.c = map((a, b) -> 2a + b, table.a, table.b)

@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2023

Codecov Report

Merging #187 (1aa9dca) into master (9aeb688) will decrease coverage by 4.92%.
The diff coverage is 0.00%.

❗ Current head 1aa9dca differs from pull request most recent head 69444cb. Consider uploading reports for the commit 69444cb to get more accurate results

@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
- Coverage   91.76%   86.85%   -4.92%     
==========================================
  Files          30       31       +1     
  Lines        1008     1065      +57     
==========================================
  Hits          925      925              
- Misses         83      140      +57     
Files Changed Coverage Δ
src/TableTransforms.jl 100.00% <ø> (ø)
src/transforms.jl 98.61% <ø> (ø)
src/transforms/map.jl 0.00% <0.00%> (ø)

@eliascarv eliascarv changed the title [WIP] Add Map transform Add Map transform Aug 30, 2023
@eliascarv eliascarv requested a review from juliohm August 30, 2023 19:36
@juliohm juliohm merged commit 10d470d into master Aug 30, 2023
7 of 8 checks passed
@juliohm juliohm deleted the map branch August 30, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants