From 6864c2658d97f7c190dd763a17f1f8a1d7e4118a Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Thu, 13 Apr 2023 15:36:57 +0200 Subject: [PATCH] Update flux.md Signed-off-by: Lorenzo Mangani --- flux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flux.md b/flux.md index c9e3b37..1e88a69 100644 --- a/flux.md +++ b/flux.md @@ -256,7 +256,7 @@ import "experimental/csv" csv.from(url: "https://influx-testdata.s3.amazonaws.com/noaa.csv") |> filter(fn: (r) => r._measurement == "average_temperature") -|> map(fn: (r) => ({r with celsius: ((r._value - 32.0) * 5.0 / 9.0)} )) +|> map(fn: (r) => ({r with celsius: (( float(v: r._value) - 32.0) * 5.0 / 9.0)} )) ```