Recently I used namedtuple and dataclass to do some data ETL work. This is about how namedtuple & dataclass works. namedtuple Tuple having field names References: https://www.geeksforgeeks.org/namedtuple-in-python/ https://realpython.com/python-namedtuple/ Init from collections import namedtuple
# Declare a namedtuple
Student = namedtuple('Student', ['name', 'age', 'hobby'])
# init a namedtuple
s1 = Student('Bob', '19', 'basketball')
# access the namedtuple by…