larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

Implement Python dataframe interchange protocol #1030

Open gdementen opened 1 year ago

gdementen commented 1 year ago

Pandas 1.5 introduced a new dataframe protocol via the __dataframe__ method.

With some luck, this would make LArray objects work as input with libraries like statsmodels, when those libraries support that (which should happen relatively quickly I suppose).

https://data-apis.org/dataframe-protocol/latest/API.html