Python array
23 results found
-
TypeError: cannot unpack non-iterable NoneType object in Python
My app throws TypeError: cannot unpack non-iterable NoneType object in Python 3 when I want to sum and find max number in an array.
-
AttributeError: 'set' object has no attribute 'extend' in Python
My code throw exception AttributeError: 'set' object has no attribute 'extend' in Python 3 when I was trying to merge a list to another list with same data format.
-
AttributeError: 'DataFrame' object has no attribute 'as_matrix' in Python
I got an issue AttributeError: 'DataFrame' object has no attribute 'as_matrix' in Python 3.10 when I tried to read data from CSV file and convert it to the array.
-
SyntaxError: non-default argument follows default argument in Python
My application threw the error SyntaxError: non-default argument follows default argument in Python 3 when I tried to work with Method in python.
-
TypeError: 'dict_values' object is not subscriptable in Python
An error threw TypeError: 'dict_values' object is not subscriptable in Python 3 when I was trying to work with objects and arrays in Python.
-
IndexError: invalid index to scalar variable in Python 3.x
I get an exception throw IndexError: invalid index to scalar variable in Python 3.x when I was trying to loop an array of 2D and print it.
-
TypeError: array() takes from 1 to 2 positional arguments but 9 were given in Python
I get an exception TypeError: array() takes from 1 to 2 positional arguments but 9 were given in Python when I was trying to get the item in an array.
-
IndexError: index 1 is out of bounds for axis 0 with size 1
I get an error throw IndexError: index 1 is out of bounds for axis 0 with size 1 in Python when I was trying to get some items in an array of 3 dimensions.
-
TypeError: 'type' object is not subscriptable in Python 3.x
I get an exception throw TypeError: 'type' object is not subscriptable in Python 3.8.2 when I was trying to create an object and access property of it.
-
TypeError: '<' not supported between instances of 'int' and 'str' in Python
I get an exception throw TypeError: '<' not supported between instances of 'int' and 'str' in Python 3.x when I was trying compare variable with condition if.
-
TypeError: list indices must be integers or slices, not float in Python
I get an exception throw TypeError: list indices must be integers or slices, not float in Python 3.8.2 when I trying search item text from an array.
-
TypeError: 'float' object cannot be interpreted as an integer in Python
I get an exception throw TypeError: 'float' object cannot be interpreted as an integer in Python 3.8.2 when I trying to loop and print a range of numbers
-
TypeError: list indices must be integers or slices, not list in Python
I get an exception throw TypeError: list indices must be integers or slices, not list in Python 3.8.2 when I trying print an array.
-
AttributeError: 'NoneType' object has no attribute 'append' in Python
I get an exception throw AttributeError: 'NoneType' object has no attribute 'append' in Python 3.8.2 when I'm trying to create and print a list task of a day.
-
UnboundLocalError: local variable referenced before assignment in Python
I get an exception throw UnboundLocalError: local variable referenced before assignment in Python 3.8.2 when Trying append item into an array.