Skip to main content
HomePython

course

Writing Efficient Python Code

Intermediate
4.7+
53 reviews
Updated 12/2024
Learn to write efficient code that executes quickly and allocates resources skillfully to avoid unnecessary overhead.
Start course for free

Included for FreePremium or Teams

PythonSoftware Development4 hours15 videos52 exercises4,000 XP126,089Statement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies

Course Description

As a Data Scientist, the majority of your time should be spent gleaning actionable insights from data -- not waiting for your code to finish running. Writing efficient Python code can help reduce runtime and save computational resources, ultimately freeing you up to do the things you love as a Data Scientist. In this course, you'll learn how to use Python's built-in data structures, functions, and modules to write cleaner, faster, and more efficient code. We'll explore how to time and profile code in order to find bottlenecks. Then, you'll practice eliminating these bottlenecks, and other bad design patterns, using Python's Standard Library, NumPy, and pandas. After completing this course, you'll have the necessary tools to start writing efficient Python code!

Prerequisites

Data Types in PythonPython Toolbox
1

Foundations for efficiencies

Start Chapter
2

Timing and profiling code

Start Chapter
3

Gaining efficiencies

Start Chapter
4

Basic pandas optimizations

Start Chapter
Writing Efficient Python Code
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review

Included withPremium or Teams

Enroll now

Don’t just take our word for it

*4.7
from 53 reviews
81%
13%
4%
2%
0%
  • Guorong C.
    about 1 month

    I like datacamp training format coding along to give me hands on experience. I learned a lot from this course. I am going to put those tricks from this course to practice.

  • Luis P.
    3 months

    excellent

  • Ghebremichael G.
    4 months

    Writing Efficient Python Code

  • Junseok C.
    6 months

    Structured course, learned efficient way of coding in Python

  • Lyndon H.
    9 months

    As someone who started coding in Assembler, I've always used looping when coding and was interested to see that alternative means were available. To paraphrase Monty Python "your loopings or your life" (Dennis Moore).

"I like datacamp training format coding along to give me hands on experience. I learned a lot from this course. I am going to put those tricks from this course to practice."

Guorong C.

"excellent"

Luis P.

"Writing Efficient Python Code"

Ghebremichael G.

FAQs

Join over 15 million learners and start Writing Efficient Python Code today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.