Data Types in Python
Consolidate and extend your knowledge of Python data types such as lists, dictionaries, and tuples, leveraging them to solve Data Science problems.
Kurs kostenlos starten4 Stunden15 Videos47 Übungen70.087 LernendeLeistungsnachweis
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.Trainierst du 2 oder mehr?
Versuchen DataCamp for BusinessBeliebt bei Lernenden in Tausenden Unternehmen
Kursbeschreibung
Have you got your basic Python programming chops down 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 purposes. After taking this course, you'll be ready to tackle many data challenges Pythonically.
Trainierst du 2 oder mehr?
Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.In den folgenden Tracks
Assoziierter Python-Entwickler
Gehe zu TrackGrundlagen der Python-Programmierung
Gehe zu Track- 1
Fundamental Sequence Data Types
KostenlosThis 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 - 2
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 - 3
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 - 4
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
Trainierst du 2 oder mehr?
Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.In den folgenden Tracks
Assoziierter Python-Entwickler
Gehe zu TrackGrundlagen der Python-Programmierung
Gehe zu TrackMitwirkende
Voraussetzungen
Python ToolboxJason Myers
Mehr anzeigenCo-Author of Essential SQLAlchemy and Software Engineer
Was sagen andere Lernende?
Melden Sie sich an 15 Millionen Lernende und starten Sie Data Types in Python Heute!
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.