-
Notifications
You must be signed in to change notification settings - Fork 10
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
TsDB load from/export to pickle and dataframe #124
Conversation
Tasks/checks before approval (@eneelo, @tovop)
|
@mariustk Apologies for delayed response. This looks very promising, but still need to find time to look through the details before approving the pull request. Just wanted to let you know that it isn't forgotten. |
Quality Gate passedIssues Measures |
I have reviewed the code, good job @mariustk 👍 |
Summary
TsDB.load()
(strictly, toTsDB._read()
) andTsDB.export()
TsDB.to_dataframe()
generates a pandas dataframe with the common time array as the dataframe index.TsDB.export()
: new parameterforce_common_time
enables enforcing a common time array automatically (when possible). Default behavior is not changed (raising exception if not common time array across specified series).TsDB.create_common_time()
: if time array is already common, the time array from either of the time series objects is returned (avoid constructing new array, which may introduce minor inaccuracies/changes to the time array).Closes #123