When trying to import this function on a Python Jupyter 2.7 nb running on Windows 10, I get this error:
I believe I hadn't encountered problems in the past because I was using Python 3. So I wonder if it is just that it is not available in Python 2, or if there is a way of making it work.
For Python 3, the method is zip_longest
:
from itertools import zip_longest
For Python 2, the method is izip_longest
:
from itertools import izip_longest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With