Skip to main content
27 votes

Can I build my own curated data function?

Update: Template Notebook I finally got around to finishing my curated data template notebook. You can see it here Currently it only supports single-type data paclets, but a template for multi-type ...
b3m2a1's user avatar
  • 47k
16 votes
Accepted

Chemical data of Lactic acid

I've struggled with How Mathematica expects the end-user to interact with knowledge databases for quite some time. While this solution is likely not universal, it has been reasonably successful for ...
bobthechemist's user avatar
16 votes
Accepted

Reproducing the XKCD "Consensus New Year" plot

Building off the other answer, CountryData has the data for the time zones for each country, as well as their population. So we can split each country ...
SPPearce's user avatar
  • 5,673
15 votes
Accepted

How to use an image as a number?

To minimize confusion I've reduced the code to one approach. ...
Kuba's user avatar
  • 137k
15 votes

ChemistryData — where is specific gravity?

Specific gravity is not on the property list of curated chemical properties, so you can't get it directly. However, here is a function that will compute it. ...
m_goldberg's user avatar
  • 108k
15 votes

Why will Wolfram CountryData not give population data after 2014 (e.g. for the US)?

CountryData does appear to be out of date, and that is a shame. Many of the XXXData functions now act as wrappers to call ...
Jason B.'s user avatar
  • 69.2k
15 votes
Accepted

COVID-19 Wolfram Data Repository Retrieval

It never updates for me properly. This is what I do: ...
Szabolcs's user avatar
  • 236k
14 votes

What is the closest star to Earth other than the sun?

To clarify why it is that your command did not work, here is what your free-form input was translated to: ...
Grayscale's user avatar
  • 518
14 votes
Accepted

Where can I see a full list of ExampleData?

Get the categories of example data: ...
Szabolcs's user avatar
  • 236k
14 votes
Accepted

How to get the expression of a special function?

reps = Entity["MathematicalFunction", "Gamma"][ "IntegralRepresentations"] reps[[2]][z] EDIT:...
Bob Hanlon's user avatar
  • 160k
13 votes

Creating a Stock Dataset

Dataset has been designed for hierarchical data and will fit your problem well. You should start by mapping out the hierarchy and then building a function that ...
Edmund's user avatar
  • 42.4k
13 votes
Accepted

Coloring strands in braids

Dunno if it's any better than @Jason B.'s answer, but I think "BraidImageData" gives you the graphics objects used in the image, which you can play around with as ...
Anne's user avatar
  • 1,257
12 votes

How do I plot coordinates (latitude and longitude pairs) on a geographic map?

Just in case anyone comes across this post in a search, here is a one-liner here for version 10 and after. If latlong is the list from the OP, then you can do this ...
Jason B.'s user avatar
  • 69.2k
12 votes
Accepted

How can I use Mathematica to sort the US Congressional Districts by Perimeter÷Area

The US congressional districts are available as geographic entities in the form Entity["USCongressionalDistrict", "Illinois:District7"] As such, in principle you ...
Emilio Pisanty's user avatar
12 votes

Completeness of wolfram database of graphs

We can get the number of connected graphs on $k$ nodes that are contained in GraphData as follows: ...
Szabolcs's user avatar
  • 236k
12 votes

Reproducing the XKCD "Consensus New Year" plot

While it takes a lot longer to get the data, one can go a bit more granular by using "AdministrativeDivision" rather than ...
chuy's user avatar
  • 11.2k
12 votes
Accepted

How to dynamically select a country on a map using the cursor

Here is an approach using DynamicModule, together with EventHandler wrappers around the individual ...
Lukas Lang's user avatar
  • 34.2k
11 votes
Accepted

SpaceFillingMolecularPlot using CAS number of a compound

added 4/26/2020 Molecule[] + MoleculePlot3D[] can now do this directly in version 12.1: ...
J. M.'s missing motivation's user avatar
11 votes
Accepted

Proteins, ProteinData, WolframAlpha

Here's a workaround that directly queries the PDB search API and returns the first num search results as a Dataset[]. The ...
J. M.'s missing motivation's user avatar
11 votes

Hosting a curated data function / server in Google Drive

The trick here is that we'll host our paclets in Google Drive, but deploy a paclet server in the Wolfram Cloud that will route to the download links. In doing so we get the full 15GB of Google Drive ...
b3m2a1's user avatar
  • 47k
11 votes
Accepted

ChemicalData returns the correct result for "Sulfuric" but an empty list for "Sulfuric Acid". Why?

Consider using a dedicated search pattern making function. Here is an example. ...
Anton Antonov's user avatar
11 votes

Extraneous elements in "Europe countries" list

You may be looking for EntityClass["Country", "EuropeanUnion"] instead. Otherwise, if you really want to not include Russia and Moldova: ...
Carl Lange's user avatar
  • 13.1k
11 votes

Functions for total Covid-19 cases and deaths in a US county

Make sure you got the latest, and not running on old cache: ResourceUpdate[ResourceObject["Epidemic Data for Novel Coronavirus COVID-19"]] and get the ...
Vitaliy Kaurov's user avatar
10 votes
Accepted

How to download and combine S&P 500 stock prices?

From the question formulation I am not sure what is the desired end result: a time series or a table. It seems to be the latter but I give solutions for both. I am using a sample of the stocks for ...
Anton Antonov's user avatar
10 votes
Accepted

Change units in PlanetData["Earth", "Diameter"] from miles to km

You can use the UnitSystem option of EntityProperty, ...
Jason B.'s user avatar
  • 69.2k
10 votes

Lexical similarity graph

First grab the list of European languages. I use Ctrl-= to find a "Country" entity class The result has some missing values, and some languages are in there multiple times, so we clean it up a bit. ...
Jason B.'s user avatar
  • 69.2k
10 votes

Why will Wolfram CountryData not give population data after 2014 (e.g. for the US)?

You should report to WRI. As a workaround you may use the entity functions instead; it is a bit verbose. First you can get a list of qualifier values of an ...
Edmund's user avatar
  • 42.4k
9 votes

How to program a click panel for chemical elements (like a periodic table)?

I recently needed to do something like this. Here's a simplified version of what I came up with: ...
J. M.'s missing motivation's user avatar
9 votes
Accepted

Use Wolfram curated databases to determine how many randomly chosen people are needed to have a 50% chance two live in the same or adjacent states?

Answer is 3.5 when including District of Columbia: ...
Coolwater's user avatar
  • 20.4k
9 votes
Accepted

How to find what you want in curated data?

(See also this: http://reference.wolfram.com/language/guide/KnowledgeRepresentationAndAccess.html) This is all in the docs, but maybe it's good to lay out here. If you need classes, use ...
b3m2a1's user avatar
  • 47k

Only top scored, non community-wiki answers of a minimum length are eligible