Data Types for Data Science in Python
Consolidate and extend your knowledge of Python data types such as lists, dictionaries, and tuples, leveraging them to solve Data Science problems.Start Course for Free
4 Hours15 Videos47 Exercises58,980 Learners
Create Your Free Account
Loved by learners at thousands of companies
Have you got your basic Python programming chops down for Data Science but are yearning for more? Then this is the course for you. Herein, you'll consolidate and practice your knowledge of lists, dictionaries, tuples, sets, and date times. You'll see their relevance in working with lots of real data and how to leverage several of them in concert to solve multistep problems, including an extended case study using Chicago metropolitan area transit data. You'll also learn how to use many of the objects in the Python Collections module, which will allow you to store and manipulate your data for a variety of Data Scientific purposes. After taking this course, you'll be ready to tackle many Data Science challenges Pythonically.
Fundamental Sequence Data TypesFree
This chapter will introduce you to the fundamental Python data types - lists, sets, and strings. These data containers are critical as they provide the basis for storing and looping over ordered data. To make things interesting, you'll apply what you learn about these types to answer questions about the New York Baby Names dataset!Introduction and lists50 xpManipulating lists for fun and profit100 xpLooping over lists100 xpMeet the tuples50 xpData type usage50 xpUsing and unpacking tuples100 xpMaking tuples by accident100 xpStrings50 xpFormatted String Literals ("f" strings)100 xpCombining multiple strings100 xpFinding strings in other strings100 xp
Dictionaries - The Root of Python
At the root of all things Python is a dictionary. Herein, you'll learn how to use them to safely handle data that can viewed in a variety of ways to answer even more questions about the New York Baby Names dataset. You'll explore how to loop through data in a dictionary, access nested data, add new data, and come to appreciate all of the wonderful capabilities of Python dictionaries.Using dictionaries50 xpCreating and looping through dictionaries100 xpSafely finding by key100 xpAltering dictionaries50 xpAdding and extending dictionaries100 xpPopping and deleting from dictionaries100 xpPythonically using dictionaries50 xpWorking with dictionaries more pythonically100 xpChecking dictionaries for data100 xpMixed data types in dictionaries50 xpDealing with nested dictionaries100 xpDealing with nested mixed types100 xp
Numeric Data Types, Booleans, and Sets
Let's take a step away from dictionaries and look at some other common numeric and boolean data types along with sets.Numeric data types50 xpChoosing when to use integers and floats100 xpPrinting floats100 xpDivision with integers and floats100 xpBooleans - The logical data type50 xpMore than just true and false100 xpComparisons100 xpTruthy, True, Falsey, and False100 xpSets (unordered data with optimized logic operations)50 xpDetermining set differences100 xpFinding all the data and the overlapping data between sets100 xp
Advanced Data Types
Some data types are composites of other data types and give me even more capabilities than a fundamental data type. Let's explore a few complex types from the collections module and data classes.Counting made easy50 xpUsing Counter on lists100 xpFinding most common elements100 xpDictionaries of unknown structure - Defaultdict50 xpCreating dictionaries of an unknown structure100 xpSafely appending to a key's value list100 xpWhat do you mean I don't have any class? Namedtuple50 xpCreating namedtuples for storing data100 xpLeveraging attributes on namedtuples100 xpDataclasses50 xpCreating a dataclass100 xpUsing dataclasses100 xpWrap-up50 xp
In the following tracksPython Programmer
PrerequisitesPython Data Science Toolbox (Part 2)
Jason MyersSee More
Co-Author of Essential SQLAlchemy and Software Engineer
Jason Myers is a software engineer and author. His area of expertise is in developing data analytics platforms. He has also written the Essential SQLAlchemy book, co-authored with Rick Copeland, that introduces you to working with relational databases in Python.
Don’t just take our word for it
*4.0from 27 reviews
- Jaime P.2 months
Excellent course. It was a fruitful learning experience for people like my, who are starting y the programming word.
- Saúl V.4 months
Great course. The content is well organized and selected.
- William M.5 months
It could be the most important course for a Python developer!!!
- Muhammad M.5 months
- Stefan W.6 months
Great overview of more advanced features. To be honest, some of the examples were not intuitive. It would help to have really simple examples that help one focus on the features.
"Excellent course. It was a fruitful learning experience for people like my, who are starting y the programming word."
"Great course. The content is well organized and selected."
"It could be the most important course for a Python developer!!!"
Join over 11 million learners and start Data Types for Data Science in Python today!
Create Your Free Account