-
Notifications
You must be signed in to change notification settings - Fork 22
Cannot view data with mapbox #4
Comments
I was able to recreate this error. Oddly enough even after converting AGE/CUST_ID/POSTALCODE (the only integer columns) to strings, I still got the same error. The good part is that the google maps viewer works without having to change the data. |
I don't think the problem is with our data. I think the problem is with the JSON content the API is sending back. The JSON response object received from the API in the example has integers in it (1 instead of "1"). Maybe PixieDust's JSON handler is not equipped to deal with ints in the JSON object retrieved? |
@vabarbosa i think you're more familiar with pixiedust than I am, can you look at this issue? |
I don't understand the pixidust codebase too much or the API response object to be able to rectify the issue. Do you know anyone in IBM who have worked on Pixiedust? |
@Ali-Parandeh i'm hoping @vabarbosa or @DTAIEB can confirm if this is a bug in pixiedust or not. |
@Ali-Parandeh @stevemar the PixieDust MapBox renderer does is trying to convert the DataFrame data to GeoJSON. for that, it requires/expects the selected Key fields to be a columns that represents in this case, the Key field ( PixieDust's MapBox renderer works only with data that have columns containing latitude & longitude values. this is a current limitation. for data with State/Country names, you should use the Google Map renderer instead. |
When trying to view customer density by location with a map using mapbox (and my own token), this error is given.
the JSON object must be str, bytes or bytearray, not 'int'
Need to include further code in the notebook to format data appropriately
The text was updated successfully, but these errors were encountered: