Replies: 1 comment 1 reply
-
In my oinion, just for naming sake, if already implementing count_rows, df.count will do, why introduce a new function name? What else would the count of a dataframe mean? I do still believe that len(df) is a very common use case, which you almost always have to run to validate your splits, filters, "where()" and so on, and even though it is expensive, there is no way around it beside an efficient implementation and cache on the dataframe level. And if it is very common to use, then using a standard pythonic len is nicer than teaching the count, which comes with a small friction from Polars/pandas. Maybe moving the cache around when using with_column and cleaning it when running a filter can help with some of the pain behind the scenes. |
Beta Was this translation helpful? Give feedback.
-
Summary
We need an easy way for users to pull down the number of rows in a DataFrame as an integer
Please upvote this discussion and share your use-cases if this is a feature you would like to see implemented!
Proposal
Beta Was this translation helpful? Give feedback.
All reactions