PYTHON SET (SET Theory Operations)

Publié le: 20 juin 2023
sur la chaîne: Code with Jon
37
4

This video highlights Python Sets and Set Theory

A Set is a collection of unique elements which is unordered, unchangeable, unindexed, and do not allow duplicate values.

Sets are highly useful for efficiently removing duplicate values from a list or tuple and performing common math operations like unions and intersections.

After watching this video, you will know how to:
Create Sets in Python
Access set items using for loop
Use the “in” keyword to check specified values
Add and remove set items
Understand different types of Set Operations using VEN diagrams
(Union of sets)
(Intersection of sets)
(Complement of a set)
(Difference between sets/Relative complement
Manipulate sets based on the set theory
Remove duplicate values from a list

This video is perfect for beginners interested in learning more about Python for Data Analysis and Data Science.

0:00 Intro
0:16 Python Sets
1:03 Python Set creation
3:46 Access Set elements
6:20 Change Set elements
7:02 Add Set elements
11:36 Remove Set elements
15:48 Set operations
16:32 Union of Sets
20:52 Intersection of Sets
25:35 Set difference
30:50 Set Symmetric Difference
35:25 Complement of a Set
37:15 Other Set Operations
37:30 issubset() method
41:21 issuperset() method
43:16 isdisjoint() method
44:23 Frozen Set
47:20 Remove duplicate values in a list with Python Set


Sur cette page du site, vous pouvez voir la vidéo en ligne PYTHON SET (SET Theory Operations) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code with Jon 20 juin 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 37 fois et il a aimé 4 téléspectateurs. Bon visionnage!