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

Automatically import/export things as Data Frames in Python service #72

Closed
tpetricek opened this issue Nov 6, 2018 · 1 comment
Closed

Comments

@tpetricek
Copy link
Collaborator

Using the cleanEHR data set, after running the R data loading script and passing dt to Python, it seems that dt is not automatically turned into a Pandas data frame. Do we want this to happen? I think so, because it will make things easier...

For example, if we want to get a list of headers, we have to run:

xx = pd.DataFrame(list(pd.DataFrame(dt)))

Ideally, we would just write:

xx = list(dt)

And the Python service would automatically convert dt into Pandas data frame when importing it from the data store and also turn xx into a data frame before exporting it. If we write just:

xx = list(pd.DataFrame(dt))

Then the Python service gives us back a data frame, but with some really strange content...

@tpetricek
Copy link
Collaborator Author

The automatic conversion on import seems to be working fine in our sample, but not in cleanEHR.... (no idea why!)

@tpetricek tpetricek moved this from In progress to Done in Integrate clean EHR data analysis Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants