|
|
|
|
|
by ritchie46
1167 days ago
|
|
This is far more elegant in pandas due to the implicit behavior of the index. But you can move the explicitness of polars behind a function. A more explicit API should not hurt maintainability if we structure our code right. |
|
One thing that would be nice to do is set an (and forgive me, I understand the aversion to the word "index") index on the polars dataframe. Not a real index, just a list of columns that are specified as "metadata columns". This wouldn't actually affect any internal state of the data, but what it would do is affect the path of certain operations. Like if an "index" is set, then `+` does the join from above, rather than the current standard `+` operation.
In any case I realize this is a major philosophical divergence from the polars way of thinking, so more just shooting shit than offering real suggestions.