Can You Get A Job Knowing Only Python And No Other Programming Language?

Of course, you can. However, the question misses the point. It’s not about how many programming languages you know. It’s about how much expertise you have in the areas that matter. If you are good at Python, you’ve already proven that you have expertise in the technical programming area. Now, it’s much more about how … Read more

NoStarch Author Questionnaire for Upcoming Book “Python One-Liners”

Today, I filled in the author questionnaire for any author who publishes a book with the international techbook publisher NoStarchPress. I share this article because (1) other authors may be interested in how the concrete questions look like, and (2) Finxter readers may be interested in the upcoming book “Python One-Liners” (to appear in 2019) … Read more

Python Numpy 101: How to Calculate the Row Variance of a Numpy 2D Array?

You can play with the following interactive Python code to calculate the variance of a 2D array (total, row, and column variance). Here’s another practical example: What is the output of this puzzle?*Advanced Level* (solution below) Numpy is a popular Python library for data science focusing on arrays, vectors, and matrices. This puzzle introduces a … Read more

How do You Slice and Index Multidimensional Arrays in Numpy?

Python’s library for data science, NumPy, allows you to slice multidimensional arrays easily. For multi-dimensional slices, you can use one-dimensional slicing for each axis separately. You define the slices for each axis, separated by a comma. Here are a few examples drawn from my comprehensive NumPy tutorial. Take your time to thoroughly understand each of … Read more

What is a Career in Computer Programming Like?

All programming is not created equal. Having said this, I don’t know a single programmer who regrets his choice of learning to program. With growing automation, programming becomes more and more a skill that is at the heart of many tasks in our society. No matter whether you work in the medicine, logistics, retail, or … Read more

How Python Freelancing Helped Me Create a Thriving Coding Business on the Side

I’m a full-time online business owner working in the Python education space. But I started my career by working as a doctoral computer science researcher at the University of Stuttgart, Germany. While I was working there, I started my online business by finishing a few Python freelancing jobs. Creating a side-business helped me greatly in … Read more

Why Does the Scikit-learn Library use a Trailing Underscore Convention for Attribute Names?

If you’ve used the sklearn library in your own code, you may have realized that all attributes are suffixed with a trailing underscore. Here’s an example for the k-means algorithm: In the second-last line, we used the kmeans attribute cluster_centers_. Why does sklearn library not use the attribute name cluster_centers? ‘The short answer is, the … Read more

A List of Lambda Functions? This Python Puzzle May Surprise You…

Guido doesn’t like lambda functions too much. Yet, most large code projects contain a lot of them! (Many coders use lambda functions as GUI callbacks, etc.) In this “Coffee Break Python” email series, we take a pragmatic approach regarding Python code style — living in the “is” rather than in the “should be” world. Can … Read more