Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Complete DevOps Roadmap - Beginner to Advanced
DevOps is considered a set of practices that combines the abilities of Software Development i.e Dev and IT Operations i.e Ops together, which results in delivering top-not...
Read More
How to display the days of the week for a particular year using Pandas?
Given the day and the year. The task is to display all the days of the week of the given year. It can be found using the pandas.date_range() function. This function is use...
Read More
Python
Python-pandas
Python pandas-datetime
Python Pandas-exercise
How to render Pandas DataFrame as HTML Table?
Pandas in Python can convert Pandas DataFrame to a table in the HTML web page. pandas.DataFrame.to_html() method is used to render a Pandas DataFrame. In this article, we...
Read More
Python
Python-pandas
Python pandas-dataFrame
Python Pandas-exercise
Data Science
Try, Except, else and Finally in Python
An Exception is an Unexpected Event, which occurs during the execution of the program. It is also known as a run time error. When that error occurs, Python generates an ex...
Read More
Python
Python-exceptions
Python - Check if Kth index elements are unique
Given a String list, check if all Kth index elements are unique.Input : test_list = ["gfg", "best", "for", "geeks"], K = 1Output : FalseExplanation : e occurs as 1st index...
Read More
Python
Python Programs
Python string-programs
Python - Assign Alphabet to each element
Given a list of elements, assign a similar alphabet to the same element.Input : test_list = [4, 5, 2, 4, 2, 6]Output : ['a', 'b', 'c', 'a', 'c', 'd']Explanation : Alphabet...
Read More
Python
Python Programs
Python list-programs
Python string-programs
Python - Non-Overlapping occurrences of N Repeated K character
Given a String, compute non-overlapping occurrences of N repeated K character.Input : test_str = 'aaabaaaabbaa', K = "a", N = 3 Output : 2 Explanation : "aaa" occurs twice...
Read More
Python
Python Programs
Python string-programs
Python - Random insertion of elements K times
Given 2 list, insert random elements from List 2 to List 1, K times at random position.Input : test_list = [5, 7, 4, 2, 8, 1], add_list = ["Gfg", "Best", "CS"], K = 2 Outp...
Read More
Python
Python Programs
Python list-programs
Python - Differential Sort String Numbers and Alphabets
Given a List String, Reorder List, with Sorted Alphabets followed by Sorted Strings.Input : test_list = ["1", "G", "10", "L", "9", "K", "4"]Output : ['G', 'K', 'L', '1', '...
Read More
Python
Python Programs
Python list-programs
Python - K length decimal Places
In Python, controlling the number of decimal places in your numeric values is essential for presenting results accurately and efficiently. This article explores techniques...
Read More
Python
Python Programs
Python - Test if Kth character is digit in String
Given a String, check if Kth index is a digit.Input : test_str = 'geeks9geeks', K = 5Output : TrueExplanation : 5th idx element is 9, a digit, hence True.Input : test_str ...
Read More
Python
Python Programs
Python string-programs
Services provided by Data Link Layer
Prerequisite - Data Link Layer Data Link Layer is generally representing protocol layer in program that is simply used to handle and control the transmission of data betwe...
Read More
Computer Networks
How to Convert images to NumPy array?
Images are an easier way to represent the working model. In Machine Learning, Python uses the image data in the format of Height, Width, Channel format. i.e. Images are co...
Read More
Python
Image-Processing
Python-numpy
Applying Lambda functions to Pandas Dataframe
In Python Pandas, we have the freedom to add different functions whenever needed like lambda function, sort function, etc. We can apply a lambda function to both the colum...
Read More
Python
Python-pandas
Python pandas-dataFrame
Python Pandas-exercise
Find common values between two NumPy arrays
In NumPy, we can find common values between two arrays with the help intersect1d(). It will take parameter two arrays and it will return an array in which all the common e...
Read More
Python
Python-numpy
Python numpy-arrayManipulation
Find length of one array element in bytes and total bytes consumed by the elements in Numpy
In NumPy we can find the length of one array element in a byte with the help of itemsize . It will return the length of the array in integer. And in the numpy for calculat...
Read More
Python
Python-numpy
Python numpy-arrayManipulation
1
...
7003
7004
7005
...
10992