JuliaPy / JuliaPy/PyCall.jl

Can´t convert python dataframe into Julia dataframe

Offen
#1,048 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.5k
Forks
186
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Reproduce the conversion using the shown PyCall, pandas, Arrow, and DataFrames calls, starting with core.utils.file_utils.to_arrow and the DataFrame(Arrow.Table(arrow_by)) entry point. Capture the full error text and environment details, then determine a supported conversion path whose result is a Julia DataFrame.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, pandas, python
Bereich
data
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.