Skip to content

Conversation

@dolegi
Copy link

@dolegi dolegi commented Oct 21, 2025

This requires the alternative data to be part of the existing dataframe, maybe we want this to support alternative data from a different source/dataframe? @richjam what do you think?

@richjam
Copy link
Collaborator

richjam commented Oct 21, 2025

This requires the alternative data to be part of the existing dataframe, maybe we want this to support alternative data from a different source/dataframe? @richjam what do you think?

Potentially, yes. In the time series processor, each variable is held in it's own TimeFrame, so that would need this use case. I guess you could add option to send a new alt_data_df to the __init__, which if provided the _fill method will look for the alt_data_column in there. Would have to merge on the "time" column to make sure that the data exists at the same time points (which would mean we'd expect the name of the time column to be the same in the alt dataframe).

Copy link
Collaborator

@richjam richjam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to accept this as is for now, and have another ticket for the alt data coming from another source if you want.

But can you just add something to the user_guide/infilling.rst page as well?

The :meth:`~time_stream.TimeFrame.infill` method is the entry point for infilling your
timeseries data in **Time-Stream**. It delegates to well established methods from the `SciPy data science library
<https://docs.scipy.org/doc/scipy/reference/interpolate.html>`_, combined with the time-integrity of your **TimeFrame**.
timeseries data in **Time-Stream**. There are various infill methods available; from using alternative data from
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added suggested changes to this docs page (and associated "examples" code folder). Please can you review?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry where are these suggestions?

Copy link
Collaborator

@richjam richjam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests failing

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

Successfully merging this pull request may close these issues.

2 participants