Skip to content

Commit

Permalink
add Numeric list
Browse files Browse the repository at this point in the history
  • Loading branch information
librasteve committed Jun 2, 2023
1 parent ce6026d commit 59daafe
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/Dan/Polars.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,15 @@ role Series does Positional does Iterable is export {
%!index{$k}:exists
}
# Extra support for + numeric and [+] reduce via list and Numeric
method Numeric {
@!data.Numeric
}
method list {
@!data.list
}
}
role Categorical does Series is export {
Expand Down Expand Up @@ -692,6 +701,16 @@ role DataFrame does Positional does Iterable is export {
method hyper {
@!data.hyper
}
# Extra support for + numeric and [+] reduce via list and Numeric
method Numeric {
@!data.Numeric
}
method list {
@!data.list
}
### Splicing ###
#| reset attributes
Expand Down

0 comments on commit 59daafe

Please sign in to comment.