Performance comparison of Numba vs Vectorization vs Lambda function with NumPy

What will we cover in this tutorial? We will continue our investigation of Numba from this tutorial. Numba is a just-in-time compiler for Python that works amazingly with NumPy. As we saw in the last tutorial, the built in vectorization can depending on the case and size of instance be faster than Numba. Here we will explore that … Read more

Sort a Python List with String of Integers or a Mixture

What will we cover in this tutorial? Why sort on a list of integers represented in strings fails First of, we need to understand why it is not trivial to solve by just calling sort on the list. Let’s just try with an example. Which will result in the following list. Where you see the … Read more

Pandas: Data Preparation with Vectorized Strings vs Lambda Functions

What will we cover in this tutorial? Understand the challenge Most of the time when you read data into a pandas DataFrame it need to be prepared. To be more concrete, let’s look at an example. Let’s consider we want to look at the List of largest companies by revenue on Wikipedia. You can read … Read more