-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add function to go from json --> hp compatible df? #37
Comments
I do think a function for translating multiple types of files to hierplane ready data is important. Please take a look at
If we have an |
Regarding this comment:
I was also thinking about this... attributes feels like it should just be a single parameter and the user passes n column names to it. |
I played with data.tree a little bit when I was building the I thought as.Node.data.frame would work for converting spacyr to a list that we need for example, but it didn't work for me. I was probably doing something wrong. |
Well we will still need build_tree/build_node since hp_dataframe calls those, and that's fine IMO. And spacyr just works, so I don't think we need to touch that. I am saying that we might need to consider removing hp_dataframe as an export and make it an internal function. The |
Ok gotcha. I think it's a great idea to make sure we have a |
Also reminder that |
I 100% agree which is why I don't think build functions should be touched, they just work. It's |
Maybe we show users how to construct a dataframe from |
So based on the org data I built the following function that converts the json data into a hierplane-compatible dataset. I think it maybe useful if say...someone wants to modify json tree data as a dataframe then convert it back to json + hierplane.
Let me know what you think about including it in the package.
p.s. tree.json = the org data
The text was updated successfully, but these errors were encountered: