You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when trying to convert to DataFrames.DataFrame
julia> oDf = DataFrames.DataFrame(pDf)
ERROR: BoundsError: attempt to access Core.SimpleVector
at index [1]
Stacktrace:
[1] getindex(::Core.SimpleVector, ::Int64) at ./essentials.jl:582
[2] Array(::Series) at /home/gsc/.julia/packages/Pandas/rAPmB/src/Pandas.jl:81
[3] (::Pandas.var"#430#433"{Pandas.DataFrame})(::String) at ./none:0
[4] iterate(::Base.Generator{Array{String,1},Pandas.var"#430#433"{Pandas.DataFrame}}) at ./generator.jl:47
[5] get_columns_copy_using_missing(::Pandas.DataFrame) at /home/gsc/.julia/packages/Pandas/rAPmB/src/tabletraits.jl:24
[6] columns at /home/gsc/.julia/packages/Tables/FXXeK/src/fallbacks.jl:175 [inlined]
[7] #DataFrame#451(::Bool, ::Type{DataFrame}, ::Pandas.DataFrame) at /home/gsc/.julia/packages/DataFrames/uPgZV/src/other/tables.jl:32
[8] DataFrame(::Pandas.DataFrame) at /home/gsc/.julia/packages/DataFrames/uPgZV/src/other/tables.jl:23
[9] top-level scope at REPL[77]:1
The table is a simple one obtained from PyCall calling some other python package:
julia> pDf = Pandas.DataFrame(e_data)
date open close high low volume amount
02020-02-17100.000100.000100.00199.999957942.09.579393e+0712020-02-1899.999100.001100.00199.998887600.08.875952e+07
It only happens with this converted table obtained by PyCall. When I save this to csv and load again with Pandas.jl it won' t error on conversion calling oDf = DataFrames.DataFrame(pDf).
Any clue how to workaround this?
The text was updated successfully, but these errors were encountered:
I get the following error when trying to convert to
DataFrames.DataFrame
The table is a simple one obtained from PyCall calling some other python package:
It only happens with this converted table obtained by PyCall. When I save this to csv and load again with Pandas.jl it won' t error on conversion calling
oDf = DataFrames.DataFrame(pDf)
.Any clue how to workaround this?
The text was updated successfully, but these errors were encountered: