Learn how to use the Python Collections namedtuple to write cleaner and safer code! The collections module provides useful functions and classes to make working with data collections easier and more intuitive.
✅ Check out my FREE 30-day Python course: https://datagy.io/learn-python-in-30-...
----------------------------------------------------------
0:00 Introductions and what you’ll learn
0:40 Exploring Regular Python Tuples and Challenges
4:00 Working with namedtuple in Python Collections
7:26 Differences Between Tuples and namedtuple
8:28 Providing Default Values in Python namedtuple
12:10 Replacing Values in a Python namedtuple
13:49 Converting a Python namedtuple to a Dictionary
14:38 Working with Reserved Names in a Python namedtuple
16:50 Conclusion
----------------------------------------------------------
✅ Follow me on other platforms:
Website: https://datagy.io
Twitter: / datagyio
Mailing List: https://mailchi.mp/f6a58f2d73d0/datag... (and get a FREE Pandas tip and tricks book and a FREE Guide to SQL)