Python Iterables vs Iterators
Difference between Iterables vs Iterators?
1-List is iterable, all values are initialized in memory location & consuming the memory.
2- In the case of iterators, if we will convert that list into iterators by the Iter function, in that case, elements are memory will not initialized in the memory location. Only when we will call by the next function at that time elements will be initialized one by one in a memory location.
3-Suppose we are dealing with millions of records at that period of time we prefer to use the Iterators to store the huge list.
#dataandanalytics #DATA CLEANING#PYTHON#TABLEAU
No comments:
Post a Comment