where() takes from 1 to 3 positional arguments but 4 were given code example
Example 1: takes 1 positional argument but 2 were given python
This error is often caused by the fact that the self is omitted as a parameter in the method of the class.
https://careerkarma.com/blog/python-takes-one-positional-argument-but-two-were-given/
0
Example 2: takes 2 positional arguments but 3 were given
class myclass:
def __init__(self, parameter):
self.parameter = parameter
def function(self, otherparameter):
print(self.parameter + otherparameter)
object=myclass(1)
object.function(2)