Loved by learners at thousands of companies
Learning Python is crucial for any aspiring data science practitioner. Learn to visualize real data with Matplotlib's functions and get acquainted with data structures such as the dictionary and the pandas DataFrame. After covering key concepts such as boolean logic, control flow, and loops in Python, you'll be ready to blend together everything you've learned to solve a case study using hacker statistics.
Data visualization is a key skill for aspiring data scientists. Matplotlib makes it easy to create meaningful and insightful plots. In this chapter, you’ll learn how to build various types of plots, and customize them to be more visually appealing and interpretable.Basic plots with Matplotlib50 xpLine plot (1)100 xpLine Plot (2): Interpretation50 xpLine plot (3)100 xpScatter Plot (1)100 xpScatter plot (2)100 xpHistogram50 xpBuild a histogram (1)100 xpBuild a histogram (2): bins100 xpBuild a histogram (3): compare100 xpChoose the right plot (1)50 xpChoose the right plot (2)50 xpCustomization50 xpLabels100 xpTicks100 xpSizes100 xpColors100 xpAdditional Customizations100 xpInterpretation50 xp
Dictionaries & Pandas
Learn about the dictionary, an alternative to the Python list, and the pandas DataFrame, the de facto standard to work with tabular data in Python. You will get hands-on practice with creating and manipulating datasets, and you’ll learn how to access the information you need from these data structures.Dictionaries, Part 150 xpMotivation for dictionaries100 xpCreate dictionary100 xpAccess dictionary100 xpDictionaries, Part 250 xpDictionary Manipulation (1)100 xpDictionary Manipulation (2)100 xpDictionariception100 xpPandas, Part 150 xpDictionary to DataFrame (1)100 xpDictionary to DataFrame (2)100 xpCSV to DataFrame (1)100 xpCSV to DataFrame (2)100 xpPandas, Part 250 xpSquare Brackets (1)100 xpSquare Brackets (2)100 xploc and iloc (1)100 xploc and iloc (2)100 xploc and iloc (3)100 xp
Logic, Control Flow and Filtering
Boolean logic is the foundation of decision-making in Python programs. Learn about different comparison operators, how to combine them with Boolean operators, and how to use the Boolean outcomes in control structures. You'll also learn to filter data in pandas DataFrames using logic.Comparison Operators50 xpEquality100 xpGreater and less than100 xpCompare arrays100 xpBoolean Operators50 xpand, or, not (1)100 xpand, or, not (2)50 xpBoolean operators with NumPy100 xpif, elif, else50 xpWarmup50 xpif100 xpAdd else100 xpCustomize further: elif100 xpFiltering pandas DataFrames50 xpDriving right (1)100 xpDriving right (2)100 xpCars per capita (1)100 xpCars per capita (2)100 xp
There are several techniques you can use to repeatedly execute Python code. While loops are like repeated if statements, the for loop iterates over all kinds of data structures. Learn all about them in this chapter.while loop50 xpwhile: warming up50 xpBasic while loop100 xpAdd conditionals100 xpfor loop50 xpLoop over a list100 xpIndexes and values (1)100 xpIndexes and values (2)100 xpLoop over list of lists100 xpLoop Data Structures Part 150 xpLoop over dictionary100 xpLoop over NumPy array100 xpLoop Data Structures Part 250 xpLoop over DataFrame (1)100 xpLoop over DataFrame (2)100 xpAdd column (1)100 xpAdd column (2)100 xp
Case Study: Hacker Statistics
This chapter will allow you to apply all the concepts you've learned in this course. You will use hacker statistics to calculate your chances of winning a bet. Use random number generators, loops, and Matplotlib to gain a competitive edge!Random Numbers50 xpRandom float100 xpRoll the dice100 xpDetermine your next move100 xpRandom Walk50 xpThe next step100 xpHow low can you go?100 xpVisualize the walk100 xpDistribution50 xpSimulate multiple walks100 xpVisualize all walks100 xpImplement clumsiness100 xpPlot the distribution100 xpCalculate the odds50 xp
PrerequisitesIntroduction to Python
Data Scientist at DataCamp
Hugo is a data scientist, educator, writer and podcaster at DataCamp. His main interests are promoting data & AI literacy, helping to spread data skills through organizations and society and doing amateur stand up comedy in NYC. If you want to know what he likes to talk about, definitely check out DataFramed, the DataCamp podcast, which he hosts and produces: https://www.datacamp.com/community/podcast
What do other learners have to say?
I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.
Devon Edwards Joseph
Lloyds Banking Group
DataCamp is the top resource I recommend for learning data science.
Harvard Business School
DataCamp is by far my favorite website to learn from.
Decision Science Analytics, USAA