Dataset as an Annotation
Dataset objects can be used directly as an annotation of EntityValue.
Construct a dataset of properties of noble gases.
In[1]:=
![Click for copyable input](assets.en/dataset-as-an-annotation/In_68.png)
gases = EntityValue[
EntityClass["Element", "NobleGas"], {"BoilingPoint", "Density"},
"Dataset"]
Out[1]=
![](assets.en/dataset-as-an-annotation/O_71.png)
Find the two atoms with the highest boiling point temperature.
In[2]:=
![Click for copyable input](assets.en/dataset-as-an-annotation/In_69.png)
gases[TakeLargest[2], "BoilingPoint"]
Out[2]=
![](assets.en/dataset-as-an-annotation/O_72.png)
Find the two atoms with the smallest density.
In[3]:=
![Click for copyable input](assets.en/dataset-as-an-annotation/In_70.png)
gases[TakeSmallest[2], "Density"]
Out[3]=
![](assets.en/dataset-as-an-annotation/O_73.png)
Visualize on a two-dimensional plot the density and boiling point of each noble gas.
In[4]:=
![Click for copyable input](assets.en/dataset-as-an-annotation/In_71.png)
ListLogPlot[gases, Frame -> True, FrameLabel -> Automatic]
Out[4]=
![](assets.en/dataset-as-an-annotation/O_74.png)