-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
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]:1The 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
0 2020-02-17 100.000 100.000 100.001 99.999 957942.0 9.579393e+07
1 2020-02-18 99.999 100.001 100.001 99.998 887600.0 8.875952e+07It 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?
bgroenks96 and Toundra
Metadata
Metadata
Assignees
Labels
No labels