Skip to content

Commit

Permalink
Fix melt parameters to be different types (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilsley committed Jan 23, 2022
1 parent 1fe5e2e commit 90eb9e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polars/polars-core/src/frame/explode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ impl DataFrame {
/// | "a" | 5 | "D" | 6 |
/// +-----+-----+----------+-------+
/// ```
pub fn melt<I, S>(&self, id_vars: I, value_vars: I) -> Result<Self>
pub fn melt<I, J, S>(&self, id_vars: I, value_vars: J) -> Result<Self>
where
I: IntoIterator<Item = S>,
J: IntoIterator<Item = S>,
S: AsRef<str>,
{
let ids = self.select(id_vars)?;
Expand Down

0 comments on commit 90eb9e6

Please sign in to comment.