Kernel: Julia 1.10
In [3]:
Out[3]:
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: Failed to connect to pkg.julialang.org port 443 after 30002 ms: Timeout was reached while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry /ext/julia/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Registry/Registry.jl:69
Resolving package versions...
No Changes to `~/.julia/environment/v1.10/Project.toml`
No Changes to `~/.julia/environment/v1.10/Manifest.toml`
In [4]:
Out[4]:
You have already formatted this dataframe
You have already formatted this dataframe
You have already formatted this dataframe
"HistoricalPricesUS500-formatted.csv"
In [5]:
Out[5]:
Below yields the incorrect result, possibly because assigning a list comprehension to a df slice is multithreaded?
In [6]:
Out[6]:
ewma_1, row 4 should be: 0.15140859291637426
56-element Vector{Float64}:
0.0
0.1452236480399996
0.15262717563008693
0.027142406397633143
0.022818624494616673
0.06220258087804803
0.033831809822339486
0.016704481403294353
0.008728944160058675
0.07271728837002381
0.005827179789317804
0.014358988371999625
0.0173644618825166
⋮
0.004437935353399633
705628.4313832406
705629.4073291771
705632.3351669885
705633.311112925
705634.2870588622
705635.2630047991
705636.238950736
705639.1667885471
0.025828263269288776
0.055219108804401736
0.009699900965760056
This one gives the correct result
In [7]:
Out[7]:
12-element Vector{Float64}:
0.0
0.1452236480399996
0.15262717563008693
0.15140859291637426
0.14951808593099433
0.15862618073364068
0.15846421040896336
0.1555520368563569
0.15206112404377298
0.16526156207840798
0.16139158199426953
0.15816260661792444