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

ENH: function to automatically convert columns to categorical type if needed #22

Closed
axelfahy opened this issue Aug 13, 2019 · 1 comment · Fixed by #26
Closed

ENH: function to automatically convert columns to categorical type if needed #22

axelfahy opened this issue Aug 13, 2019 · 1 comment · Fixed by #26
Assignees
Labels
enhancement New feature or request

Comments

@axelfahy
Copy link
Owner

Add function to automatically cast the column to categorical type if it is memory efficient.

@axelfahy axelfahy added the enhancement New feature or request label Aug 13, 2019
@rudolfhohn
Copy link
Collaborator

rudolfhohn commented Aug 13, 2019

Integrate into bff the function convert_df from: https://gist.github.com/rudolfhohn/f64d771a08d78201c9dd1d4571fd3e81#file-memory_optimization-py

Published in Medium article From Pandas-wan to Pandas-master

axelfahy pushed a commit that referenced this issue Aug 19, 2019
If more memory efficient, the functions cast the type of the column to
category dtype.

Closes #22.
axelfahy pushed a commit that referenced this issue Nov 22, 2019
If more memory efficient, the functions cast the type of the column to
category dtype.

Closes #22.
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

Successfully merging a pull request may close this issue.

2 participants