Skip to content

Commit

Permalink
don't parallelize upsample (#3836)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jun 28, 2022
1 parent 1f6369b commit a15b6b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion polars/polars-time/src/upsample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ fn upsample_impl(
} else {
source.groupby(by)
};
gb?.par_apply(|df| upsample_impl(&df, vec![], index_column, every, offset, false))
// don't parallelize this, this may SO on large data.
gb?.apply(|df| {
let index_column = df.column(index_column)?;
upsample_single_impl(&df, index_column, every, offset)
})
}
}

Expand Down

0 comments on commit a15b6b1

Please sign in to comment.