Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by orlp

3 days ago

    from polars import col as C

    df.select(C.x, y = C.w / C.z)

3 comments

orlp

Reply

__mharrison__  3 days ago

This is the way. Favor keyword arguments to alias.

dkga  3 days ago

Still, it’s a very good approximation but still an approximation to the more ergonomic and expressive tidyverse syntax

  • sanderjd  3 days ago

    One person's "ergonomic and expressive" is another person's "wait what in the world is actually going on here".

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities