JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.45k stars 186 forks source link

Can´t convert python dataframe into Julia dataframe #1048

Open jplicona opened 10 months ago

jplicona commented 10 months ago

For simplicity of my code, lets say that i need to convert a pandas python dataframe into a julia dataframe: (using Julia)

using Arrow
using DataFrames
using PyCall

pd=pyimport("pandas")
file_utils=pyimport("core.utils.file_utils")
py_df=pd.read_parquet("/Users/data_test")
arrow_by=file_utils.to_arrow(py_df)
julia_df=DataFrame(Arrow.Table(arrow_by))

julia_df = DataFrame(py_df)

However, everytime i run it i get the following message (already followed the instructions): imagen

Any ideas of how to fix it or an alternative to get the result needed? Thanks