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

Bug report: np.apply_along_axis(np.std, 0, big_dataframe) in main.py #11

Open
acgacgacgacg opened this issue Jul 2, 2021 · 0 comments

Comments

@acgacgacgacg
Copy link

I found np.apply_along_axis(np.std, 0, big_dataframe) was a bug here. The outcome will become something like below.

array([[inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf,
        inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf,
        inf, inf, inf]])

The axis is mistaken and it should be np.apply_along_axis(np.std, 1, big_dataframe, keepdims=True)

I'm not sure if this is due to the numpy version. Currently I'm using 1.19.1

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

No branches or pull requests

1 participant