ENH: support Period.__contains__
See original GitHub issuesupporting in
for a Timestamp
in a Period
is straightforward and useful. Note that we current consider both endpoints inclusive.
In [28]: p = Period('2016',freq='M')
In [29]: p
Out[29]: Period('2016-01', 'M')
In [30]: p.start_time
Out[30]: Timestamp('2016-01-01 00:00:00')
In [31]: p.end_time
Out[31]: Timestamp('2016-01-31 23:59:59.999999999')
In [32]: p.start_time in p
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-32-b4a9c4196274> in <module>()
----> 1 p.start_time in p
TypeError: argument of type 'Period' is not iterable
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Long Term Service Pack Support - SUSE
Most SUSE server products have a 10-year lifecycle. If you need more than that, Long Term Service Pack Support provides up to 3...
Read more >Red Hat Ansible Automation Platform Life Cycle
As part of a Red Hat Ansible Automation Platform subscription, customers have access to supported versions of on-premise packages, as well as hosted...
Read more >Oracle Software Technical Support Policies
Assistance with service requests 24 hours per day, 7 days a week. Access to the customer support systems specified in the Web-Based Customer...
Read more >Software lifecycle policy and on-premises updates - Business ...
This article outlines the lifecycle and support policies for ... This policy requires the customer to maintain an Enhancement Plan and ...
Read more >Support - Audio Enhancement
Thank you for visiting our Support/ Warranty page. We're here to help! Have you visited our FAQ page? It has a number of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jreback I’d like to submit a PR, the implement is quite simple, but first someone should decide which method name to be used.
That would be ideal, but PRs tend to get more review/discussion/scrutiny than issues, so opening a PR has more chance of getting things moving than bumping an issue.