ENH: Improve error message for PeriodIndex to infer_freq. Closes #5841.
Merge pull request #5847 from jseabold/fix-5841

ENH: Improve error message for PeriodIndex to infer_freq. Closes #5841.
BUG: fix issue of boolean comparison on empty DataFrames (GH5808)