Companies Home Search Profile

Counting With Python's Counter

Focused View

Christopher Trudeau

36:45

196 View
  • 517 01 intro.mp4
    01:01
  • 517 02 counting.mp4
    03:56
  • 517 03 counter.mp4
    08:16
  • 517 04 prac1.mp4
    06:08
  • 517 05 pract2.mp4
    07:57
  • 517 06 msets.mp4
    08:07
  • 517 07 sum.mp4
    01:20
  • counter code NLeXame.zip
  • counter slides.pdf
  • Description


    Counting several repeated objects at once is a common problem in programming. Python offers a bunch of tools and techniques you can use to approach this problem. However, Python’s Counter from collections provides a clean, efficient, and Pythonic solution.

    This dictionary subclass provides efficient counting capabilities out of the box. Understanding Counter and how to use it efficiently is a convenient skill to have as a Python developer.

    In this video course, you’ll learn how to:

    What You'll Learn?


    • Count several repeated objects at once
    • Create counters with Python’s Counter
    • Retrieve the most common objects in a counter
    • Update object counts
    • Use Counter to facilitate further computations
    • Implement Counter instances as multisets

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Christopher Trudeau
    Christopher Trudeau
    Instructor's Courses

    Christopher has a passion for the Python language and writes for Real Python. He is a consultant who helps advise organizations on how to improve their technical teams. Christopher is a strong advocate for automation throughout the delivery process and the power of small teams with well defined goals.

    You can find Christopher here:

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 7
    • duration 36:45
    • Release Date 2023/01/05