
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

10K+ Views
PySpark is a powerful tool for data processing and analysis. When working with data in a PySpark DataFrame, you may sometimes need to get a specific row from the dataframe. It helps users to manipulate and access data easily in a distributed and parallel manner, making it ideal for big data applications. In this article, We will explore how to get specific rows from the PySpark dataframe using various methods in PySpark. We will cover the approaches in functional programming style using PySpark's DataFrame APIs. Before Moving forward, let's make a sample dataframe from which we have to get the ... Read More

2K+ Views
Emotion identification or recognition is the ability of a person or an object to sense a particular emotion exhibited in the environment and place it into one of the many categories of emotions. Emotion Classification in python is a feasible alternative to the traditional sentiment analysis technique which labels words or sentences as positive or negative and allots them with a polarity score accordingly. The basic ideology behind this algorithm is to mimic the human thought process and it tries to segment the words portraying emotions from the text. The analysis is performed with a training set of data where ... Read More

425 Views
Email and social logins are common techniques for websites and apps to allow users to establish accounts or check in. Users must provide their email address and password for email login, however, social login allows users to sign in using their social networks accounts, such as Facebook or Google. In this tutorial, we'll go through how to set up email and social logins in Django. Method With Django, there are numerous ways to incorporate email and social logins. The Django-allauth package, which supports authentication for numerous login methods, including email and social logins, is one of the most prevalent. Another ... Read More

624 Views
Welcome to this in-depth tutorial on how to write a Python program to find the smallest word in a sentence. Whether you are a beginner or an intermediate Python programmer, this guide will offer the knowledge and skills necessary to use Python's powerful features in text manipulation. Problem Statement Given a sentence, our task is to find the smallest word. The "smallest" word refers to the word with the fewest characters. In case of a tie, we'll return the first occurring smallest word. Approach We start by splitting the sentence into words, which we'll accomplish by using spaces as the ... Read More

435 Views
In programming array is a data structure, which is used to store collection of homogeneous data elements. And each element in the array is identified by an index value or key. Arrays in Python Python doesn’t have a built-in data structure to represent arrays, but it has a built-in array module for arrays. And also we can use the NumPy package to work with arrays in python. An array defined by the array module is − array('i', [1, 2, 3, 4]) A Numpy array defined by the NumPy module is − array([1, 2, 3, 4]) Also, we can ... Read More

15K+ Views
An array is a homogeneous data structure, which is used to store a set of elements of the same data type. And each element in the array is identified by key or index value. Subarray A subarray is defined as a small part of continuous elements of an array. if we take an array of 5 integer elements like below. [9, 3, 1, 6, 9] Then the subarrays will be − [9, 3] [9, 3, 1] [3, 1, 6, 9] Arrays in Python In Python we don't have a specific data structure to represent arrays. However, ... Read More

2K+ Views
In programming array is a data structure, which is used to store collection of homogeneous data elements. And each element in the array is identified by an index value. But Python doesn’t have a specific data type to represent arrays. Instead, we can use the List as an array. Arrays in Python Here, we are representing List as an array. [1, 4, 6, 5, 3] The indexing in python starts from 0, so that the above array elements are accessed using their respective index values 0, 1, 2, 3, 4. Pushing an array into another array means, ... Read More

325 Views
An array is a data structure consisting of a collection of elements of the same data type, and each element is identified by an index. [2, 4, 0, 5, 8] Arrays in Python Python does not have its own data structure to represent an array. Instead, we can use the list data structure to represent an array. Here, we will use list an array − [10, 4, 11, 76, 99] In the article, we will write a python programs to convert an array to a string and join elements with a specified character. ... Read More

2K+ Views
An array is a collection of elements of same data type, and each element in the array is identified by an index value. It is a simplest data structure and we can easily add or remove elements. Arrays in Python Python does not have a specific data structure to represent arrays. Here, we can use List an array. [9, 3, 1, 6, 9] We can use array or NumPy module to work with arrays in python. array('i', [1, 2, 3, 4]) The above array is the integer Array which is defined by the array module. In ... Read More

679 Views
An array is a data structure consisting of a set of elements (values) of the same data type, each element is identified by an index value. And the elements can be directly accessed by using their index numbers. Arrays in Python Python does not have a native array data structure. Instead, we can use the list data structure, NumPy, or array modules. Here we will use list an array − [10, 4, 11, 76, 99] 0 1 2 3 4 The ... Read More