I am aware of How would I use Map on a Dataset column? still I cannot see how I should use MovingMap on a Dataset.
Even the identity functions does not work!
MovingMap[# &, dataset[[All, "Eons"]], 1]
My dataset is constructed like this
eons = {
{{2021, 02, 22}, 95},
{{2021, 02, 23}, 96},
{{2021, 02, 24}, 100},
{{2021, 02, 25}, 105}}
dataset =
Dataset[Map[Association[{"Date" -> #[[1]], "Eons" -> #[[2]]}] &,
eons]]
I can do things that are mere application of fuctions to a single row, e.g. Map[<|#, "Sqrt" -> Sqrt[#Eons]|> &, dataset ]. However using
MovingMap[# &, dataset[All, "Eons"], 1]
as suggested returns itself as output, which usually means mathematica does not know what to do.
MovingMap[# &, dataset[All, "Eons"], 1]- note the single brackets. You will need to give an example of your dataset for more help though :) – Carl Lange May 14 '21 at 08:16Partor[[, mathematica return the input as output ... meaning it did not understand – Rho Phi May 14 '21 at 08:31MovingMap[# &, Normal@dataset[All, "Eons"], 1]ordataset[MovingMap[(# &), #, 1] &, "Eons"]. – Carl Lange May 14 '21 at 08:43