-
Notifications
You must be signed in to change notification settings - Fork 12
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
{Edge,Node}Population should have a .to_pandas method. #140
Comments
This sort of functionality is part of SNAP. I'd prefer to avoid having pandas as a requirement of python |
Sure it is a heavy dependency, but we already depend on
not that much more in the dependency tree that isn't Seems like the counter-argument is to depend on something that is heavier, and pulls in a bunch of morphology dependencies. To me, it more seems like the API augmentations of |
numexpr/dateutil/pytz/etc are quite a bit more than just
|
I disagree: compared to |
Put another way, numpy is a required dependency in that it's the compact way to return numeric data in python. It would be hard/impossible to not use numpy, which is why it fits with the minimalist purpose of the library. The improvement you're describing is an ergonomic/convenience one, which should be handled by higher level libraries (ie: SNAP). The idea is that this is safe to use by anything (ex: neurodamus-py), with the mimimal set of requirements. What is your use case? |
My use case is to bulk load SONATA into Pandas to pass through to Spark. If I look into a file manually, I would also use this to compare between SONATA, Parquet, and binary data… so having some |
Since you have to implement it for your use case, we should be able to take a look at it, and then make a decision. |
For exemple, report_reader.hpp with There is no dependency to pandas inside libsonata, but the output data is oriented pandas. |
Can I add columns to it? |
See title. For better usability, SONATA™ should provide functionality to provide a subset of the populations as Pandas dataframes for easier manipulation. Ideal usage from my side:
(paraphrasing a bit)
The text was updated successfully, but these errors were encountered: