A hobby programmer, a cloud technology fanatic, and a passionate content writer. Being a coder at heart with a love for many things else, Ninad enjoys making scripts that simplify his life. Everything that he can, he automates. When he's off work, you will find him reading books on his comfy couch at home.

## The xlrd Module – How To Handle Excel Files In Python?

Microsoft Excel is one of the most widely used applications for data analysis and visualization. Nearly every organization works with Excel files in some form. As a Python programmer, a useful skill to have is the ability to read, parse, and manipulate Excel files using Python. In this tutorial, you’ll learn how to explore Excel […]

## Python Shape Function: Find Dimensions of Arrays and DataFrames

The shape function in Python is used to determine the dimensions of arrays and dataframes. This information is provided in the form of a tuple. Typically, the shape method is applied to Python objects such as numpy.array or pandas.DataFrame. The number of elements in the tuple returned by the shape function corresponds to the dimensions

## How to Initialize Model Weights in Pytorch

In the world of deep learning, the process of initializing model weights plays a crucial role in determining the success of a neural network’s training. PyTorch, a popular open-source deep learning library, offers various techniques for weight initialization, which can significantly impact the model’s learning efficiency and convergence speed. A well-initialized model can lead to

## Reverse Zipcode lookup using Python geocode module

In this article, we’ll be working on the geocode module to perform a reverse lookup on different zipcodes. The entire code is pretty straightforward so we’ll be quickly going over the individual pieces. How does the geocode module help? The Python geocode module is built to process geographical data and help us pair and match

## Encapsulation In Python

When working with an Object Oriented Programming language like Python, encapsulation in Python is one of the 4 important concepts to understand. The other three are inheritance, polymorphism, and abstraction. What is Encapsulation? When working with classes and dealing with sensitive data, providing global access to all the variables used within the program is not

## How to Open Files in Python

Python gives us file handling methods within its standard library. This is really convenient as a developer since you do not really need to import any more modules for handling files. The key methods provided to us by the Python for file handling are open(), close(), write(), read(),seek() and append(). Let’s go over the open()

## HTMLParser in Python 3.x

html.parser.HTMLParser provides a very simple and efficient way for coders to read through HTML code. This library comes pre-installed in the stdlib. This simplifies our interfacing with the HTMLParser library as we do not need to install additional packages from the Python Package Index (PyPI) for the same task. What is HTMLParser? Essentially, HTMLParser lets

## Creating a Python Module

So, you’ve been learning Python for quite a while now. As a beginner, it is common practice to have a one-file program that has all the code organized with the use of classes and functions. But as you get more advanced, and your code gets more complex, you need to learn to use multiple files.