Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can´t convert python dataframe into Julia dataframe #1048

Open
jplicona opened this issue Aug 20, 2023 · 0 comments
Open

Can´t convert python dataframe into Julia dataframe #1048

jplicona opened this issue Aug 20, 2023 · 0 comments

Comments

@jplicona
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant