-
Notifications
You must be signed in to change notification settings - Fork 67
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
Pandas compatibility #501
Comments
As you can see in the document, In the first case, you should use
As in the first case, the necessity of the explicit call to the pylist function is required in the second case. |
Thanks, that makes sense! I didn’t see So should this be closed or is there anything that can be done automatically? |
The issue is that
|
I think requiring |
I think the solutions on pandas side sound like better options to me. I'm not sure if they have some edge cases which prevent them being more general... Like maybe some |
cross-posted here: pandas-dev/pandas#58803 |
Affects: PythonCall
Describe the bug
I have been trying to use pandas from PythonCall.jl and just wanted to document a few different calls that do not directly translate to Julia. I guess this might just mean we need a
PythonPandas
package to translate calls but I wonder if there's any missing methods that could be implemented to fix things automatically.First, the preamble for this:
pandas.DataFrame
:Using a similar syntax to Python:
which results in the following dataframe:
i.e., it seems to have a single column named "0" and rows for a and b.
If I instead write this as a vector of pairs, I get:
I suppose this one makes sense.
I was able to get it working with the following syntax instead:
So, selecting a single column works:
but multiple columns does not:
I got around this by inserting a
pylist
call:The text was updated successfully, but these errors were encountered: