The Difference Between “is” and “==” in Python

Python has two operators for equality comparisons, “is” and “==” (equals). In this article I’m going to teach you the difference between the two and when to use each with a few simple examples.


Sorting Data with Python

Sorting is an important feature and there are different ways and helpful functions in pandas like sort_values, sort_index and numpy methods sort and argsort to sort the Categorical and Numeric data in the dataframe... (more…)

Read more »

OpenBSD’s Pledge and Unveil from Python

Years ago, OpenBSD gained two new security system calls, pledge(2) (originally tame(2)) and unveil. In both, an application surrenders capabilities at run-time. The idea is to perform initialization like usual, then drop capabilities before handling untru... (more…)

Read more »