Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple pandera and pandas when using it with polars #1847

Open
glofru opened this issue Nov 5, 2024 · 0 comments
Open

Decouple pandera and pandas when using it with polars #1847

glofru opened this issue Nov 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@glofru
Copy link

glofru commented Nov 5, 2024

Is your feature request related to a problem? Please describe.

I am using pandera for a project with polars. I noticed that, installing pandera, pandas is installed too, since it is a requirement for pandera. The impact is an increased build size of 80+MB (size of pandas, numpy and pyarrow packages) that polars do not need, as well as pandera when checking polars DataFrame. I tried to uninstall pandas manually with pip and, despite all the imports in my package are either pandera.polars or pandera.typing.polars, the runtime fails because pandas is not installed. This because, in the pandera __init__ file, it imports pandera.backends, that eventually imports pandas.

Describe the solution you'd like
I would like to use pandera with polars without installing pandas.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@glofru glofru added the enhancement New feature or request label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant