- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 10784 Articles for Python
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
2K+ Views
When working with data in Python, there may be situations where you need to organise your data into a list of N−lists. This data structure, commonly known as a "list of lists, " allows you to store and access multiple sets of data in a structured and flexible manner. Each individual list within the main list can contain different types of data or even other nested lists. This article will explore various methods to create a list of N−lists in Python, providing you with the knowledge and tools to efficiently manage and manipulate your data. Whether you're dealing with multidimensional ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
290 Views
Image classification is a type of machine learning task that involves identifying the objects or scenes in an image. It is a challenging task, but it has many applications in real−world problems such as facial recognition, object detection, and medical image analysis. In this article, we will discuss how to classify clothing images using Python. We will use the Fashion−MNIST dataset, which is a collection of 60, 000 grayscale images of 10 different clothing items. We will build a simple neural network model to classify these images. Import the Modules The first step is to import the necessary modules. We ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
1K+ Views
Excel uses a special format to store dates and times, called serial date numbers. Serial date numbers are a count of days since January 1, 1899, which is the date that Excel considers to be the beginning of time. Python's datetime module provides powerful tools for working with dates and times. However, when it comes to interoperability with other applications, such as Microsoft Excel, we often encounter the need to convert Python datetime objects into Excel's serial date number format. In this article, we will explore how to perform this conversion and bridge the gap between Python and Excel. Understanding ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
116 Views
Arrays are fundamental data structures in programming, enabling us to store and manipulate collections of values efficiently. Python, as a versatile programming language, provides numerous tools and libraries for working with arrays and matrices. In particular, the ability to convert 1−D arrays into 2−D arrays is an essential skill when dealing with tabular data or performing operations requiring a two−dimensional structure. In this article, we will explore the process of converting 1−D arrays into columns of a 2−D array using Python. We will cover various methods, ranging from manual manipulation to leveraging powerful libraries such as NumPy. Whether you are ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
5K+ Views
When working with data in Python, it is often necessary to transform and manipulate arrays to facilitate analysis and computations. One common scenario is converting a 1D array of tuples into a 2D Numpy array. This conversion allows for easier indexing, slicing, and applying array operations. In this article, our focus will be on the conversion process of transforming a 1D array of tuples into a Numpy array. 1D Array of Tuple A 1D array of tuples refers to a data structure in which tuples are arranged sequentially in a one−dimensional array. For example, consider the following 1D array of ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
2K+ Views
SQLite is a popular, lightweight, and self−contained database engine that is widely used in various applications. One of the unique features of SQLite is its ability to create databases in memory, which allows for faster data access and manipulation. In this article, we will explore how to connect to an in−memory SQLite database using Python, providing step−by−step instructions, code examples, explanations, and sample outputs. Understanding SQLite In−Memory Databases An SQLite in−memory database is a temporary database that resides entirely in memory instead of being stored on disk. This type of database is useful for scenarios where data needs to be ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
3K+ Views
Pandas is a powerful data manipulation library widely used in Python for data analysis and preprocessing tasks. When working with data, it is common to encounter situations where dates and times are represented as floating−point numbers instead of the expected datetime format. In such cases, it becomes essential to convert the float values to datetime objects to perform accurate time−based analysis. This article aims to provide a comprehensive guide on how to convert float values to datetime objects in a Pandas DataFrame. Understanding the importance of converting float to datetime Datetime objects offer several advantages over float representations of dates ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
612 Views
JSON (JavaScript Object Notation) is a popular format for data exchange between systems. It is a lightweight, text−based, and easy−to−parse format that has become a standard for data exchange over the internet. However, JSON does not provide any order for the elements in the data structure. While this may not be an issue in most cases, there are situations where the order of the elements is important. On the other hand, OrderedDict is a subclass of the built−in dict class in Python, which maintains the order of the keys in the dictionary. The order is determined by the order in ... Read More
![S Vijay Balaji](https://www.tutorialspoint.com/assets/profiles/305230/profile/60_1077105-1687772017.jpg)
4K+ Views
When it comes to automation, be it to setup your computer on start-up or to farm coins on a clicker game, it becomes essential to simulate mouse movements and clicks. And what better way to do this than use Python! For performing this particular task of automating or simulating your mouse movement, we will be using Python’s mouse library that has various methods and functionalities to help simulate your mouse on your computer. Now that you know what we will be working with, let us get started! Getting Started Firstly, we need to install the mouse library. Since this library ... Read More
![S Vijay Balaji](https://www.tutorialspoint.com/assets/profiles/305230/profile/60_1077105-1687772017.jpg)
180 Views
Creating a simple alarm clock is one of the basic projects that can help you understand the basics of time manipulation, running system commands, playing audio files and other such essential topics. And, in this tutorial, we will be learning how to build one. For this, we will be working with the PyGame module to play the audio file and the datetime module to get the current system time. Alright, let us get started then! Getting Started For playing the audio file, we will be using the PyGame module. This module does not come pre-packaged with Python. So, we’ll be ... Read More