My script used to work till yesterday, but is now failing because of the following error
ERROR: LoadError: MethodError: no method matching get_symbols_ta(::String7, ::String, ::String)
Closest candidates are:
get_symbols_ta(::String, ::String, ::String) at C:\cygwin64\home\davidj\pb\anto-port\src\Yfjd.jl:190
Stacktrace:
[1] get_adj(tick::String7, ddeb::String, dfin::String)
@ Main C:\cygwin64\home\davidj\pb\anto-port\src\functions_gets.jl:9
[2] getit(tick::String7, ddeb::String, dfin::String)
@ Main C:\cygwin64\home\davidj\pb\anto-port\src\functions_gets.jl:14
[3] get_tatous(aitick::Vector{String7})
@ Main C:\cygwin64\home\davidj\pb\anto-port\src\functions_gets.jl:54
[4] get_tatous3(aitick::Vector{String7}, ainb::Vector{Int64})
@ Main C:\cygwin64\home\davidj\pb\anto-port\src\functions_gets.jl:82
[5] macro expansion
@ C:\cygwin64\home\davidj\pb\anto-port\src\tactantoh.jl:98 [inlined]
[6] macro expansion
@ C:\Users\davidj\.julia\packages\TimerOutputs\SSeq1\src\TimerOutput.jl:236 [inlined]
[7] macro expansion
@ C:\cygwin64\home\davidj\pb\anto-port\src\tactantoh.jl:96 [inlined]
[8] top-level scope
@ C:\Users\davidj\.julia\packages\TimerOutputs\SSeq1\src\TimerOutput.jl:236
in expression starting at C:\cygwin64\home\davidj\pb\anto-port\src\tactantoh.jl:6
I traced this to the appearance of String7
(unrecognized by my get_symbol_ta function
) to the following
dfaitxt="""
Tick Actions Coursi Nombre Domaine InCac40
TTE.PA Total 36.32 36 Energie Y
DG.PA Vinci 77.57 13 construction Y
NK.PA Imerys 35.92 29 Meteaux/TerresRares N
PUB.PA Publicis 28.99 33 Communication/PublicitΓ© Y
SGO.PA SaintGobain 28.65 17 Travaux Y
EN.PA Bouygues 30.71 16 Telecomms/Construction N
BN.PA Danone 58.56 8 Alimentaire Y
ADP.PA ADP 92.82 5 Aeroports N
SK.PA SEB 143.59 3 Electromenager N
CS.PA AXA 21.45 15 Assurances Y
SOI.PA SOITEC 166.72 2 Technologie/Semiconducteurs N
KORI.PA Korian 30.90 16 Sante N
ENGI.PA ENGIE 12.22 41 Energie Y
"""
julia> dfai=CSV.File(IOBuffer(dfaitxt),delim=" ",ignorerepeated=true) |> DataFrame
13Γ6 DataFrame
Row β Tick Actions Coursi Nombre Domaine InCac40
β String7 String15 Float64 Int64 String31 String1
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 β TTE.PA Total 36.32 36 Energie Y
2 β DG.PA Vinci 77.57 13 construction Y
3 β NK.PA Imerys 35.92 29 Meteaux/TerresRares N
4 β PUB.PA Publicis 28.99 33 Communication/PublicitΓ© Y
5 β SGO.PA SaintGobain 28.65 17 Travaux Y
6 β EN.PA Bouygues 30.71 16 Telecomms/Construction N
7 β BN.PA Danone 58.56 8 Alimentaire Y
8 β ADP.PA ADP 92.82 5 Aeroports N
9 β SK.PA SEB 143.59 3 Electromenager N
10 β CS.PA AXA 21.45 15 Assurances Y
11 β SOI.PA SOITEC 166.72 2 Technologie/Semiconducteurs N
12 β KORI.PA Korian 30.9 16 Sante N
13 β ENGI.PA ENGIE 12.22 41 Energie Y
julia>
So, question : how to make things work again ? Should I convert Tick
to String
? Or is there a way that get_symbols_ta
can accept a String7
?
For information, CSV version is 0.9.4 and DataFrames one is 1.2.2. Functions worked with versions CSV#0.8.5 and DataFrames#1.2.0
Thank you for any help and suggestions.