PyCon JP 2024

Unlocking the Power of Python's Collections Module
2024-09-27 , 4F Track3

Are you looking to take your Python skills to the next level? Join us for an exciting deep dive into the collections module, a powerful part of Python’s standard library that offers specialized data structures beyond the usual lists and dictionaries. We’ll explore using collections to write cleaner, more efficient, and more readable code. From namedtuple to defaultdict, you’ll learn about different data structures and see practical examples of how they can simplify your coding tasks. Whether you're just starting out or looking to optimize your projects, this session will give you the tools you need to make your Python programs more robust and elegant.


Why did you choose this topic?

I chose this topic because the collections module is a powerful but often underutilized part of Python. It offers specialized data structures that can make code more efficient and readable. Sharing this knowledge will help others improve their coding practices and discover new tools to enhance their Python projects

Knowledges and know-how the audience can get from your talk

The audience will gain a thorough understanding of the key data structures in the collections module, such as namedtuple, deque, Counter, OrderedDict, and defaultdict. They will see practical examples that demonstrate how to implement and use these structures in real-world scenarios, helping to make their code more efficient and readable. Additionally, attendees will learn how these specialized data structures can enhance the performance of their programs compared to using the built-in options. By understanding the advantages and appropriate use cases for each structure, they will be able to write cleaner, more maintainable code. The talk will also provide performance tips and best practices, ensuring that the audience can effectively leverage these tools in their own projects.

Prior knowledges speakers assume the audience to have

Basic understanding of Python programming language fundamentals

Audience experiment

Beginner

Language of presentation

English

Language of presentation material

English

I'm a Software Engineer at Rakuten with a bachelor's degree in Computer Engineering from UFSCar (Federal University of São Carlos - Brazil). Creator of the ArgQ! Browser Extension, designed for analyzing political arguments. I am an active member of the Python community through Grupy Sanca and enjoy participating in programming contests.