Combinations in Python

There are lots of ways to generate combinations in Python. This post will show you all of them.

How to force pip to reinstall a package

Once in a while, a Python package gets corrupted on your machine and you need to force pip to reinstall it. As of pip 10.0, you can run the following...

The Keras custom layer explained

Sometimes you need to define your own Keras custom layer. This tutorial explains how custom layers work for tensorflow>=1.7.0 (up to at least 2.4.0) which includes a fairly stable version of the Keras API.

How to use the Pandas melt command

The Pandas melt command unpivots tabular data, transforming it from wide to long format. To understand this operation, you have to know...