What are Named Tuples in Python? #python #datascience #data #programming #digitalhumanities

preview_player
Показать описание

Join this channel to get access to perks:

If you enjoy this video, please subscribe.

If there's a specific video you would like to see or a tutorial series, let me know in the comments and I will try and make it.

You can follow me at:
Рекомендации по теме
Комментарии
Автор

One of the things I forgot to emphasize in this video is that the named tuple is a way to keep a tuple (which is immutable) but give it some greater definition with attributes.

python-programming
Автор

Excellent. I would have liked a slightly clearer explanation of the (dis)advantages of using a data class vs a named tuple for a very large project, say, w/t hundreds of thousands of items.

tantzer
Автор

Why does your first example say "Basic Approach: Tuple" yet you use a list?

foreverraining
Автор

In Method2 shouldn't it be:
charles2 = person2("Charles", 72)

Looks like second "2" is missing.

samoylov