Python Articles

Page 166 of 855

Handling duplicate values from datasets in python

Premansh Sharma
Premansh Sharma
Updated on 27-Mar-2026 7K+ Views

Duplicate values are identical rows or records that appear multiple times in a dataset. They can occur due to data entry errors, system glitches, or data merging issues. In this article, we'll explore how to identify and handle duplicate values in Python using pandas. What are Duplicate Values? Duplicate values are data points that have identical values across all or specific columns. These duplicates can skew analysis results and create bias in machine learning models, making proper handling essential for data quality. Identifying Duplicate Values The first step in handling duplicates is identifying them. Pandas provides ...

Read More

Plotting stock charts in excel sheet using xlsxwriter module in python

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 284 Views

Factors such as data analysis and growth rate monitoring are very important when it comes to plotting stock charts. For any business to flourish and expand, the right strategy is needed. These strategies are built on the back of a deep fundamental research. Python programming helps us to create and compare data which in turn can be used to study a business model. Python offers several methods and functions through which we can plot graphs, analyze growth and introspect the sudden changes. In this article we will be discussing about one such operation where we will plot a stock ...

Read More

Pos tagging and lammetization using spacy in python

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 1K+ Views

Python acts as an integral tool for understanding the concepts and application of machine learning and deep learning. It offers numerous libraries and modules that provide a magnificent platform for building useful Natural Language Processing (NLP) techniques. In this article, we will discuss one such powerful library known as spaCy. spaCy is an open-source library used to analyze and process textual data efficiently. We will explore two key NLP concepts: Part-of-Speech (PoS) tagging and lemmatization using spaCy. What is spaCy? spaCy is an industrial-strength NLP library designed for production use. It provides fast and accurate text processing ...

Read More

Ways to create a dictionary of lists in python

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 3K+ Views

A dictionary in Python is a collection of data stored in the form of key-value pairs. We can assign different datatypes as the value for a key. Lists store data in sequences that can be traversed and manipulated. When combining these structures, we create a dictionary of lists where lists serve as values for immutable keys. Basic Understanding Dictionary Syntax Dictionaries use curly braces {} ? car_dict = {"Brand": "AUDI", "Model": "A4"} print(car_dict) {'Brand': 'AUDI', 'Model': 'A4'} List Syntax Lists use square brackets [] ? details = ...

Read More

Different ways to initialize list with alphabets in python

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 1K+ Views

When working with text processing or letter analysis, we often need a list containing all alphabets. Python provides several efficient methods to create ordered sequences of alphabets using ASCII values and built-in functions. In this article, we will explore different approaches to initialize a list with all 26 English alphabets in correct order. What is a List of Alphabets? A list of alphabets is a sequence containing all 26 English letters in order ? ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', ...

Read More

Why has python considered a good language for ai and machine learning

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 771 Views

Machine learning and artificial intelligence represent cutting-edge fields where we create systems that learn from data and make predictions. Python has emerged as the leading programming language for AI and ML development due to its simplicity, extensive libraries, and strong community support. In this article, we will explore why Python is considered an excellent choice for AI and machine learning projects, examining its advantages and comparing it with other programming languages. Understanding Machine Learning Machine learning is a technique where systems learn patterns from data to make predictions or decisions. Unlike traditional programming, ML follows a different ...

Read More

Is python necessary to learn for machine learning

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 329 Views

Python is a powerful programming language heavily used across various fields. It's currently the most popular language among developers due to its efficiency and simplicity. In today's data-driven world, managing complex information is a major challenge for tech companies globally. When machines are designed to think and learn from past experiences, data complexity becomes inevitable. The smart approach is using a programming language that reduces code complexity. Python excels at handling complex data, making it invaluable for machine learning applications. This article explores Python's importance in machine learning and examines whether it's truly necessary for this field. ...

Read More

Is python the best choice for machine learning?

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 340 Views

"Which programming language is the best?" This is the most popular and debatable question in the programming world. The answer is not linear because every programming language has its own pros and cons. When we talk about machine learning, Python is highly preferred, but there are certain factors to consider. Let's explore these factors and understand why Python has become the go-to choice for machine learning projects. What is Machine Learning? Machine learning is a technique where algorithms learn patterns from data to make predictions or decisions without being explicitly programmed. We feed machines with input and ...

Read More

Modelling the Carnot Cycle in Python

Dr Pankaj Dumka
Dr Pankaj Dumka
Updated on 27-Mar-2026 2K+ Views

The Carnot cycle is the most fundamental gas power cycle that serves as a benchmark for all engine cycles. Every engine cycle efficiency is validated against the Carnot cycle's theoretical maximum efficiency. It comprises four processes: two reversible adiabatic processes and two isothermal processes. ...

Read More

Python Program to sort a tuple of custom objects by properties

Harshit Sachan
Harshit Sachan
Updated on 27-Mar-2026 499 Views

Python allows us to create custom objects using classes to represent complex data structures. When we have a tuple containing these custom objects, we often need to sort them by specific properties like name, age, or other attributes. A custom object is an instance of a user-defined class that encapsulates data and behavior specific to our needs. Here's how we define a simple class ? class Person: def __init__(self, name, age): self.name = name self.age = age ...

Read More
Showing 1651–1660 of 8,549 articles
« Prev 1 164 165 166 167 168 855 Next »
Advertisements