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

Add DataFrame with archive summary info #3

Open
cdeil opened this issue Jul 21, 2021 · 0 comments
Open

Add DataFrame with archive summary info #3

cdeil opened this issue Jul 21, 2021 · 0 comments

Comments

@cdeil
Copy link
Member

cdeil commented Jul 21, 2021

Let's add a convenience attribute or method to get a pandas.DataFrame that summarises some stats for each archive.

This:

>>> wsp.meta.archives
[WhisperArchiveMeta(index=0, offset=52, seconds_per_point=10, points=1555200, retention=15552000),
 WhisperArchiveMeta(index=1, offset=18662452, seconds_per_point=60, points=5256000, retention=315360000),
 WhisperArchiveMeta(index=2, offset=81734452, seconds_per_point=3600, points=87601, retention=315363600)]

But it would be nice to also get the data summary, especially timestamp of first and last data point, actual number of data points (non-zero) in each archive, maybe also min/max/mean of values?

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

1 participant