Publications by Dario Radečić
Dask Delayed – How to Parallelize Your Python Code With Ease
We all know Python isn’t the fastest programming language. Its Global Interpreter Lock (GIL) mechanism allows only one thread to execute Python bytecode at once. You can avoid this limitation by changing the interpreter or implementing process-based parallelism techniques.I’ve talked about parallelism in Python in the past, so make sure to ...
4973 sym 8 img
Dask Delayed — How to Parallelize Your Python Code With Ease
Parallelize any function with a single decoratorWe all know Python isn’t the fastest programming language. Its Global Interpreter Lock (GIL) mechanism allows only one thread to execute Python bytecode at once. You can avoid this limitation by changing the interpreter or implementing process-based parallelism techniques.I’ve talked about paral...
4556 sym Python (803 sym/3 pcs) 10 img
Apache Kafka in Python: How to Stream Data With Producers and Consumers
Stream chat data by writing Kafka Producer and Consumer from scratch. In a world of big data, a reliable streaming platform is a must. Apache Kafka is the way to go. Today’s article will show you how to work with Kafka Producers and Consumers in Python. You should have Zookeeper and Kafka configured through Docker. If that’s not the case, rea...
900 sym
Python Structural Pattern Matching — Top 3 Use Cases To Get You Started
Python 3.10 added support for switch statements — Here are 3 practical examples to get you startedPython’s equivalent of a switch statement is finally here in Python 3.10. It hides behind a fancy name of Structural Pattern Matching, and does what you’d expect and more. It packs support for working with primitive data types, sequences, a...
5969 sym Python (1521 sym/6 pcs) 8 img
Top 7 Skills to Get Hired in Data Science in 2022
If you want to know how to get hired in data science, you’re in luck. We’ve prepared a complete guide on the 7 skills you need to land your first job or internship. These also apply if you’re looking to make a career switch or to improve your performance as a data scientist.It’s hard to get hired in data science. Chances are you’ll neve...
9083 sym 2 img
Python If-Else Statement in One Line – Ternary Operator Explained
Single-line conditionals in Python? Here's when to and when NOT to use them.Python isn't the fastest programming language out there, but boy is it readable and efficient to write. Everyone knows what conditional statements are, but did you know you can write if statements in one line of Python code? As it turns out you can, and you'll learn all a...
9646 sym Python (1728 sym/16 pcs) 12 img
Python Single vs. Double Quotes – Which Should You Use And Why?
Python oftentimes leaves you with options, and quotes are no exception. What are the differences between Python single and double quotes? Which one should you use? When does one have an edge over the other? What are triple quotes? It's easy to get confused if you're a beginner.You see, Python is a lot different from, let's say Java. In Java, you ...
7919 sym Python (1229 sym/10 pcs) 22 img
Python Set union() – A Complete Guide in 5 Minutes
Python programmers have several methods for combining two sets into one. In this blog post, we'll explore the set union() method, and we'll look at some examples of how to use it. We'll also discuss some of the benefits of using set union(), and we'll see why it's a popular tool for Python developers.Finally, we'll go over some advanced use cases...
6327 sym Python (1874 sym/20 pcs) 14 img
5 Best Books to Learn Data Science Prerequisites – A Complete Beginner Guide
Do you want to learn data science? It's a great field to get into, and there are plenty of resources to help you get started. But where should you start? Which books can teach you the fundamentals of data science? In this blog post, we'll recommend five books that will help beginners learn data science prerequisites.These books will teach you ess...
6064 sym 12 img
Python Set Difference – A Complete Beginner Guide
In the last week's article, you've learned in depth how Python set union() works. This week we'll explore yet another set function, and that's set difference(). With Python set difference, you can easily find the difference between two or more sets. In plain English, that means only the distinct values that are unique to the first set are returne...
5703 sym 12 img