JuliaPy / JuliaPy/PyCall.jl

Can´t convert python dataframe into Julia dataframe

Aperta
#1,048 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
1.5k
Fork
186
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.