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

Statistical Information is not Displayed on Type Casting #2

Open
ZenithClown opened this issue May 7, 2022 · 0 comments
Open

Statistical Information is not Displayed on Type Casting #2

ZenithClown opened this issue May 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ZenithClown
Copy link
Owner

Overview

A type casting function is developed (based on this link) to reduce the memory usage of a dataframe. However, using the function the statistical information is missing when using pd.describe() feature.

Steps to Reproduce

  1. Use the pd.describe() method w/o any modifications, results in:
    image
  2. Now, define/import reduce_mem_usage
  3. Using the same function, the output is changed as:
    image

Expected Behavior

Should be able to use all statistical features.

Actual Behavior

Direct describe function is not working, but using native numpy functions (like np.quantile(trn_data["f_00"], 0.95)) works.

Context

Python Version : 3.9
Operating System : Windows 10 (Version: 21H2, OS Build: 19044.1682)

@ZenithClown ZenithClown added the bug Something isn't working label May 7, 2022
@ZenithClown ZenithClown transferred this issue from another repository Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant