Skip to content

PeriodIndex.tolist should box integers as Period objects with metadata #3178

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

Closed
wesm opened this issue Mar 26, 2013 · 1 comment
Closed

PeriodIndex.tolist should box integers as Period objects with metadata #3178

wesm opened this issue Mar 26, 2013 · 1 comment
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@wesm
Copy link
Member

wesm commented Mar 26, 2013

No description provided.

@changhiskhan
Copy link
Contributor

In [3]: pd.period_range('2000-1-1', freq='A', periods=10).tolist()
Out[3]:
[Period('2000', 'A-DEC'),
Period('2001', 'A-DEC'),
Period('2002', 'A-DEC'),
Period('2003', 'A-DEC'),
Period('2004', 'A-DEC'),
Period('2005', 'A-DEC'),
Period('2006', 'A-DEC'),
Period('2007', 'A-DEC'),
Period('2008', 'A-DEC'),
Period('2009', 'A-DEC')]

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

No branches or pull requests

2 participants