JuliaPy / JuliaPy/PyCall.jl

Can´t convert python dataframe into Julia dataframe

Open
#1,048 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/JuliaPy/PyCall.jl/assets/113462297/d77e0b3f-f1b3-47bc-8603-e334f2cb157d)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.