lifter icon indicating copy to clipboard operation
lifter copied to clipboard

Pandas compatibility

Open agateblue opened this issue 9 years ago • 2 comments

I'm not really familiar with this library, so I don't know exactly what it could mean to be pandas compatible, and especially against which data structure it would be really useful. Does anyone use pandas out here and would have some use cases involving lifter ?

agateblue avatar Feb 21 '16 11:02 agateblue

I haven't used pandas in a long while now. But I can say that this is the kind of stuff I wished there would be when i was using pandas.

Everything in pandas generally (for typical use cases) revolve around loading data into a DataFrame(df) objects and then "queiying" them.

To add support for pandas (as a start, at least), I guess you could create a load function for a df and implement the current filters to return data from the df without complicated array operations, at least basic selections as in the following link: http://pandas.pydata.org/pandas-docs/stable/10min.html#selection

nithin-bose avatar Feb 21 '16 14:02 nithin-bose

Thanks for your input @nithin-bose!

I think a contrib.pandas module with a DataFrameQuerySet would be the way to go, but I'm not confident enough in my little pandas knowledge to start the implementation myself.

agateblue avatar Feb 21 '16 17:02 agateblue