Tarun Singh has Published 103 Articles

How to merge multiple excel files into a single file with Python?

Tarun Singh

Tarun Singh

Updated on 31-Aug-2023 11:38:57

8K+ Views

Excel is one of the most popular tools for data analysis and management. Often, we need to merge multiple Excel files into a single file for analysis or sharing with others. Manually merging these files can be time−consuming and prone to errors, especially when dealing with large datasets. Luckily, Python ... Read More

How to merge many TSV files by common key using Python Pandas?

Tarun Singh

Tarun Singh

Updated on 31-Aug-2023 11:35:05

444 Views

If you work with data, you've probably had to deal with the challenge of merging multiple files into one cohesive dataset. This task can be particularly difficult if you're working with tab−separated values (TSV) files. Fortunately, the Python Pandas library provides a straightforward solution for merging TSV files by a ... Read More

How to merge a transparent PNG image with another image using PIL?

Tarun Singh

Tarun Singh

Updated on 31-Aug-2023 11:25:28

1K+ Views

In the world of image processing, merging two or more images together is a common operation. One common use case is to merge a transparent PNG image with another image to create a composite image that contains both images. In this article, we will learn how to merge a ... Read More

How to normalize a NumPy array so the values range exactly between 0 and 1?

Tarun Singh

Tarun Singh

Updated on 10-Aug-2023 16:01:21

2K+ Views

NumPy is a powerful library in Python for numerical computing that provides an array object for the efficient handling of large datasets. Often, it is necessary to normalize the values of a NumPy array to ensure they fall within a specific range. One common normalization technique is to scale the ... Read More

How to open an image from the URL in PIL?

Tarun Singh

Tarun Singh

Updated on 31-Jul-2023 10:33:37

3K+ Views

PIL (Python Imaging Library) is a widely used Python library that enables developers to work with image files. It offers a broad range of functionalities for manipulating and handling image files, such as opening and resizing them, converting between different formats, and more. One frequently encountered task when working with ... Read More

How to not get caught while web scraping?

Tarun Singh

Tarun Singh

Updated on 31-Jul-2023 10:31:01

120 Views

Market research, price monitoring, and content aggregation are just a few examples of the myriad of purposes for which web scraping is utilized and has gained widespread popularity. Although web scraping entails extracting data from websites, there are quite a few legal and ethical concerns surrounding this controversial practice, particularly ... Read More

How to modify existing figure instance in Matplotlib?

Tarun Singh

Tarun Singh

Updated on 31-Jul-2023 10:27:10

444 Views

In this article, we will learn how to modify an existing figure instance in Matplotlib. We will see the complete step-wise process to modify the existing figure in matplotlib along with their complete examples in Python. Matplotlib is a popular Python library used for creating various types of plots and ... Read More

How to Merge Two Pandas DataFrames on Index?

Tarun Singh

Tarun Singh

Updated on 31-Jul-2023 10:23:16

2K+ Views

Merging two Pandas DataFrames on index can be useful in many data analysis scenarios. For instance, you might have two datasets with different features or data points, but both share a common index. In this case, merging the two DataFrames can help you combine the data in a meaningful way. ... Read More

How to modify HTML using BeautifulSoup?

Tarun Singh

Tarun Singh

Updated on 31-Jul-2023 10:15:04

1K+ Views

HTML (Hypertext Markup Language) is the foundation of the internet. Websites use HTML to create and display content in a structured manner. In many cases, it's necessary to modify HTML code to add new elements, remove unwanted elements, or make other changes. This is where BeautifulSoup comes in. BeautifulSoup is ... Read More

How to merge two csv files by specific column using Pandas in Python?

Tarun Singh

Tarun Singh

Updated on 31-Jul-2023 10:04:23

4K+ Views

CSV (Comma Separated Values) files are widely used for storing and exchanging data in a simple format. In many data processing tasks, it is necessary to merge two or more CSV files based on a specific column. Fortunately, this can be easily achieved using the Pandas library in Python. In ... Read More

Previous 1 ... 4 5 6 7 8 ... 11 Next
Advertisements