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

Implement TimeSpan representation and PeriodIndex #470

Open
mkschulze opened this issue Oct 11, 2020 · 3 comments
Open

Implement TimeSpan representation and PeriodIndex #470

mkschulze opened this issue Oct 11, 2020 · 3 comments

Comments

@mkschulze
Copy link

A Period represents a span of time (e.g., a day, a month, a quarter, etc). You can specify the span via freq keyword using a frequency alias like below.

PeriodIndex(['2011-01', '2011-02', '2011-03', '2011-04', '2011-05', '2011-06',
'2011-07', '2011-08', '2011-09', '2011-10', '2011-11', '2011-12',
'2012-01'],
dtype='period[M]', freq='M')

Basically this functionality from Pandas:
https://pandas.pydata.org/docs/user_guide/timeseries.html#time-span-representation

@strickek
Copy link
Contributor

Is it possible to use Dates TimePeriod for this? E.g. Month(1) or Minutes(15).

@mkschulze
Copy link
Author

no idea

@femtotrader
Copy link
Contributor

Maybe you should have a look at the projects I wrote some years ago
https://github.com/femtotrader/TimeFrames.jl/
https://github.com/femtotrader/TimeSeriesResampler.jl

(but which are currently unmaintained)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants