Gratuit Cours
Écrire du code Python efficace
IntermédiaireNiveau de compétence
Mis à jour 01/2026
Commencer Le Cours Gratuit
Inclus gratuitement
PythonProgramming4 h15 vidéos52 Exercices4,000 XP150K+Certificat de réussite
Créez votre compte gratuit
Continuer Avec GoogleAfficher plus d’optionsou
En continuant, vous acceptez nos Conditions d’utilisation, notre Politique de confidentialité et que vos données soient stockées aux États-Unis.
Apprécié par les Utilisateur dans des milliers d’entreprises
Former une équipe ?
Essayez pour les entreprisesDescription du cours
Prérequis
Data Types in PythonPython Toolbox1
Foundations for efficiencies
In this chapter, you'll learn what it means to write efficient Python code. You'll explore Python's Standard Library, learn about NumPy arrays, and practice using some of Python's built-in tools. This chapter builds a foundation for the concepts covered ahead.
2
Timing and profiling code
In this chapter, you will learn how to gather and compare runtimes between different coding approaches. You'll practice using the line_profiler and memory_profiler packages to profile your code base and spot bottlenecks. Then, you'll put your learnings to practice by replacing these bottlenecks with efficient Python code.
3
Gaining efficiencies
This chapter covers more complex efficiency tips and tricks. You'll learn a few useful built-in modules for writing efficient code and practice using set theory. You'll then learn about looping patterns in Python and how to make them more efficient.
4
Basic pandas optimizations
This chapter offers a brief introduction on how to efficiently work with pandas DataFrames. You'll learn the various options you have for iterating over a DataFrame. Then, you'll learn how to efficiently apply functions to data stored in a DataFrame.
Écrire du code Python efficace
Cours terminé
Obtenez un certificat de réussite
Ajoutez cette certification à votre profil LinkedIn, à votre CV ou à votre curriculum vitaePartagez-le sur les réseaux sociaux et dans votre évaluation de performanceInscrivez-vous Maintenant
Rejoignez plus de 19 millions d’Utilisateurs et commencez Écrire du code Python efficace dès aujourd’hui !
Créez votre compte gratuit
Continuer Avec GoogleAfficher plus d’optionsou
En continuant, vous acceptez nos Conditions d’utilisation, notre Politique de confidentialité et que vos données soient stockées aux États-Unis.
Apprenez où que vous soyez avec l'application DataCamp
Progressez où que vous soyez grâce à nos cours conçus pour mobile et à nos défis quotidiens de 5 minutes.