Tarun Singh

Tarun Singh

90 Articles Published

Articles by Tarun Singh

Page 2 of 9

How to not get caught while web scraping?

Tarun Singh
Tarun Singh
Updated on 27-Mar-2026 403 Views

Web scraping is a powerful technique used for market research, price monitoring, and content aggregation. However, it comes with legal and ethical challenges, especially when conducted without the website owner's consent. Many websites implement anti-scraping measures to prevent automated data extraction, while others may pursue legal action against violators. In this article, we will explore effective strategies to conduct web scraping responsibly while avoiding detection and legal issues. Why Web Scraping Can Be Complicated? Web scraping presents several challenges that developers must navigate carefully − Violating terms of service − Many websites explicitly prohibit automated ...

Read More

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

Tarun Singh
Tarun Singh
Updated on 27-Mar-2026 4K+ 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 values between 0 and 1. In this article, we will learn how to normalize a NumPy array so the values range exactly between 0 and 1. We will explore different approaches that can be used to achieve this using NumPy and scikit-learn, along with syntax and complete examples. ...

Read More

How to modify existing figure instance in Matplotlib?

Tarun Singh
Tarun Singh
Updated on 27-Mar-2026 1K+ Views

In this article, we will learn how to modify an existing figure instance in Matplotlib. A figure instance represents the entire visualization window that can contain plots, titles, labels, and legends. Matplotlib is a popular Python library for creating visualizations. It provides both a simple interface through pyplot and an object-oriented approach for fine-grained control over figure properties. Creating and Accessing Figure Instances To work with figures, we first need to create or access an existing figure instance. Here are the common approaches ? import matplotlib.pyplot as plt import numpy as np # Method ...

Read More

How to Merge Two Pandas DataFrames on Index?

Tarun Singh
Tarun Singh
Updated on 27-Mar-2026 3K+ Views

Merging two Pandas DataFrames on index is essential when you have datasets sharing common row identifiers but containing different columns. This operation combines data horizontally, creating a unified dataset for analysis. In this article, we will explore three methods to merge Pandas DataFrames based on their index: merge(), join(), and concat(). What is a Pandas DataFrame? A DataFrame is Pandas' primary two-dimensional data structure, similar to a spreadsheet or SQL table. It consists of labeled rows and columns where each column can contain different data types (integers, floats, strings, etc.). The row labels form the index, while ...

Read More

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

Tarun Singh
Tarun Singh
Updated on 27-Mar-2026 5K+ 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 this article, we will learn how to merge two CSV files by a specific column using Pandas in Python. What is Pandas Library? Pandas is an open-source library for data manipulation and analysis in Python. It provides high-performance data structures and tools for working with structured data, ...

Read More

How to Merge “Not Matching” Time Series with Pandas?

Tarun Singh
Tarun Singh
Updated on 27-Mar-2026 3K+ Views

Time series data is crucial for many business operations, especially in finance and manufacturing. These datasets often come in multiple tables with specific subsets of data. Merging tables with non-matching timestamps can be challenging, but Pandas provides powerful tools to handle this task effectively. In this article, we will learn how to merge time series data with non-matching timestamps using Pandas. We'll explore different merge techniques including inner join, outer join, left join, and the specialized merge_asof() function for time-series data. Using Inner Join An inner join returns only rows with matching timestamps in both DataFrames. Any ...

Read More

How to specify that the form should not be validated when submitted in HTML?

Tarun Singh
Tarun Singh
Updated on 16-Mar-2026 975 Views

The form element in HTML enables creating interactive sections like contact forms and login forms where users can input and submit data to web servers. By default, HTML5 provides built-in form validation to ensure that user input meets specific requirements before submission. However, there are scenarios where you might want to disable form validation − such as during development, testing, or when implementing custom validation logic. HTML provides several methods to bypass the browser's default validation behavior when a form is submitted. Syntax Following are the three main syntaxes to disable form validation − Using the ...

Read More

How to select all links inside the paragraph using jQuery?

Tarun Singh
Tarun Singh
Updated on 15-Mar-2026 1K+ Views

jQuery is a popular JavaScript library that simplifies HTML DOM traversal, event handling, and AJAX interactions for rapid web development. It offers a wide range of built-in functions and methods that help developers to manipulate HTML elements, styles, and behaviors dynamically. In this article, we will see how to select all links inside a paragraph using jQuery. Selecting links inside a paragraph is a common requirement when we want to modify the links in a particular section of our website, such as changing styles, adding event handlers, or extracting link information. How to Select All Links Inside a ...

Read More

How to create an array with multiple objects having multiple nested key-value pairs in JavaScript?

Tarun Singh
Tarun Singh
Updated on 15-Mar-2026 6K+ Views

JavaScript is a versatile language that is widely used for creating dynamic web applications. One of the most common data structures used in JavaScript is the array. An array is a collection of elements that can be of any type, including objects. In this article, we will discuss how to create an array with multiple objects having multiple nested key-value pairs in JavaScript. What are arrays? An array is a special type of object that stores a collection of values. These values can be of any data type, such as numbers, strings, booleans, and even other arrays. Arrays ...

Read More

How Blazor Framework is Better Than JavaScript Frameworks?

Tarun Singh
Tarun Singh
Updated on 15-Mar-2026 2K+ Views

Web development is a rapidly evolving field, and Microsoft's Blazor framework is one of the latest entrants in the arena. Blazor is a client-side web framework that allows developers to build web applications using C# and .NET instead of JavaScript. While JavaScript frameworks like Angular, React, and Vue.js have been popular choices for web development for many years, Blazor offers some unique advantages that make it an attractive alternative. In this article, we will discuss how Blazor framework may be considered better than JavaScript frameworks, including language familiarity, rendering, code sharing, tooling, security, and more. We'll also explore the ...

Read More
Showing 11–20 of 90 articles
« Prev 1 2 3 4 5 9 Next »
Advertisements