DataFrame.resample() fails on empty DataFrame #2640

Closed
pikeas opened this Issue Jan 5, 2013 · 1 comment

Comments

Projects
None yet
2 participants

pikeas commented Jan 5, 2013

If you resample() an empty DataFrame, you hit a TypeError in the else catch-all at line 98 of tseries/resample.py. This should either raise a different error, or return the passed empty DataFrame.

changhiskhan was assigned Jan 19, 2013

Contributor

changhiskhan commented Jan 19, 2013

now returns empty DataFrame back. Thanks for the bug report.

changhiskhan was unassigned by wesm Oct 12, 2016

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