Server Side Programming Articles

Page 23 of 2109

How to use Xpath with BeautifulSoup?

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 6K+ Views

XPath is a powerful query language used to navigate and extract information from XML and HTML documents. BeautifulSoup is a Python library that provides easy ways to parse and manipulate HTML and XML documents. Combining the capabilities of XPath with BeautifulSoup can greatly enhance your web scraping and data extraction tasks. Algorithm for Using XPath with BeautifulSoup A general algorithm for using XPath with BeautifulSoup is − Load the HTML document into BeautifulSoup using the appropriate parser. Apply XPath expressions using either find(), find_all(), select_one(), or select() methods. Pass the XPath expression as a string, along ...

Read More

How to use Vision API from Google Cloud?

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 604 Views

Google Cloud Vision API is a powerful cloud-based tool that allows developers to integrate advanced image analysis capabilities into their applications. With the abundance of images in today's digital age, Vision API helps extract meaningful information from these images, such as recognizing objects, detecting text, analyzing faces, and more. In this article, we will understand how to use Vision API from Google Cloud to analyze image data. Prerequisites Before using Google Cloud Vision API, you need to ? Create a Google Cloud Platform (GCP) project Enable the Vision API for your project Create a service account ...

Read More

How to use the mouse to scale and rotate an image in PyGame?

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 823 Views

Pygame is a powerful library for creating 2D games and graphical applications in Python. It provides a wide range of functionalities, including the ability to manipulate and transform images. In this article, we will explore how to use the mouse to scale and rotate an image in Pygame. Prerequisites Before understanding the process of scaling and rotating images, it's essential to have a basic understanding of Pygame and its event-handling mechanism. Also, make sure you have Pygame installed in your Python environment. You can install it using pip with the command ? pip install pygame ...

Read More

How to use the Live Coding Feature of Python in Eclipse?

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 420 Views

Eclipse, a powerful integrated development environment (IDE), offers a wide range of features to enhance the coding experience. One such feature is live coding, which allows developers to see the real−time output of their code as they type, making the debugging process more efficient. In this article, we will discuss how to set up and use the live coding feature of Python in Eclipse. Setting up Eclipse for Python Development Before we dive into live coding, let's ensure that Eclipse is properly configured for Python development. Step 1: Download and Install Eclipse Visit the Eclipse website ...

Read More

How to Use Pickle to Save and Load Variables in Python?

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 14K+ Views

Pickle is a Python module that is used for data serialization − converting data into a byte stream. Pickle allows developers to save and load variables from memory to disk, ensuring data integrity and easy retrieval. In this article, we will explore how to utilize Pickle effectively to save and load variables in Python. Understanding Pickle Pickle is a built-in module in Python that enables object serialization, which refers to the process of converting objects into a byte stream. The byte stream can be stored as a file, transferred over the network, or even persisted in a database. ...

Read More

How to Use Pandas filter with IQR?

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

Pandas is an open-source Python library used for data analysis and manipulation. In large datasets, some extreme values called outliers can modify the data analysis result. The Interquartile Range (IQR) is a robust statistical measure used to identify and handle these outliers. Understanding the Interquartile Range (IQR) The IQR divides a dataset into quartiles, where Q1 represents the 25th percentile and Q3 represents the 75th percentile. The IQR is calculated as the difference between Q3 and Q1 ? # IQR Formula IQR = Q3 - Q1 Any value below Q1 - 1.5 * IQR ...

Read More

How to Use Pandas cut() and qcut()?

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 2K+ Views

Pandas is a Python library that is used for data manipulation and analysis of structured data. The cut() and qcut() methods of pandas are used for creating categorical variables from numerical data. The cut() method splits numerical data into discrete intervals based on value ranges, while qcut() splits data into quantiles with equal frequencies. In this article, we will understand the functionalities of both methods with practical examples. The cut() Function The cut() function divides a continuous variable into discrete bins or intervals based on specified criteria. It creates groups or categories of data based on the range ...

Read More

How to Use Pandas apply() inplace?

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

The apply() function in pandas is used to apply a custom function to a DataFrame or Series. By default, apply() returns a new DataFrame or Series, but you can modify the original data in-place using specific techniques. In this article, we'll explore how to achieve in-place modifications with apply(). Syntax DataFrame.apply(func, axis=0) Series.apply(func) The axis parameter determines whether to apply the function row-wise (axis=1) or column-wise (axis=0). The func can be a built-in function, lambda function, or custom function. Default Behavior − Creating New Objects When using apply() without in-place assignment, it returns ...

Read More

How to Scrape Paragraphs Using Python?

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

Web scraping paragraphs is a common task in data extraction and content analysis. Beautiful Soup is a Python library that allows us to parse HTML and XML documents effortlessly. It provides a convenient way to navigate and search the parsed data, making it an ideal choice for web scraping tasks. In this article, we will learn how to scrape paragraphs using Beautiful Soup with practical examples. Installing Required Libraries Before scraping paragraphs, we need to install the necessary libraries. Open your terminal or command prompt and run the following command to install BeautifulSoup and requests ? ...

Read More

How to Scrape Data From Local HTML Files using Python?

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

The data of local HTML files can be extracted using Beautiful Soup and Python file handling techniques. Beautiful Soup allows us to parse HTML documents and navigate their structure, while file handling enables us to read HTML content from local files. By combining these tools, we can extract valuable data from HTML files stored on our computers. Prerequisites Before scraping data from local HTML files, ensure you have Python installed on your machine. Additionally, basic knowledge of Python programming and HTML structure is recommended. Installing Python Libraries To extract data from HTML files, we'll use the ...

Read More
Showing 221–230 of 21,090 articles
« Prev 1 21 22 23 24 25 2109 Next »
Advertisements