Singleton array array(<function train at 0x7f3a311320d0>, dtype=object) cannot be considered a valid collection Singleton array array(<function train at 0x7f3a311320d0>, dtype=object) cannot be considered a valid collection pandas pandas