43 votes
Accepted

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

...
Zviovich's user avatar
  • 9,308
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
  • 46.8k
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,623
15 votes

How to plot GDPs in this way?

This plot is an example of a "force layout". Note that the same thing is happening on two levels. The continents are fighting for space, as are the countries inside the continents. We need to figure ...
C. E.'s user avatar
  • 70.4k
15 votes
Accepted

Why does WordList["KnownWords"] include so many non-words?

Apparently the list "KnownWords" is very inclusive; it has cardinal numbers, alphabet letters, and many obscure words and abbreviations. You may be more interested to use "CommonWords", ...
Jason B.'s user avatar
  • 67.9k
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
  • 67.9k
15 votes
Accepted

COVID-19 Wolfram Data Repository Retrieval

It never updates for me properly. This is what I do: ...
Szabolcs's user avatar
  • 234k
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
  • 498
14 votes
Accepted

All the food WolframAlpha knows about

Go to a new cell in a notebook and write "=", this will create an orange equality sign in the beginning of the cell. This means that you have entered the free form input mode. Write the name of a food ...
C. E.'s user avatar
  • 70.4k
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
  • 155k
13 votes
Accepted

Where can I see a full list of ExampleData?

Get the categories of example data: ...
Szabolcs's user avatar
  • 234k
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
  • 42k
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
  • 67.9k
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
  • 234k
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
  • 33.6k
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 eventual burnout's user avatar
11 votes

All the food WolframAlpha knows about

I remember from last years conference (Wolfram Technology Conference 2015) that there was a presentation on food entities. It doesn't seem to have been recorded but you can get the presentation (Food ...
Edmund's user avatar
  • 42k
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 eventual burnout'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
  • 46.8k
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

How to refer to amino acids by their single-letter abbreviations in ChemicalData[]?

Well, I guess the only way is to build up a rule to do the conversion for you. I've done just that, so here it is: ...
RunnyKine's user avatar
  • 33k

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