From 1eecddefaab359c5e2fc65b60dff41149fa49060 Mon Sep 17 00:00:00 2001 From: lisarennels Date: Thu, 24 Aug 2023 01:48:08 +0200 Subject: [PATCH] Revert commit to main --- src/components/SPs.jl | 2 +- test/test_API.jl | 2 +- test/test_SPs.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/SPs.jl b/src/components/SPs.jl index f9f3187..10aaf33 100644 --- a/src/components/SPs.jl +++ b/src/components/SPs.jl @@ -163,7 +163,7 @@ end g_datasets[:ypc1990] = load(joinpath(datadep"rffsps_v5", "ypc1990", "rffsp_ypc1990.csv")) |> DataFrame |> i -> insertcols!(i, :sample => 1:10_000) |> - i -> stack(i, Not(:sample)) |> + i -> DataFrames.stack(i, Not(:sample)) |> i -> rename!(i, [:sample, :country, :value]) |> @groupby(_.sample) |> @orderby(key(_)) |> diff --git a/test/test_API.jl b/test/test_API.jl index 13cfaab..11ff81f 100644 --- a/test/test_API.jl +++ b/test/test_API.jl @@ -118,7 +118,7 @@ population1990 = load(joinpath(@__DIR__, "..", "data", "population1990.csv")) |> ypc1990 = load(joinpath(datadep"rffsps_v5", "ypc1990", "rffsp_ypc1990.csv")) |> DataFrame |> i -> insertcols!(i, :sample => 1:10_000) |> - i -> stack(i, Not(:sample)) |> + i -> DataFrames.stack(i, Not(:sample)) |> DataFrame |> @filter(_.sample == id) |> DataFrame |> diff --git a/test/test_SPs.jl b/test/test_SPs.jl index b17d93a..9e44cdb 100644 --- a/test/test_SPs.jl +++ b/test/test_SPs.jl @@ -159,7 +159,7 @@ population1990 = load(joinpath(@__DIR__, "..", "data", "population1990.csv")) |> ypc1990 = load(joinpath(datadep"rffsps_v5", "ypc1990", "rffsp_ypc1990.csv")) |> DataFrame |> i -> insertcols!(i, :sample => 1:10_000) |> - i -> stack(i, Not(:sample)) |> + i -> DataFrames.stack(i, Not(:sample)) |> DataFrame |> @filter(_.sample == id) |> DataFrame |>