
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 10476 Articles for Python

4K+ Views
Finding the lengths of individual words in a given input string using Python is the issue that has to be resolved. We want to count the characters in each word of a text input and display the results in a structured style, like a list. The task entails breaking down the input string and separating each word. The length of each word is then calculated based on the number of characters in it. The basic objective is to create a function or process that can receive input, determine word lengths, and promptly output the results effectively. In several applications, including ... Read More

4K+ Views
Histogram equalization is a technique used in image processing to enhance the contrast of an image by redistributing the pixel intensities in a way that maximizes the overall brightness and detail. The method works by adjusting the frequency distribution of the pixel values in an image, such that the resulting image has a uniform histogram. The uniform histogram ensures that each pixel in the image has an equal chance of appearing, resulting in a well−distributed image with enhanced contrast. Histogram equalization is an important tool in image processing and is commonly used in various applications, including medical imaging, remote sensing, ... Read More

5K+ Views
In this article we will learn different approaches with which we can change the value of data present in an excel sheet using python. Openxypl Openpyxl is a Python library used for working with Excel spreadsheets. It is a popular choice for working with Excel files in Python because it is easy to use, has an active developer community, and provides many features for working with spreadsheets. Openpyxl allows you to create, read, write, and modify Excel files using Python. It supports the following file formats: XLSX (Microsoft Excel Open XML Spreadsheet) XLSM (Microsoft Excel Open XML Macro−Enabled ... Read More

733 Views
Image data pre−processing is an essential step in training deep learning models that take images as input. In large−scale image datasets, pre−processing images can be computationally expensive and can result in high memory consumption. To address this issue, generators are often used to pre−process and feed images into a deep learning model. In Python, the Keras library provides a powerful tool for pre−processing image data using generators. The ImageDataGenerator class can be used to create a generator that reads images from a specified directory and performs pre−processing operations on the fly. The ImageDataGenerator class provides several methods for performing pre−processing ... Read More

771 Views
In this article, we will learn how we can perform cluster sampling in Pandas. But before we deep dive into that, let's explore a little about what sampling is in Pandas, as well as how pandas help us to do that. Sampling In Pandas, sampling refers to the process of selecting a subset of rows or columns from a DataFrame or Series object. Sampling can be useful in many data analysis tasks, such as data exploration, testing, and validation. Pandas provides several methods for sampling data, including: DataFrame.sample(): This method returns a random sample of rows from a ... Read More

12K+ Views
In this article, we will learn how to clear an LRU cache implemented in Python. Before we dive deep into the coding aspect, let's explore a little about what an LRU cache is and why it is popular. LRU Cache, also known as the Least Recently Used Cache, is a data structure that is widely used in computer science to improve the performance of applications by reducing the time it takes to access frequently−used data. The LRU Cache stores a limited number of items and removes the least recently used item when the cache becomes full. This allows ... Read More

7K+ Views
Multithreading is a powerful technique used in modern programming languages to execute multiple threads simultaneously. In Python, the threading module is used to implement multithreading. Multithreading allows programs to perform multiple tasks at once and can improve the performance of applications. When working with multithreading in Python, it's essential to know how to check if a thread is running or not. The is_alive() method provided by the Thread class is a simple and effective way to check the status of a thread. By using this method, you can determine whether a thread has started, is running, or has finished its ... Read More

713 Views
In today's digital world, PDF files have become an essential medium for storing and sharing information. However, sometimes it can be difficult to find a specific string of text within a PDF document, especially if the file is lengthy or complex. This is where Python, a popular programming language, comes in handy. Python provides several libraries that allow us to interact with PDF files and extract information from them. One common task is to search for a particular string within a PDF file. This can be useful for various purposes, such as data analysis, text mining, or information retrieval. In ... Read More

3K+ Views
Pandas is a popular Python library used for data manipulation and analysis. It provides powerful tools for working with structured data, such as tables or spreadsheets. Pandas can handle a variety of data formats, including CSV, Excel, SQL databases, and JSON, among others. One of the critical features of Pandas is its two primary data structures: Series and DataFrame. A Series is a one−dimensional array−like object that can hold any data type, such as integers, floating−point numbers, strings, or even Python objects. Series are labelled, meaning that they have an index that is used to access and manipulate the data. ... Read More

231 Views
PyTorch is an open−source machine learning library developed by Facebook's AI Research team. It is primarily used for deep learning applications, including natural language processing, computer vision, and reinforcement learning. PyTorch provides two main features: a multidimensional Tensor object and a collection of functions that operate on these Tensors. Torch The Tensor object in PyTorch is similar to NumPy's ndarray, but with added capabilities for utilizing GPUs and building dynamic computational graphs. These computational graphs are constructed on−the−fly during the execution of the program, allowing for efficient memory usage and more flexible model architectures. Additionally, PyTorch has a modular design ... Read More