I am running my Python code and recieving this error on keepdims:
This is the code:
It worked fine to run this command on my computer a few days ago but I have ran other codes etc after that might have done something.
It works to write keepdims on amax, just not on argmax. My friend ran the same on her computer now, and this error did not show up even though the code were identical. I tried uninstalling and reinstalling anaconda but it dit not change it. Not sure if there is something else I have to download or what has happened.