Installing Specific Package Versions With PIP

Summary: There are primarily two ways of installing a package with a specific version using pip – pip install -Iv package-name == versionΒ  pip install -v package-name == version Problem Statement: How to install a specific package version with pip in Python? In Python, pip is a command and tool used to install, update and … Read more

How to Read an XLS File in Python?

Problem Formulation and Solution Overview In this article, you’ll learn how to read an XML file and format the output in Python. To make it more fun, we have the following running scenario: Arman, a Music Appreciation student at the Royal Conservatory of Music, has been given course materials in an XML file format. Arman … Read more

np.argpartition() — A Simple Illustrated Guide

In Python, the numpy.argpartition() function returns the indices that would partition an array along with a given axis based on the specified kth element(s). All elements smaller than the kth element will be moved before it and all larger elements behind it. The element order in the partitions is undefined. If provided with a sequence … Read more

Denial of Service (DoS) Attack on Smart Contracts

This post is part 5 of our Smart Contract Security Series: Ownership Exploit Private Variable Exploit Reentrancy Attack tx.origin Phishing Attack Denial of Service Attack Storage Collision Attack Randomness Attack Replay Attack The post discusses the Denial of Service or alias the DoS attack. The Denial of Service (hence referred to as DoS) restricts legitimate … Read more

Back-End Web Developer — Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is a Back-end Web Developer? A web developer is a programmer who specializes in the development of websites or applications viewed on web browsers, mobile devices, and large desktop screens that are transported over private or public networks such as … Read more

Front-End Web Developer — Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is a Front-end Web Developer? A web developer is a programmer who specializes in the development of websites or applications viewed on web browsers, mobile devices, and large desktop screens that are transported over private or public networks such as … Read more

How To Get The Filename Without The Extension From A Path In Python?

[toc] Problem Statement: How to get the filename without the extension from a path in Python? Example: Suppose you have a file with the following path: C:\Users\SHUBHAM SAYON\Documents\folder1 Here, we just need to get the filename, i.e. “demo“.  In Python, files are used to store information.  We can perform many operations on the files- read, write, … Read more

How To GroupBy A Dataframe In Pandas And Keep Columns

[toc] The groupby() function saves you a ton of time and headache when analyzing data. It is fast and eases handling massive data. However, you may fail to maximize its potential if you don’t know how to use it. That is why this tutorial explains DataFrame grouping using relatable challenges, code snippets, and solutions. πŸ’‘ … Read more