Skip to content

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed May 21, 2024
1 parent 3866458 commit 1fa366b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/polars-core/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,13 +738,9 @@ impl DataFrame {
/// let df1: DataFrame = DataFrame::default();
/// assert!(df1.is_empty());
///
/// let df2: DataFrame = df!("First name" => &[],
/// "Last name" => &[])?;
/// assert!(df2.is_empty());
///
/// let df3: DataFrame = df!("First name" => &["Forever"],
/// let df2: DataFrame = df!("First name" => &["Forever"],
/// "Last name" => &["Alone"])?;
/// assert!(!df3.is_empty());
/// assert!(!df2.is_empty());
/// # Ok::<(), PolarsError>(())
/// ```
pub fn is_empty(&self) -> bool {
Expand Down

0 comments on commit 1fa366b

Please sign in to comment.