JuliaPy / JuliaPy/PyCall.jl

Numpy arrays of `str` dtype are not converted to Arrays

Open
#901 2 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

A `np.array` with `dtype=str`, when passed to Julia remains a `PyObject`, instead of becoming some useful `Array{String}`. Here's a minimal example:

```julia
julia> using PyCall

julia> py"""
import numpy as np
"""

julia> py"""np.array(["a"], dtype=str)"""
PyObject array(['a'], dtype='

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.