Skip to content

Commit

Permalink
expose libs to polars (#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jan 25, 2022
1 parent ea383f6 commit a3311a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polars/polars-core/src/chunked_array/ops/interpolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ where
fn interpolate(&self) -> Self {
// This implementation differs from pandas as that boundary None's are not removed
// this prevents a lot of errors due to expressions leading to different lengths
if !self.has_validity() {
if !self.has_validity() || self.null_count() == self.len() {
return self.clone();
}

Expand Down
2 changes: 2 additions & 0 deletions polars/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@
pub mod docs;
pub mod prelude;

#[cfg(feature = "temporal")]
pub use polars_core::time;
#[cfg(feature = "dtype-categorical")]
pub use polars_core::toggle_string_cache;
pub use polars_core::{chunked_array, datatypes, doc, error, frame, functions, series, testing};
Expand Down
5 changes: 4 additions & 1 deletion polars/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
pub use polars_core::prelude::QuantileInterpolOptions;
pub use polars_core::frame::groupby::*;
pub use polars_core::{prelude::*, utils::NoNull};
#[cfg(feature = "polars-io")]
pub use polars_io::prelude::*;

#[cfg(feature = "lazy")]
pub use polars_lazy::prelude::*;

#[cfg(feature = "temporal")]
pub use polars_core::time::*;

0 comments on commit a3311a6

Please sign in to comment.