I had to downgrade using the command $ pip install mlxtend==0.23.1 and the error went away.
$ pip install mlxtend==0.23.1