Skip to content

Conversation

@spacewaterbear
Copy link

convert np.float to float (native python). It cannot be jsonify otherwise

convert np.float to float (native python). It cannot be jsonify otherwise
@amueller
Copy link
Owner

Hey, thanks for the PR. What is your goal?

@spacewaterbear
Copy link
Author

Hey, thanks for the PR. What is your goal?

Hello, I use your library to return the .layout_ of a WordCloud and return it as a json. For that I use jsonify from flask but it return an error when there are np.int inside

@amueller
Copy link
Owner

Sorry for the slow reply. You could just do this conversion on your side, right? It should be pretty easy to iterate over .layout_ and do the casting.

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

Successfully merging this pull request may close these issues.

2 participants