JuliaPy / JuliaPy/PyCall.jl

Handling None -> Missing conversions in matrices

Offen
#1,009 3 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

Hi,

I have noticed that trying to convert a numpy array containing `None` to a `Matrix{Union{Missing, Float64}}` does not work smoothly. Indeed, it gives the following error: `TypeError('must be real number, not NoneType')`.

Have you ever encountered this issue before? Are there any working solutions?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Reproduce the reported conversion in PyCall.jl using a NumPy array containing None and a Julia Matrix{Union{Missing, Float64}}. Trace the conversion path that raises TypeError('must be real number, not NoneType'); done should be a defined, tested behavior for this input or a documented working solution.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

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

Neue Issues direkt in Ihr Postfach

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