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

Send Dataframe from one component to another #34

Open
Piebekoster opened this issue Jan 23, 2019 · 1 comment
Open

Send Dataframe from one component to another #34

Piebekoster opened this issue Jan 23, 2019 · 1 comment

Comments

@Piebekoster
Copy link

Hi there!

I am running Pandas to read an .xlsx file into GH_CPython. As this process is quite slow, I want to do it once and then send the imported Dataframe to other GH_CPython components. However, everytime I connect the output with the input, it crashes.

I have tried 'hiding' the Dataframe in a class. The program doesn't crash, but it doesn't see the Dataframe either.

Is there any way I can send a Dataframe to other components?

Thanks a lot!

@MahmoudAbdelRahman
Copy link
Owner

Hi @Piebekoster,
GhCpython, doesn't recognize Pandas df object, however, you can output the df as a Json df.to_json()
and dumps it as a string json.dumps(df.to_json())

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