Programming and data · Beginner to intermediate · Free
Data Science and Machine Learning with Python
Python, pandas, charts and machine learning with scikit-learn, with real code that runs and checks itself in your browser.
Learn the tools data scientists use every day, then use them to build machine learning models. Start with a Python crash course, NumPy and SciPy, analyze tables with pandas, and draw charts with Matplotlib, Seaborn and Plotly. Then put it all together on 911 call data and move into machine learning with scikit-learn: linear and logistic regression, K nearest neighbors, decision trees and random forests, support vector machines, K means clustering, PCA, recommender systems, natural language processing, big data with Spark, and neural networks. Every lesson has live code you can edit and run, and exercises that check your code the moment you press Check.
- 66 lessons
- About 1210 minutes
- 162 runnable code cells
- 215 auto-checked exercises
- 1 unlimited practice sets
- 37 quiz questions
No sign-up needed. Your progress is saved on this device.
Course outline
0 of 66 lessons complete
Module 1 · Python crash course
- 1Numbers and variablesPython as a calculator, and names that hold values.10 min
- 2Strings and printingText in quotes, and filling values into text.10 min
- 3Lists and indexingOrdered collections you can grow, slice and nest.12 min
- 4Dictionaries, tuples, sets and booleansLook-ups by key, lists that can't change, and unique values.12 min
- 5Comparisons, logic and ifAsk True-or-False questions and act on the answer.10 min
- 6Loops, range and list comprehensionsRepeat work over items, and build lists in one line.12 min
- 7Functions, lambda, map and filterPackage code under a name, and apply it to whole lists.14 min
- 8Methods on strings, lists and dictionariesBuilt-in tools like split, lower, pop, keys and in.12 min
- 9Python review: the speeding ticketPut conditions and functions together in one final problem.10 min
Module 2 · NumPy and SciPy
- 10NumPy arraysThe fast array type nearly every data science library is built on.14 min
- 11Random numbers, reshape and attributesRandom arrays, changing shape, and finding the biggest value.14 min
- 12Indexing and selectionGrab single values, slices, rows, columns and values that pass a test.18 min
- 13Array math and summariesArithmetic on whole arrays, universal functions, sums and axes.14 min
- 14SciPy: math built on NumPySolve equations, take matrices apart and handle huge, mostly empty matrices with SciPy.15 min
Module 3 · pandas
- 15Meet pandas: the SeriesA labeled column of data, and why labels make math line up.12 min
- 16DataFrames: columns and rowsSelect, add and drop columns; pick rows with loc and iloc.16 min
- 17Filtering rows and working with the indexKeep rows that pass a test, and reset, set or stack the index.16 min
- 18Missing dataFind, drop and fill the gaps in a data set.10 min
- 19GroupbySplit rows into groups and summarize each one.12 min
- 20Combining tablesStack tables with concat, and match them up with merge and join.16 min
- 21Everyday operationsUnique values, apply, sorting, null checks and pivot tables.16 min
- 22Reading and writing dataCSV, Excel, HTML tables and SQL databases.14 min
Module 4 · pandas practice projects
Module 5 · Matplotlib
- 25Your first chartsLine charts with plt.plot, labels, and several charts side by side.12 min
- 26Figures and axesThe object-oriented way: full control over where every chart goes.16 min
- 27Labels, legends and stylesLegends, colors, line widths, markers and axis ranges.14 min
- 28Scatter plots, histograms and box plotsThe everyday chart types beyond the line chart.12 min
- 29Advanced MatplotlibLog scales, ticks, grids, twin axes, layouts, color maps and 3-D.20 min
Module 6 · Seaborn
- 30Distribution plotsSee how values spread out: histograms, density curves, joint plots and pair plots.16 min
- 31Categorical plotsCompare groups: bar, count, box, violin, strip and swarm plots.18 min
- 32Matrix plotsHeat maps of correlations and pivot tables, and cluster maps that group similar rows.12 min
- 33GridsRepeat a chart for every pair of columns or every group with PairGrid, FacetGrid and JointGrid.12 min
- 34Regression plotsFit and draw a trend line with lmplot, by group and across panels.10 min
- 35Style and colorBackgrounds, borders, sizes and color palettes.8 min
- 36Seaborn exercises: the TitanicRecreate seven charts of the passengers on the Titanic.20 min
Module 7 · Charts with pandas
Module 8 · Plotly and maps
- 39Interactive charts with PlotlyCharts you can hover, zoom and pan, with Plotly Express and pandas' Plotly backend.18 min
- 40Choropleth mapsColor states and countries by a number, with hover text and map projections.18 min
- 41Choropleth exercisesMap world power use and the 2012 US voting-age population.16 min
Module 9 · Data capstone: 911 calls
Module 10 · Machine learning: linear regression
- 44What is machine learning?How a model learns from examples, the main kinds of learning, and why we test on data it hasn't seen.10 min
- 45Linear regression: house pricesPredict house prices from neighborhood facts, read the coefficients, and measure the error.25 min
- 46Project: app or website?An online clothing store wants to know where to invest. Let linear regression decide.30 min
Module 11 · Logistic regression
Module 12 · K nearest neighbors
Module 13 · Decision trees and random forests
Module 14 · Support vector machines
Module 15 · K means clustering
Module 16 · Principal component analysis
Module 17 · Recommender systems
Module 18 · Natural language processing
Module 19 · Big data with Spark
Module 20 · Deep learning and neural networks
- 64How a neural network worksNeurons, weights, activations and layers, built by hand with NumPy.20 min
- 65Recognize handwritten digitsTrain a neural network that reads handwritten numbers, the classic first deep learning project.20 min
- 66Project: spot fake bank notesTrain a neural network on measurements of bank note images, then check it against a random forest.25 min