New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support indexing into python objects #1041
Comments
I can imagine something like Base.getindex(o::PyObject, s) = py"$o[$s]"
Base.setindex!(o::PyObject, v, s) = py"$o[$s] = $v" |
In the meantime, you can use PythonCall.jl, which supports this. |
This is not completely true. PythonCall.jl has indeed difficulties with the mentioned example because of comparisons between python object (series) and julia object ("value"). you need to use the I rather prefer to use native julia syntax, which is indeed the main reason I am going for PyCall.jl when calling Python from Julia. |
Came here to request the same, in fact I would be happy to "just" be able to select rows from a pandas data frame, e.g. |
I am using pandas with PyCall.jl and would like to write something like
looking into the code
https://github.com/JuliaPy/PyCall.jl/blob/master/src/PyCall.jl#L349-L361
it seems that this is just not supported currently (because of some legacy where indexing was used instead of dot access)
The text was updated successfully, but these errors were encountered: