-
Notifications
You must be signed in to change notification settings - Fork 51
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
ParticleSpecies: Read to pandas.DataFrame #923
Conversation
04928c6
to
1a6bb81
Compare
found_pandas = False | ||
|
||
|
||
def particles_to_dataframe(particle_species, slice=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential extra arguments:
records = iterable
: a list of strings or regex expressions to load only specific records of the species- maybe an inverse parameter to deselect specific records from loading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok as a frist version, but see comments.
particle_species.series_flush() | ||
columns[column_name] *= rc.unit_SI | ||
|
||
return pd.DataFrame(columns) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How large are particle species data? It looks like panda lib has capability to work with tables not fitting into memory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Particle data can be anything between 0 and 1e13 as of today.
Can you point me to information on how to handle out-of-core data in pandas?
1f3ce13
to
32c0cba
Compare
This comment has been minimized.
This comment has been minimized.
This pull request introduces 1 alert when merging 98ce484 into d97adf8 - view on LGTM.com new alerts:
|
Add a method tha reads a particle species into a `pandas.DataFrame`.
Add a method tha reads a particle species into a
pandas.DataFrame
.To Do