Marcin Kozak

AI

The Trap of Sprints: Don’t Be Like Scarlett O’Hara. Think Today!

DATA SCIENCE Why data scientists should prioritize communication and flexibility in agile projects Marcin Kozak · Follow Published in Towards Data Science · 8 min read · 15 hours ago — Photo by Saad Chaudhry on Unsplash You must have heard about Gone with the Wind and its main heroine, Scarlett O’Hara. One of her famous sayings was: “I’ll think about that tomorrow. Tomorrow is another…

Read More »
AI

A Guide to Powerful Python Enumerations

PYTHON PROGRAMMING Improve Python code for data science with simple, readable, and performant enumerations Marcin Kozak · Follow Published in Towards Data Science · 23 min read · 16 hours ago — Python enumerations offer useful data types. Photo by Waldemar on Unsplash Enumeration types are used in various programming languages, such as C, C#, C++, Java, Go, Rust — and, of course, Python. For some reasons I’m unaware of, Python enumerations are undervalued and…

Read More »
AI

Overwriting in Python: Tricky. Dangerous. Powerful

PYTHON PROGRAMMING Although overwriting objects is a typical Python coding technique, it can lead to unexpected effects. You need to know how to use it to utilize its strengths. Marcin Kozak · Follow Published in Towards Data Science · 27 min read · 22 hours ago — Overwriting in Python can be dangerous: Don’t enter without reconsideration. Photo by Raúl Nájera on Unsplash I’ve overwritten plenty of various objects in Python. If you’ve spent your

Read More »
AI

Function Interfaces in Python

PYTHON PROGRAMMING Function interfaces in Python can be implemented using type hints and protocols. Marcin Kozak · Follow Published in Towards Data Science · 18 min read · 4 hours ago — Photo by Rubaitul Azad on Unsplash While Python doesn’t offer interfaces in the sense commonly known from other programming languages, it does offer similar functionalities. Traditional ones are abstract base classes (ABCs), available via the abc module. Later on, type hints and typing

Read More »