Skip to content

Consider Narwhals to enable multiple dataframe types for free #96

@AdrianDAlessandro

Description

@AdrianDAlessandro

Currently pycsvy manually implements different read and write functionality for a few different libraries (pandas, polars, numpy). There already exists a tool that unifies the API between some of these libraries, narwhals.

An easy first option here is to use write_csv for the write functions.

While there currently isn't a read_csv function in narwhals, there is an open issue discussing whether to implement one.

Another feature of narwhals that can be useful is it includes some tooling for checking array types and checking for successful imports that is currently done manually https://narwhals-dev.github.io/narwhals/api-reference/dependencies/#narwhals.dependencies.is_numpy_array

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions