Skip to content

Can't use PeriodIndex as DataFrame columns #1211

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
changhiskhan opened this issue May 8, 2012 · 0 comments
Closed

Can't use PeriodIndex as DataFrame columns #1211

changhiskhan opened this issue May 8, 2012 · 0 comments
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@changhiskhan
Copy link
Contributor

This raises an Exception:

DataFrame(randn(10, 5), columns=period_range('1/1/2000', periods=5))

/pandas/pandas/core/frame.pyc in _apply_standard(self, func, axis, ignore_failures)
3209 try:
3210 if hasattr(e, 'args'):
-> 3211 e.args = e.args + ('occurred at index %s' % str(k),)
3212 except NameError:
3213 # no k defined yet

UnboundLocalError: local variable 'k' referenced before assignment

@wesm wesm closed this as completed in 094e5e4 May 8, 2012
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