pymc icon indicating copy to clipboard operation
pymc copied to clipboard

ENH: Replace pandas dependence/use with narwhals

Open cluhmann opened this issue 6 months ago • 6 comments

Before

No response

After

No response

Context for the issue:

With the rise in popularity of packages such as polars, arrow, and others PyMC's dependence on pandas is looking less and less universally useful. Narwhals was developed for developers of python libraries that consumes dataframes who wish wishing to make their libraries completely dataframe-agnostic. So maybe we consider using that instead of pandas per se? Narwhals has no dependencies and has negligible overhead, so it seems relatively lightweight.

It will require some refactoring as it relies on (as subset of) the polars API.

cluhmann avatar Aug 15 '24 20:08 cluhmann