Message Boards Message Boards

1 Reply
1 Total Likes
View groups...
Share this post:

"Show Populations around Amusement Parks" example has error I want to fix

Posted 10 years ago

I'm new to Mathematica and the Wolfram language, and I am using some example projects to gain familiarity. In particular, now I'm looking at two examples.

Show Populations around Amusement Parks:

Plot the Density of Library Books in the United States:

For both of these examples, In[4] causes errors. The code attempts to do a transpose operation on the symbolic Entities, and it fails.

I'm trying to resolve this. In particular, I'm trying to master the visualization of plotting on maps, and it would really help to see what data formats are necessary because I can put in different formats into the final map generation stage and get wildly different results. So, the fact that it is impossible to understand what the coordinate data is, in these non-working examples, is a real problem for me. Any advice would be gratefully received. Thanks.


These are cool examples, but they're probably not the best examples to study if you're new to Mathematica. A lot of these examples are really meant to show off and be fancy. I recommend looking at the examples in the documentation:

The documentation is also great because it's available in Mathematica itself. You don't need to copy and paste code. The documentation is a live document that you can play with and make changes to.

The code looks like it written fairly early and didn't reflect some changes. For example, "Library" isn't really a kind of Entity anymore. It's been broken up into "LibraryBranch" and "LibrarySystem". So the first piece of code for the Library example probably should be

allLibraries = EntityValue["LibraryBranch", "Entities"]

Thank you for letting us know about this issue. I will contact the relevant people so that these examples get updated.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract