Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Interface for filtering "sources" #7

Closed
hombit opened this issue Feb 1, 2024 · 3 comments
Closed

Interface for filtering "sources" #7

hombit opened this issue Feb 1, 2024 · 3 comments

Comments

@hombit
Copy link
Collaborator

hombit commented Feb 1, 2024

The interface should make it simple and safe way to filter underlying source data

@hombit
Copy link
Collaborator Author

hombit commented Feb 7, 2024

The current approach is doing something like:

import pandas as pd
from pandas_ts.packer import pack_flat

sources = pd.DataFrame({id=..., time=..., mag=...})
packed: pd.Series = pack_flat(sources, name="sources")
# Do something with packed
new_sources = packed.ts.to_flat()
new_sources = new_sources[new_sources['mag'] < 99]
new_packed = pack_flat(new_sources, name="new_sources")

@hombit
Copy link
Collaborator Author

hombit commented Feb 7, 2024

Could be also solved with #9

@hombit
Copy link
Collaborator Author

hombit commented Feb 11, 2024

Implemented with #34 and #32

@hombit hombit closed this as completed Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant