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

Add method to estimate DataFrame memory use #1034

Merged
merged 8 commits into from
Nov 30, 2024

Conversation

thbar
Copy link
Contributor

@thbar thbar commented Nov 30, 2024

See:

This adds Explorer.DataFrame.estimated_size/1, which leverages https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.estimated_size.html (thanks @billylanchantin for the pointer) to "return an estimation of the total (heap) allocated size of the DataFrame".

Copy link
Contributor

@billylanchantin billylanchantin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks! This seems like a handy function :)

@billylanchantin billylanchantin merged commit fb613c9 into elixir-explorer:main Nov 30, 2024
4 checks passed
@thbar thbar deleted the expose-memory-use branch November 30, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants