Open MarcoGorelli opened 3 days ago
Currently, doing something like
df.group_by('a').agg((nw.col('b')+nw.col('c')).sum().alias('d'))
raises a warning for pandas-like dataframes
The solution to avoid the warning is to instead do
df.with_columns(d=nw.col('b')+nw.col('c')).group_by('a').agg(nw.sum('d'))
I think it would be good to have a page in the docs which explains this, perhaps next to this page: https://narwhals-dev.github.io/narwhals/other/pandas_index/, i.e. in docs/other/group_by.md
docs/other/group_by.md
I will work on this Issue.
Currently, doing something like
raises a warning for pandas-like dataframes
The solution to avoid the warning is to instead do
I think it would be good to have a page in the docs which explains this, perhaps next to this page: https://narwhals-dev.github.io/narwhals/other/pandas_index/, i.e. in
docs/other/group_by.md