Let's walk through a real-world example of how to perform data clustering using the Python scikit-learn k-means clustering algorithm.
Today we're going to show you examples of how to calculate the outer product of two vectors or matrices using the NumPy library in Python.
Want to learn more programming languages? We've combined each of our comprehensive VBA reference guides into a single bundle with over 200 tips and macros covering the 125 most important topics in VBA.
Tell me more
Let's learn how to calculate eigenvalues and eigenvectors for a given matrix using the NumPy eigvals and eig methods in Python.
This article explains sorting in Python using the Sort and Sorted methods. The former sorts items in-place while the latter create copies of sorted collections, like lists and dictionaries.
This article explains how to perform different operations on individual items in Python lists using the Map, Filter and Reduce functions with Lambda functions.
We created a suite of 6 VBA cheat sheets with over 200 tips showing you everything you need to know to start making power Excel applications. Take a look!
Let's see how to speed up Python recursive functions by using memoization techniques, like the lru_cache decorator from the functools module.
This tutorial shows you how to delete all files in a folder using different Python libraries. We'll also demonstrate how to only delete files with a specific extension.
This tutorial shows how to generate random numbers in Python using the Random module. We'll use this to randomly choose items from a Python list.
This tutorial shows you how to perform Python set operations, like adding and removing items, and finding the union, intersection, and difference between sets.
Logging info is not enabled by default. This tutorial teaches you how to use the Python logging module to log info, errors and exceptions in your Python script.
subscribe via RSS
To access part 2 of my free online Python training program, enter your email address below.