Skip to content

Commit

Permalink
Update struct.md
Browse files Browse the repository at this point in the history
StructChunked::new is no longer available. I think from_series is the correct replacement
  • Loading branch information
erichutchins authored Aug 16, 2024
1 parent d5d10e5 commit ba83733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn shift_struct(inputs: &[Series]) -> PolarsResult<Series> {
})
.collect::<Vec<_>>();
fields.push(field_0);
StructChunked::new(struct_.name(), &fields).map(|ca| ca.into_series())
StructChunked::from_series(struct_.name(), &fields).map(|ca| ca.into_series())
}
```

Expand Down

0 comments on commit ba83733

Please sign in to comment.