Timeline for How to calculate percentage change using Dataset[]
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 16, 2021 at 11:42 | comment | added | Tugrul Temel |
Although my dataset format is exactly the same as your example, I cannot get through this pctimeseries=jdataSGI[...] , although I tried FaliureAction->"Drop" , DeleteCases[jdataSGI[...]] and DeleteMissing[jdataSGI[...],Missing[]] . None is solving the problem. With your example dataset above, everything works fine, except Normal@pctimeseries["Egypt", {"GDP", "Population"}, Key@2013] which gives failure.
|
|
Nov 14, 2021 at 19:59 | comment | added | Tugrul Temel |
It does not fix the problem because the error comes when I run pctimeseries = jdataSGI[GroupBy["country"] /* Map[KeyMap[# <> " Change" &]], Merge[TimeSeries /* percentChange /* (#["DatePath"] &)], <|#indicator -> {DateObject@ Round[{#time}], #data}|> &, MissingBehavior -> None] . All the codes before this piece works as expected and generates the same results as in your codes above.
|
|
Nov 14, 2021 at 19:22 | comment | added | kglr |
does timeseries[Map[Map[DateListPlot]], FailureAction ->"Drop", MissingBehavior -> None] fix the issue?
|
|
Nov 14, 2021 at 16:38 | comment | added | Tugrul Temel | Your guess is true. Is there any easy way to overcome this error? | |
Nov 14, 2021 at 16:18 | comment | added | kglr | a wild guess: probably some country/indicator combinations are empty in your data. | |
Nov 14, 2021 at 15:40 | comment | added | Tugrul Temel |
The error pups up after timeseries[Map[Map[DateListPlot]]] .
|
|
Nov 14, 2021 at 15:37 | comment | added | Tugrul Temel |
Thanks for a thorough code. I tried to replicate your code with my data set and was successfully getting the exact list of outputs like yours given above. However, at the stage where pctimeseries = timeseries[...] I started to get an error message: Path is expected to be non-empty . I tried various things but still, have the same error. Why do you think I get this error?
|
|
Nov 14, 2021 at 15:02 | history | edited | kglr | CC BY-SA 4.0 |
deleted 115 characters in body
|
Nov 14, 2021 at 14:03 | vote | accept | Tugrul Temel | ||
Nov 14, 2021 at 13:28 | history | edited | kglr | CC BY-SA 4.0 |
added 341 characters in body
|
Nov 14, 2021 at 13:05 | history | edited | kglr | CC BY-SA 4.0 |
added 1203 characters in body
|
Nov 14, 2021 at 11:34 | history | edited | kglr | CC BY-SA 4.0 |
added 87 characters in body
|
Nov 14, 2021 at 11:29 | history | edited | kglr | CC BY-SA 4.0 |
added 87 characters in body
|
Nov 14, 2021 at 11:22 | history | answered | kglr | CC BY-SA 4.0 |