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

Appending np.nan to bool ndarray changes its dtype #8

Open
kaelzhang opened this issue Apr 28, 2020 · 0 comments
Open

Appending np.nan to bool ndarray changes its dtype #8

kaelzhang opened this issue Apr 28, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@kaelzhang
Copy link
Owner

Tell us about your environment

  • Platform (Windows / MacOs / Linux) and version: macOS
  • What kind of virtual env do you use ? (virtualenv / anaconda / None): conda

Run the following command and paste the output

python -V
pip list | grep pandas
Python 3.8.1
pandas             1.0.3
stock-pandas       0.23.1

code

stock['kdj.j / kdj.d'] should be of bool dtype, but appending np.nan to the series will change its dtype to np.float64

Actually, it is not a bug of stock-pandas, but the behavior of numpy

@kaelzhang kaelzhang added the bug Something isn't working label Apr 28, 2020
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