You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it seems by using a full Int64 array for the codes, plus the categorires we are actually using MORE memory to store a Categorical. Because the pointers are the same sized as an object array (plus have the categories).
So need to change the codes store to use a smaller dtype of int. Maybe switch this to a plain ndarray, and use dtype=uint8. Would provide a lot of benefit
The text was updated successfully, but these errors were encountered:
So it seems by using a full Int64 array for the codes, plus the categorires we are actually using MORE memory to store a Categorical. Because the pointers are the same sized as an object array (plus have the categories).
So need to change the codes store to use a smaller dtype of int. Maybe switch this to a plain ndarray, and use
dtype=uint8
. Would provide a lot of benefitThe text was updated successfully, but these errors were encountered: