Skip to content

Commit

Permalink
re-export arrow and fix error message (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Feb 9, 2022
1 parent b1de1c2 commit 407ad40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion polars/polars-core/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ impl DataFrame {
/// ```
pub fn rename(&mut self, column: &str, name: &str) -> Result<&mut Self> {
self.select_mut(column)
.ok_or_else(|| PolarsError::NotFound(name.into()))
.ok_or_else(|| PolarsError::NotFound(column.into()))
.map(|s| s.rename(name))?;

let unique_names: AHashSet<&str, ahash::RandomState> =
Expand Down
2 changes: 2 additions & 0 deletions polars/src/export.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// re-exports for utility
pub use polars_core::export::arrow;
1 change: 1 addition & 0 deletions polars/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
//! ## User Guide
//! If you want to read more, [check the User Guide](https://pola-rs.github.io/polars-book/).
pub mod docs;
pub mod export;
pub mod prelude;

#[cfg(feature = "dtype-categorical")]
Expand Down

0 comments on commit 407ad40

Please sign in to comment.