Python, Data Science, Data Engineering, Programming, Coding.
deque1.reverse() # Rotate a deque deque1.rotate(1) # rotate right # Clear a deque deque1.clear() Named Tuples Named tuples are like a mix of dictionaries and tuples. They are tuples that have a name for each possible position. They are created using the namedtuple() function from the collections