projectmesa / mesa-frames

Extension of mesa for performance and scalability
https://projectmesa.github.io/mesa-frames
Apache License 2.0
13 stars 4 forks source link

Additional methods and fixes to DataFrameMixin #43

Closed adamamer20 closed 1 month ago

adamamer20 commented 1 month ago

This PR adds some useful methods to DataFrameMixin and fixes the logic of some methods in pandas and polars. Added methods:

rht commented 1 month ago

Tangent: it seems to me it could be its useful own package for a general DF with either pandas or Polars backend. Useful for people who can't decide which one to use, like us, haha. Otherwise, to add a selling point, we could implement R's dplyr-style grammar of data manipulation. Though there is already https://github.com/machow/siuba.

adamamer20 commented 1 month ago

Agree! A separate package with a unique interface for any DF library could be worthwile, especially since there are methods which are almost the same with only a name change. However right now I wrote up just the methods I needed so far. We can think about it when the library is a bit more mature.