filmov
tv
Python 3 Basics # 17.1 | Sets in Python | What is a Python Set | Immutable vs Hashable

Показать описание
Python 3 Basics # 17.1 | Sets in Python | What is a Python Set | Immutable vs Hashable
Python built-in type set has the following characteristics:
Set are unordered.
Set elements are unique and it doesn’t allow duplicate elements.
Set itself may be modified but the elements contained in the set must be Hashable.
Objects that cannot be changed after its created is called immutable object.
Object on which hash function works is called Hashable Object.
In python any immutable object (such as integer, boolean, string, tuple is Hashable which means its value doesn’t change during its lifetime. This allows Python to create a unique hash value to identify it, which can be used by dictionaries to track unique keys and which in turn helps to track unique values.
All Playlist of this youtube channel
==============================
1. Data Preprocessing in Machine Learning
2. Confusion Matrix in Machine Learning, ML, AI
3. Anaconda, Python Installation, Spyder, Jupyter Notebook, PyCharm, Graphviz
4. Cross Validation, Sampling, train test split in Machine Learning
5. Drop and Delete Operations in Python Pandas
6. Matrices and Vectors with python
7. Detect Outliers in Machine Learning
8. TimeSeries preprocessing in Machine Learning
9. Handling Missing Values in Machine Learning
10. Dummy Encoding Encoding in Machine Learning
11. Data Visualisation with Python, Seaborn, Matplotlib
12. Feature Scaling in Machine Learning
13. Python 3 basics for Beginner
14. Statistics with Python
15. Sklearn Scikit Learn Machine Learning
16. Python Pandas Dataframe Operations
17. Linear Regression, Supervised Machine Learning
18 Interview Questions on Machine Learning, Artificial Intelligence, Python Pandas and Python Basics
19. Jupyter Notebook Operations
20. Logistic Regresion in Machine Learning, Data Science
21. Learn Microsoft Excel Basics
Python built-in type set has the following characteristics:
Set are unordered.
Set elements are unique and it doesn’t allow duplicate elements.
Set itself may be modified but the elements contained in the set must be Hashable.
Objects that cannot be changed after its created is called immutable object.
Object on which hash function works is called Hashable Object.
In python any immutable object (such as integer, boolean, string, tuple is Hashable which means its value doesn’t change during its lifetime. This allows Python to create a unique hash value to identify it, which can be used by dictionaries to track unique keys and which in turn helps to track unique values.
All Playlist of this youtube channel
==============================
1. Data Preprocessing in Machine Learning
2. Confusion Matrix in Machine Learning, ML, AI
3. Anaconda, Python Installation, Spyder, Jupyter Notebook, PyCharm, Graphviz
4. Cross Validation, Sampling, train test split in Machine Learning
5. Drop and Delete Operations in Python Pandas
6. Matrices and Vectors with python
7. Detect Outliers in Machine Learning
8. TimeSeries preprocessing in Machine Learning
9. Handling Missing Values in Machine Learning
10. Dummy Encoding Encoding in Machine Learning
11. Data Visualisation with Python, Seaborn, Matplotlib
12. Feature Scaling in Machine Learning
13. Python 3 basics for Beginner
14. Statistics with Python
15. Sklearn Scikit Learn Machine Learning
16. Python Pandas Dataframe Operations
17. Linear Regression, Supervised Machine Learning
18 Interview Questions on Machine Learning, Artificial Intelligence, Python Pandas and Python Basics
19. Jupyter Notebook Operations
20. Logistic Regresion in Machine Learning, Data Science
21. Learn Microsoft Excel Basics
Комментарии