## How to Sum List of Lists in Python? [Columns]

Problem: Given a list of lists representing a data matrix with n rows and m columns. How to sum over the columns of this matrix? In this article, you’re going to learn different ways to accomplish this in Python. Let’s ensure that you’re on the same page. Here’s a graphical representation of the list of … Read more

## How to Average a List of Lists in Python?

Problem: You have a list of lists and you want to calculate the average of the different columns. Example: Given the following list of lists with four rows and three columns. You want to have the average values of the three columns: There are three methods that solve this problem. You can play with them … Read more

If you’ve already learned how to make basic 3d plots in maptlotlib and want to take them to the next level, then look no further. In this article, I’ll teach you how to create the two most common 3D plots (surface and wireframe plots) and a step-by-step method you can use to create any shape … Read more

## How to Calculate the Column Standard Deviation of a DataFrame in Python Pandas?

Want to calculate the standard deviation of a column in your Pandas DataFrame? In case you’ve attended your last statistics course a few years ago, let’s quickly recap the definition of variance: it’s the average squared deviation of the list elements from the average value. You can do this by using the pd.std() function that … Read more

## How to Get the Variance of a List in Python?

This article shows you how to calculate the variance of a given list of numerical inputs in Python. In case you’ve attended your last statistics course a few years ago, let’s quickly recap the definition of variance: it’s the average squared deviation of the list elements from the average value. So, how to calculate the … Read more

## numpy.fv — Calculate the Future Value of an Investment in Python

NumPy is full of those little helper functions that boost your productivity and make coding a lot of fun. The NumPy’s fv() function is one of those helpers for financial analysis that will save you a lot of time if you’re working in the financial sector—or if you’re just using NumPy to analyze your own … Read more

## Why does Python Look Great on Your Resume?

Nothing to add—let’s get started! ? Python is the fastest-growing major programming language. A StackOverflow 2019 developer survey shows that Python is not only faster growing than C++, Java, JavaScript, and any other major programming language, it also comes with a happier community that loves the language most. Python is great for machine learning. Python comes with … Read more

## Why Should I Use NumPy?

NumPy is not the trendiest Python library in the world. There are libraries such as TensorFlow or Scikit-learn for machine learning. These libraries get all the attention these days. However, in this article, I want to highlight the importance of learning the basics first. You cannot learn TensorFlow before you’ve learned Python. Similarly, you cannot … Read more

## A Python Implementation of NumPy Cumsum

You may know the np.cumsum() function from the NumPy library that calculates the cumulative sum of a given NumPy array. How can we implement this function in Python? Studying this will not only show you how the NumPy cumsum function works, but it’ll also make you a better coder because it contains many important concepts … 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

## How to Start Your Career as a Data Scientist with Python?

This guide is a conceptual view on how to start your career as a data scientist–and on which skills you should focus. Here are the three most important steps recommended in the video: Learn Python basics (link to free Python crash course on this blog). Learn NumPy (link to free NumPy tutorial on this blog). … Read more