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

cannot convert float NaN to integer #15

Open
wby920920 opened this issue Dec 20, 2022 · 1 comment
Open

cannot convert float NaN to integer #15

wby920920 opened this issue Dec 20, 2022 · 1 comment

Comments

@wby920920
Copy link

When I analyze, the following error occurs. How to solve it?
82eafee8c9d0c75b2f32e67d4167fda

@egyptdj
Copy link
Owner

egyptdj commented Apr 11, 2023

Dear @wby920920

I am sorry for my late response.
I am not sure which part the error is coming from, but would suspect output of the network_count.values() contain float NaN values. Maybe adding a line for replacing all NaN values of the network_count dict to some integer (e.g. 0) before calling ax.pie would fix the problem.
I would welcome a pull request if the problems are fixed!

Thank you.

@egyptdj egyptdj closed this as completed Apr 11, 2023
@egyptdj egyptdj reopened this Apr 11, 2023
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

2 participants