Python
Data processing in Python
Learn to process real data in Python with comprehensions, dictionaries, sorting and counting.
Start the trackFree, no sign-up needed
What you'll learn
- List comprehensionsA loop and a condition in one line
- Dict comprehensionsFilter and invert a dict in one line
- Sorting with a keyThe key parameter decides what gets compared
- Counting with CounterHow many times each item appears
- Grouping with defaultdictGroup into buckets without a KeyError
- Parallel listszip and enumerate instead of index numbers
- Text processingNormalize, clean, split and count text
- Reading and writing JSONFrom text to data and back
- Built-in functionsAnswer data questions in one line
- Lazy generatorsOne value on demand, not a whole list
Track contents
10 lessons, 2 hours in total- 1List comprehensionsPythonA loop and a condition in one line11 min
- 2Dict comprehensionsPythonFilter and invert a dict in one line11 min
- 3Sorting with a keyPythonThe key parameter decides what gets compared13 min
- 4Counting with CounterPythonHow many times each item appears10 min
- 5Grouping with defaultdictPythonGroup into buckets without a KeyError11 min
- 6Parallel listsPythonzip and enumerate instead of index numbers10 min
- 7Text processingPythonNormalize, clean, split and count text14 min
- 8Reading and writing JSONPythonFrom text to data and back11 min
- 9Built-in functionsPythonAnswer data questions in one line12 min
- 10Lazy generatorsPythonOne value on demand, not a whole list15 min
More Python tracks
All tracks- PyBeginner
Python Basics
Start with the most beginner-friendly language there is, and use it to learn variables, strings, lists, conditions, loops and functions.
10 lessons2 hours - PyAdvanced
Object-Oriented Python
Learn classes, special methods, inheritance and exceptions, and see how the libraries you use are built.
10 lessons2 hours