I am using a dataset to construct a matrix, how can I add the title Mass in kilograms above the Earth and Moon like in the table.
Here is the code I am working on.
Dataset[
<|"Earth planet and Moon" ->
<|"Earth" -> <|"Earth" -> Entity["Planet", "Earth"]["Mass"]^2,
"Moon" ->
Entity["PlanetaryMoon", "Moon"]["Mass"] *
Entity["Planet", "Earth"]["Mass"]|>,
"Moon" ->
<|"Earth" ->
Entity["PlanetaryMoon", "Moon"]["Mass"] *
Entity["Planet", "Earth"]["Mass"],
"Moon" -> Entity["PlanetaryMoon", "Moon"]["Mass"]^2|>|>|>]
When I try to make it a data set I only get the "Earth planet and Moon Mass" like the image below.
Dataset@ <| <|"Earth planet and Moon" -> <|"Earth" -> <| <| "Mass in kg" -> <|"Earth" -> 3.57 kg ^2, "Moon" -> 4.387 kg^2|>|>|>, "Moon" -> <|<| "Mass in kg" -> <|{"Earth" -> 4.387 kg^2, "Moon" -> 4.387 kg^2}|>|>|> |> |>|>
. $\endgroup$