Wolfram Knowledgebase | Things to Try

Make edits and run any piece of code by clicking inside the code and pressing
+
.
Instant Access to Real-World Data. Compute with and visualize a growing collection of carefully curated data across hundreds of essential domains, seamlessly integrated with the entire Wolfram Language.

Compute with Geographic Data

Create a map with geographic data (this may take longer to evaluate):
Run
In[]:=
GeoRegionValuePlot
Europe
COUNTRIES
->"GreenhouseGasEmissions",MissingStyle->Blue
Out[]=
Retrieve a collection of data for each country:
Run
In[]:=
rawdata=EntityValueEntityClass["Country","Countries"],
poverty fraction
,
GDP
nominal|per capita
,
population
,
continent
;
Delete missing data and group by continent:
Run
In[]:=
cleandata=GroupBy[DeleteMissing[rawdata,1,1],Last,MapApply[Function[{pov,gdp,pop},{pov,QuantityMagnitude[gdp],pop}]]];
Plot the cleaned data:
Run
In[]:=
BubbleChartcleandata,

Compute with Physical Quantities

Retrieve wavelengths for a class of spectral lines:
Run
In[]:=
wavelengths=EntityValue
helium I
4000
Å
to
7500
Å
SPECTRAL LINES
,
observed wavelength
;
Plot these lines in the visible spectrum:
Run
In[]:=
GraphicsMap[{ColorData["VisibleSpectrum"][#],Line[{{#,0},{#,1}}]}&,QuantityMagnitude[wavelengths,"Nanometers"]],
Retrieve thermodynamic data for substances:
Run
In[]:=
substances={"Water","Methanol","Octane"};temps=Quantity[Range[1,130],"DegreesCelsius"];densitydata=Table[{temps,ThermodynamicData[substance,"Density",{"Temperature"->temps}]}//Transpose,{substance,substances}];
Visualize the retrieved data:
Run
In[]:=
ListLinePlot[densitydata,AxesLabel->Automatic,PlotLegends->substances]
Compare the sharp density decreases in the plot with known boiling points:
Run
In[]:=
EntityValue[Interpreter["Chemical"][substances],"BoilingPoint","Association"]

Compute with Biological and Ecological Data

Plot the location of anatomical structures in 3D:
Run
In[]:=
AnatomyPlot3D
heart
ANATOMICAL STRUCTURE
,
lung
ANATOMICAL STRUCTURE
Compare anatomical entities:
Run
In[]:=
organs=
heart
ANATOMICAL STRUCTURE
,
liver
ANATOMICAL STRUCTURE
,
brain
ANATOMICAL STRUCTURE
;properties={"Mass","CellCount"};ListPlot[EntityValue[organs,properties,"Association"],AxesLabel->properties]
Define biosequences and explore their structural properties:
Run
In[]:=
insulin=
BioSequence[
]
;MoleculePlot[Molecule[insulin]]
Define a class of entities for data retrieval:
Run
In[]:=
endangeredMammal=EntityClass"TaxonomicSpecies",
phyletic groups
->
mammal
SPECIES PHYLETIC GROUP
,
conservation status
->
Endangered
SPECIES CONSERVATION STATUS
;
Visualize the number of endangered mammals present by country:
Run
In[]:=
GeoRegionValuePlot[EntityValue[endangeredMammal,"ObservationCountries"]//Flatten//Tally]
Out[]=

Analyze Financial Data

Retrieve financial data and present it in a standard format:
Run
In[]:=
TradingChart["GE",{"Volume","SimpleMovingAverage","BollingerBands"}]
Interpret financial entities from text:
Run
In[]:=
stocks=Interpreter["Financial"][{"GOOGL","MSFT","AAPL"}]
Compare properties of entities over time:
Run
In[]:=
property=
cumulative fractional change
;DateListPlotEntityValuestocks,Datedproperty,Interval
Wed 1 Jan 2020
,Yesterday,PlotLegendsCommonName[stocks]

Compute with Socio-Cultural Data

Visualize the genre preferences of an artist:
Run
In[]:=
genres=EntityValueEntityClass"Artwork","Artist"->
Rembrandt
PERSON
,"ArtGenre"//Flatten;PieChart[Counts[genres],ChartLabels->Automatic]
Retrieve construction start dates from an implicitly defined class of castles:
Run
In[]:=
castleAndYear=EntityValueEntityClass"Castle",
country
->
United Kingdom
COUNTRY
,"ConstructionStartDate","NonMissingEntityAssociation";
Look for trends in time:
Run
In[]:=
DateHistogram[castleAndYear,{{900},{1300},"Decade"}]
Organize the data from a particularly active period:
Run
In[]:=
castlesOfInterest=SelectcastleAndYear,
Year: 1060
#
Year: 1110
&;castlesByDecade=GroupBy[castlesOfInterest//Normal,DateObject[#[[2]],"Decade"]&,Map[First]]//KeySort
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.