As described above, my code seems to run perfectly well in the ipython notebook in Jupyter, but as soon as I try to run the same code in the terminal, I receive TypeError: 'Series' objects are mutable, thus they cannot be hashed.
This is my code:
for x in cc:
y, i = 0, 0
for v in x:
y += df4.ix[v, 'Salary']
i+=1
if i == 5:
if y <= 50000:
valid.append(x)
I know that it's not proper, but it managed to solve my problem. I'm content to run it from the notebook for now, but I'm curious as to why I'm getting this problem. I updated all of my libraries in Anaconda and I'm still getting the error message.