Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example shown in polars.Expr.bin.decode shows the encode method instead #17469

Closed
heshamdar opened this issue Jul 7, 2024 · 1 comment
Closed
Labels
accepted Ready for implementation documentation Improvements or additions to documentation good first issue Good for newcomers P-low Priority: low

Comments

@heshamdar
Copy link

Description

Very minor, the code example just needs to be changed to show the decode method instead of encode

colors = pl.DataFrame(
    {
        "name": ["black", "yellow", "blue"],
        "code": [b"\x00\x00\x00", b"\xff\xff\x00", b"\x00\x00\xff"],
    }
)
colors.with_columns(
    pl.col("code").bin.encode("hex").alias("encoded"),
)

Link

https://docs.pola.rs/api/python/dev/reference/expressions/api/polars.Expr.bin.decode.html#polars-expr-bin-decode

@heshamdar heshamdar added the documentation Improvements or additions to documentation label Jul 7, 2024
@nameexhaustion nameexhaustion added good first issue Good for newcomers accepted Ready for implementation P-low Priority: low labels Jul 8, 2024
@github-project-automation github-project-automation bot moved this to Ready in Backlog Jul 8, 2024
@jonaylor89
Copy link
Contributor

I've been looking for something low-hanging to contribute. I can send over a PR today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation documentation Improvements or additions to documentation good first issue Good for newcomers P-low Priority: low
Projects
Archived in project
Development

No branches or pull requests

3 participants