BUG: Bug in creating an empty DataFrame, copying, then assigning (GH5932)

closes #5932