Skip to content

Commit

Permalink
remove failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Oct 8, 2024
1 parent fcd7bce commit c9abf96
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions crates/polars-core/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3591,25 +3591,4 @@ mod test {
assert_eq!(df.get_column_names(), &["a", "b", "c"]);
Ok(())
}

#[test]
fn test_empty_df_hstack() -> PolarsResult<()> {
let mut base = df!(
"a" => [1, 2, 3],
"b" => [1, 2, 3]
)?;

// has got columns, but no rows
let mut df = base.clear();
let out = df.with_column(Series::new("c".into(), [1]))?;
assert_eq!(out.shape(), (0, 3));
assert!(out.iter().all(|s| s.len() == 0));

// no columns
base.columns = vec![];
let out = base.with_column(Series::new("c".into(), [1]))?;
assert_eq!(out.shape(), (1, 1));

Ok(())
}
}

0 comments on commit c9abf96

Please sign in to comment.