-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support more integer dtypes in Series (#824)
* Support signed/unsigned dtypes in aggregation for series This is part of #794 * WIP: need to fix casting before subtract * Fix issues after rebase * Fix min/max, categorise and subtract from Series This is to make them work with integers. * Divide will always give a f64 * Make Series.subtract/2 work by mixing int dtypes * More tests to `Series.divide/2` * Fix `Series.in/2` to support mixing integer dtypes * Fix Series.peaks/2 to support more numeric dtypes * Fix Series.quotient/2 to work with mixied int dtypes * Make `Series.rank/2` return a u32 series for ordinal ranking * Document about mixing series of different dtypes on select/2 * Ensure that we are "targeting" the right dtype This changes a little bit the algorithm for the "out_dtype" in some arithmetic operations. * Fix `Series.remainder/2` to work with more int dtypes * Fix "DF.dummies/2" to use :u8 columns instead of :s64 * Refactor to use "right" int types in Series' min/max/sum * Use u32 in Series.argsort/2 * Update lib/explorer/series.ex Co-authored-by: Billy Lanchantin <[email protected]> * Simplify calculation of out_dtype in arithmetic ops * Move cast to rust code in "Series.subtract/2" The idea is to have fewer series in memory. * Fix cast_to_divide * Simplify rule for subtract unsigned integers Overflow may occur, but it's fine.
- Loading branch information
Showing
6 changed files
with
483 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.