Uploaded July 2020 | Updated November 2026, 2 hours ago
This video covers the basics of pandas data frames in Python.
Subscribe:
► youtube.com/c/DataDaft?sub_confirmation=1
This is lesson 9 of a 30-part introduction to the Python programming language for data analysis and predictive modeling. Link to the code notebook below:
Python for Data Analysis: Pandas Data Frames
kaggle.com/hamelg/python-for-data-9-pandas-dataframes
Link to the previous lesson on Numpy Arrays:
youtube.com/watch?v=KJlHh8mBQyY
This guide does not assume any prior exposure to Python, programming or data science. It is intended for beginners with an interest in data science and those who might know other programming languages and would like to learn Python.
I will create the videos for this guide such that you should be able to learn a lot just watching on YouTube, but to get the most out of the guide, it is recommended that you create a Kaggle account so that you can copy and edit each lesson so that you can follow along and run code yourself.
Introduction to Python Playlist:
youtube.com/playlist?list=PLiC1doDIe9rCYWmH9wIEYEXXaJ4KAi3jc
Link to the Python for Data Analysis written guide index page:
kaggle.com/hamelg/python-for-data-analysis-index .
⭐ Kite is a free AI-powered coding assistant that integrates with popular editors and IDEs to give you smart code completions and docs while you’re typing. It is a cool application of machine learning that can also help you code faster! Check it out here: kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=datadaft&utm_content=description-only
This video covers the basics of pandas data frames in Python.
Subscribe:
► youtube.com/c/DataDaft?sub_confirmation=1
This is lesson 9 of a 30-part introduction to the Python programming language for data analysis and predictive modeling. Link to the code notebook below:
Python for Data Analysis: Pandas Data Frames
kaggle.com/hamelg/python-for-data-9-pandas-dataframes
Link to the previous lesson on Numpy Arrays:
youtube.com/watch?v=KJlHh8mBQyY
This guide does not assume any prior exposure to Python, programming or data science. It is intended for beginners with an interest in data science and those who might know other programming languages and would like to learn Python.
I will create the videos for this guide such that you should be able to learn a lot just watching on YouTube, but to get the most out of the guide, it is recommended that you create a Kaggle account so that you can copy and edit each lesson so that you can follow along and run code yourself.
Introduction to Python Playlist:
youtube.com/playlist?list=PLiC1doDIe9rCYWmH9wIEYEXXaJ4KAi3jc
Link to the Python for Data Analysis written guide index page:
kaggle.com/hamelg/python-for-data-analysis-index .
⭐ Kite is a free AI-powered coding assistant that integrates with popular editors and IDEs to give you smart code completions and docs while you’re typing. It is a cool application of machine learning that can also help you code faster! Check it out here: kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=datadaft&utm_content=description-only

![How To Use map() in Python
map() is a Python built in that lets you apply or map a function to each element in a list or iterable object. map() is one of the most useful Python built in functions for data analytics, since you will often be working with large sequence data types that need to be transformed in various ways.
Code used in the video:
# Map lets you apply a function to each element of a list
power_level_list = [1000, 4000, 16000, 150, 9001, 1500]
def greater_than_9000(x):
if x > 9000:
return True
return False
mapped = map(greater_than_9000, power_level_list)
print(mapped)
# Print each mapping
for m in mapped:
print(m)
# Extract mapping into new list
mapped_list = [*map(greater_than_9000, power_level_list)]
mapped_list
# Use map with a lambda function
[*map(lambda x: x > 9000, power_level_list)]
* Note: YouTube does not allow greater than or less than symbols in the text description, so the code above will not be exactly the same as the code shown in the video! I will use Unicode large < and > symbols in place of the standard sized ones. .
Videos on Pandas map() operations:
How To Use apply() In Pandas (Python)
https://www.youtube.com/watch?v=smPLY_5gVv4&ab_channel=DataDaft
How To Use applymap() In Pandas (Python)
https://www.youtube.com/watch?v=azF6O_mzaCI&ab_channel=DataDaft How To Use map() in Python](https://i.ytimg.com/vi/E4fSP3cOHCE/mqdefault.jpg)








