SyntaxFix
Write A Post
Hire A Developer
Questions
list(data_set.itertuples(index=False))
As of 17.1, the above will return a list of namedtuples.
If you want a list of ordinary tuples, pass name=None as an argument:
name=None
list(data_set.itertuples(index=False, name=None))