Skip to content

Commit

Permalink
fix doc building issues
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Sep 11, 2024
1 parent b0dade7 commit f9102f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/polars-core/src/chunked_array/temporal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn parse_time_zone(tz: &str) -> PolarsResult<Tz> {
///
/// E.g. +01:00 -> Etc/GMT-1
///
/// Note: the sign appears reversed, but is correct, see https://en.wikipedia.org/wiki/Tz_database#Area:
/// Note: the sign appears reversed, but is correct, see <https://en.wikipedia.org/wiki/Tz_database#Area>:
/// > In order to conform with the POSIX style, those zone names beginning with
/// > "Etc/GMT" have their sign reversed from the standard ISO 8601 convention.
/// > In the "Etc" area, zones west of GMT have a positive sign and those east
Expand Down
6 changes: 3 additions & 3 deletions crates/polars-core/src/frame/horizontal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ impl DataFrame {
///
/// # Safety
/// The caller must ensure:
/// - the length of all [`Series`] is equal to the height of this [`DataFrame`]
/// - the length of all [`Column`] is equal to the height of this [`DataFrame`]
/// - the columns names are unique
pub unsafe fn hstack_mut_unchecked(&mut self, columns: &[Column]) -> &mut Self {
self.columns.extend_from_slice(columns);
self
}

/// Add multiple [`Series`] to a [`DataFrame`].
/// Add multiple [`Column`] to a [`DataFrame`].
/// The added `Series` are required to have the same length.
///
/// # Example
///
/// ```rust
/// # use polars_core::prelude::*;
/// fn stack(df: &mut DataFrame, columns: &[Series]) {
/// fn stack(df: &mut DataFrame, columns: &[Column]) {
/// df.hstack_mut(columns);
/// }
/// ```
Expand Down
4 changes: 4 additions & 0 deletions crates/polars-plan/src/dsl/expr_dyn_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ impl<'a> Deserialize<'a> for SpecialEq<Arc<dyn ColumnsUdf>> {
}
#[cfg(not(feature = "python"))]
{
_ = deserializer;

Err(D::Error::custom(
"deserialization not supported for this 'opaque' function",
))
Expand Down Expand Up @@ -394,6 +396,8 @@ impl<'a> Deserialize<'a> for GetOutput {
}
#[cfg(not(feature = "python"))]
{
_ = deserializer;

Err(D::Error::custom(
"deserialization not supported for this output field",
))
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ version_check = { workspace = true }

[features]
nightly = []
serde = ["dep:serde", "serde/derive"]
serde = [ "dep:serde", "serde/derive", "polars-utils/serde" ]

0 comments on commit f9102f9

Please sign in to comment.