Skip to content

Commit

Permalink
Removed methods for Polars
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 10, 2024
1 parent 0af5003 commit 5f6bca6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 60 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.14.1 (unreleased)
## 0.15.0 (unreleased)

- Added selectors
- Added `config`, `string_cache`, and `cs` methods to `Polars`
Expand All @@ -11,6 +11,10 @@
- Added `validate` option to `join` method
- Fixed `limit` method for `LazyFrame`
- Fixed `read_database` connection leasing for Active Record 7.2
- Removed `get_dummies` from `Polars` (use `df.to_dummies` instead)
- Removed `to_list` from `Polars` (use `col(name).list` instead)
- Removed `spearman_rank_corr` from `Polars` (use `corr(method: "spearman")` instead)
- Removed `pearson_corr` from `Polars` (use `corr(method: "pearson")` instead)

## 0.14.0 (2024-09-17)

Expand Down
1 change: 0 additions & 1 deletion lib/polars.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
require_relative "polars/dynamic_group_by"
require_relative "polars/exceptions"
require_relative "polars/expr"
require_relative "polars/functions"
require_relative "polars/functions/as_datatype"
require_relative "polars/functions/col"
require_relative "polars/functions/eager"
Expand Down
57 changes: 0 additions & 57 deletions lib/polars/functions.rb

This file was deleted.

2 changes: 1 addition & 1 deletion test/lazy_frame_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_pearson_corr
})
.lazy
.select(
Polars.pearson_corr("a", "b")
Polars.corr("a", "b", method: "pearson")
)
.collect
assert_in_delta 0.989778, df["a"][0]
Expand Down

0 comments on commit 5f6bca6

Please sign in to comment.