BUG: col and row names should be checked for None and length