ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
844 stars 124 forks source link

Refactor dataframe support to use narwhals generic dataframes #2013

Open fubuloubu opened 2 months ago

fubuloubu commented 2 months ago

Overview

We force our users to use pandas dataframes to reduce a dependency on polars, which is less widely supported than polars. https://github.com/MarcoGorelli/narwhals is a really cool project that makes a generic compatibility layer that would just let us delegate to whatever the user has installed in order to convert the dataframes into the format they desire. It is also particularly cool in that it supports lazy dataframe operations universally, which could be useful for ape users.

Specification

TBD

Dependencies

n/a

linear[bot] commented 2 months ago

APE-1729 Refactor dataframe support to use narwhals generic dataframes