Wun Code
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
  1. 1List comprehensionsPythonA loop and a condition in one line
  2. 2Dict comprehensionsPythonFilter and invert a dict in one line
  3. 3Sorting with a keyPythonThe key parameter decides what gets compared
  4. 4Counting with CounterPythonHow many times each item appears
  5. 5Grouping with defaultdictPythonGroup into buckets without a KeyError
  6. 6Parallel listsPythonzip and enumerate instead of index numbers
  7. 7Text processingPythonNormalize, clean, split and count text
  8. 8Reading and writing JSONPythonFrom text to data and back
  9. 9Built-in functionsPythonAnswer data questions in one line
  10. 10Lazy generatorsPythonOne value on demand, not a whole list