Answers for "AttributeError: 'tuple' object has no attribute 'reshape'"

0

AttributeError: 'tuple' object has no attribute 'reshape'

# from your definition, population is a tuple. 
# I'd suggest two options, the first is converting it to an array, 
# i.e.

population = np.asarray(population)
Posted by: Guest on April-03-2021

Code answers related to "AttributeError: 'tuple' object has no attribute 'reshape'"

Python Answers by Framework

Browse Popular Code Answers by Language