Skip to content
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

best way to send DataFrame back to Python #253

Closed
mzy2240 opened this issue Dec 21, 2022 · 2 comments
Closed

best way to send DataFrame back to Python #253

mzy2240 opened this issue Dec 21, 2022 · 2 comments

Comments

@mzy2240
Copy link

mzy2240 commented Dec 21, 2022

Dumb question alert: how to convert a dataframe from julia back to python? Right now I am able to get the dataframe (as a juliacall.AnyValue) in the python scope, but how to really use the data from that table? I am fine with any work around. Great tool by the way.

@cjdoris
Copy link
Collaborator

cjdoris commented Dec 21, 2022

https://cjdoris.github.io/PythonCall.jl/stable/compat/#PythonCall.pytable

From Python, you can call juliacall.PythonCall.pytable(your_table).

@mzy2240
Copy link
Author

mzy2240 commented Dec 21, 2022

It works like a charm. Thank you!

@mzy2240 mzy2240 closed this as completed Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants