question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make it possible to easily generate time series

See original GitHub issue

This is a follow-on idea from #8540, particularly https://github.com/astropy/astropy/pull/8540#issuecomment-482948959 and https://github.com/astropy/astropy/pull/8540#issuecomment-484507538 . The idea is to add another way of creating TimeSeries by doing time.series() (where time is a Time object).

TBD: whether keywords should be allowed to have more control of TimeSeries creation - e.g. adding more data columns.

(I’m initially milestoning it for 4.0 but it could get pulled up to 3.2 as a quick follow-on to #8540 if I find time and someone can review it by tomorrow.)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
astrofrogcommented, Apr 19, 2019

I’m not fully convinced we really need this - after all, the Zen of Python says

There should be one-- and preferably only one --obvious way to do it.

What would be the benefit of being able to do Time.series? Would it be for use in contexts other than the TimeSeries class?

Would it make more sense to focus on making sure that e.g. np.linspace works for Time as @mhvk mentioned in #8540?

1reaction
astrofrogcommented, Apr 19, 2019

I can try and clarify the docs next week! Indeed you can just do TimeSeries(time=timeobj, data=...)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating synthetic time series data | by Alexander Watson
In this post, we will create synthetic versions of a time-series dataset using Gretel.ai's synthetic data library, visualize and analyze the ...
Read more >
Generate Synthetic Time-series Data with Open-source Tools
The simplest way to use our model is with your training data in a pandas DataFrame. For this setup, the data must be...
Read more >
python - Generating artificial time series data
This article is great to generate time series data in python. Hope this helps.
Read more >
How to generate sequential, time-series synthetic data - Hazy
With time-series data, each data point is conditional on a potentially very large history of events. The synthetic data generator is no longer ......
Read more >
How to Use the TimeseriesGenerator for Time Series ...
You can create an instance of the class and specify the input and output aspects of your time series problem and it will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found