SlideShare a Scribd company logo
4
Most read
6
Most read
9
Most read
Hash tables and hash maps in python | Edureka
• What is a Hash Table or a Hashmap in Python?
• Creating Dictionaries
• Nested Dictionaries
❖Accessing Items
❖Updating Values
• Performing Operation oh Hash Tables
❖Deleting Entries
• Converting Dictionary into a Dataframe
www.edureka.co/python
What is a Hash Table or Hashmap in
Python?
www.edureka.co/python
What is a Hash Table or Hashmap in
Python?
www.edureka.co/python
Index Value
0 Value1
1 Value2
2 Value3
Key1
Key2
Key3
Hash
Function
Hash table or a Hashmap is a type of data structure that maps keys to its value pairs
Creating Dictionaries
www.edureka.co/python
www.edureka.co/python
Creating Dictionaries
Using curly Braces
Dictionary in Python is represented using curly
braces. Therefore, to create a dictionary, you can
make use of the curly braces.
Using dict()
Python provides dict() function that can be
used to create dictionaries by passing the
key-value pairs as parameters to it.
Nested Dictionaries
www.edureka.co/python
www.edureka.co/python
Nested Dictionaries
Nested dictionaries are basically dictionaries that lie within
other dictionaries
Index Value
0
1 Value2
2 Value3
Key1
Key2
Key3
Hash
Function
0.1 Value1.1
0.2 Value1.2
Performing Operations on Hash Tables
www.edureka.co/python
• Accessing Items
• Updating Values
• Deleting Entries
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
www.edureka.co
www.edureka.co/python
Performing Operations on Hash Tables
Accessing Items
Index Value
0
1
2
Key1
Key2
Key3
Hash
Function
Value1
Value3
Value2
Values
www.edureka.co/python
Performing Operations on Hash Tables
Updating Values
Dictionaries are mutable data types and you can update them as and when
required.
Index Value
0
1 Value2
2 Value3
Key1
Key2
Key3
Hash
Function
Value1
www.edureka.co/python
Performing Operations on Hash Tables
Deleting Entries
Index Value
0 Value1
1 Value2
2 Value3
Key1
Key2
Key3
Hash
Function
Index Value
0 Value1
1 Value2
Converting Dictionary into a
Dataframe
www.edureka.co/python
www.edureka.co/python
DataFrame is a 2-D (2-dimensional) data
structure that consists of columns of various
types. It is very similar to a Python dictionary
and you can even convert a dictionary into a
pandas dataframe.
Converting
Dictionary into a
Dataframe
www.edureka.co/python

More Related Content

PPTX
SUBQUERIES.pptx
PPTX
PPTX
Regular Expression
PPTX
Unit 4 plsql
PPT
Abstract class in java
PPTX
Control Statements in Java
PPTX
Regular Expressions To Finite Automata
SUBQUERIES.pptx
Regular Expression
Unit 4 plsql
Abstract class in java
Control Statements in Java
Regular Expressions To Finite Automata

What's hot (20)

PPTX
Quadratic probing
PPTX
Object Oriented Programming in Python
PPTX
SQL Join Basic
PDF
Python - object oriented
PPTX
Hashing in datastructure
PPT
Introduction to Python
PPTX
DT-08-Hashing.PPTX
PDF
Managing I/O in c++
PDF
Collections In Java
PPTX
Basics of Object Oriented Programming in Python
PDF
Sql tutorial
PDF
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
PDF
Hot C++: Rvalue References And Move Semantics
PPTX
PPT
Context free grammars
PPTX
Hashing and Hashtable, application of hashing, advantages of hashing, disadva...
PPTX
Relational Database Access with Python
PPTX
Templates in C++
PPT
Hash table
Quadratic probing
Object Oriented Programming in Python
SQL Join Basic
Python - object oriented
Hashing in datastructure
Introduction to Python
DT-08-Hashing.PPTX
Managing I/O in c++
Collections In Java
Basics of Object Oriented Programming in Python
Sql tutorial
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Hot C++: Rvalue References And Move Semantics
Context free grammars
Hashing and Hashtable, application of hashing, advantages of hashing, disadva...
Relational Database Access with Python
Templates in C++
Hash table
Ad

Similar to Hash tables and hash maps in python | Edureka (20)

PDF
SF Python Meetup: TextRank in Python
PDF
Python for Everybody - Solution Challenge 2021
PPTX
Dictionariesasdfghjsdfghjklsdfghjkl.pptx
PDF
What is Dictionary In Python? Python Dictionary Tutorial | Edureka
PPTX
Pa2 session 1
PDF
PuppetConf 2017: Custom Types & Providers: Modeling Modern REST Interfaces an...
PPTX
Pa1 session 2
PDF
Python Programming and GIS
PPTX
Python Tutorial Part 1
PPTX
bhaskars.pptx
PDF
Write code that writes code! A beginner's guide to Annotation Processing - Ja...
PDF
Write code that writes code!
PDF
Scalable Ensemble Machine Learning @ Harvard Health Policy Data Science Lab
PPTX
python full notes data types string and tuple
PPTX
.net F# mutable dictionay
PPTX
Cthhis_is_cybersecurty_and_cyber_sxec.pptx
PPTX
Building .NET Core tools using the Roslyn API by Arthur Tabatchnic at .Net fo...
PDF
Advance Programming Slides lect.pptx.pdf
PDF
Introduction to Perl and BioPerl
PPTX
Hadoop with Python
SF Python Meetup: TextRank in Python
Python for Everybody - Solution Challenge 2021
Dictionariesasdfghjsdfghjklsdfghjkl.pptx
What is Dictionary In Python? Python Dictionary Tutorial | Edureka
Pa2 session 1
PuppetConf 2017: Custom Types & Providers: Modeling Modern REST Interfaces an...
Pa1 session 2
Python Programming and GIS
Python Tutorial Part 1
bhaskars.pptx
Write code that writes code! A beginner's guide to Annotation Processing - Ja...
Write code that writes code!
Scalable Ensemble Machine Learning @ Harvard Health Policy Data Science Lab
python full notes data types string and tuple
.net F# mutable dictionay
Cthhis_is_cybersecurty_and_cyber_sxec.pptx
Building .NET Core tools using the Roslyn API by Arthur Tabatchnic at .Net fo...
Advance Programming Slides lect.pptx.pdf
Introduction to Perl and BioPerl
Hadoop with Python
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
Teaching material agriculture food technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
20250228 LYD VKU AI Blended-Learning.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Understanding_Digital_Forensics_Presentation.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Per capita expenditure prediction using model stacking based on satellite ima...
Spectroscopy.pptx food analysis technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology

Hash tables and hash maps in python | Edureka