title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How can SciPy be used to calculate the eigen values and eigen vectors of a matrix in Python? | Eigen vectors and Eigen values find their uses in many situations. The word ‘Eigen’ in German means ‘own’ or ‘typical’. An Eigen vector is also known as a ‘characteristic vector’. Suppose we need to perform some transformation on a dataset but the given condition is that the direction of data in the dataset shouldn’t c... | [
{
"code": null,
"e": 1446,
"s": 1062,
"text": "Eigen vectors and Eigen values find their uses in many situations. The word ‘Eigen’ in German means ‘own’ or ‘typical’. An Eigen vector is also known as a ‘characteristic vector’. Suppose we need to perform some transformation on a dataset but the given... |
CSS Background Shorthand | To shorten the code, it is also possible to specify all the background properties in one
single property. This is called a shorthand property.
Instead of writing:
You can use the shorthand property background:
Use the shorthand property to set the background properties in one
declaration:
When using the shorthand ... | [
{
"code": null,
"e": 144,
"s": 0,
"text": "To shorten the code, it is also possible to specify all the background properties in one \nsingle property. This is called a shorthand property."
},
{
"code": null,
"e": 164,
"s": 144,
"text": "Instead of writing:"
},
{
"code": n... |
Auto Tagging Stack Overflow Questions | by Susan Li | Towards Data Science | One of the most interesting applications of NLP is automatically infer and tag the topic of a question. In this post, we’ll start from exploratory analysis of Stack Overflow questions and answers, and then we will build a simple model to predict the tag of a Stack Overflow question. We’ll solve this text classification... | [
{
"code": null,
"e": 540,
"s": 172,
"text": "One of the most interesting applications of NLP is automatically infer and tag the topic of a question. In this post, we’ll start from exploratory analysis of Stack Overflow questions and answers, and then we will build a simple model to predict the tag o... |
C# | How to change the Input Encoding Scheme of the Console - GeeksforGeeks | 28 Jan, 2019
Given the normal Console in C#, the task is to change the Input Encoding Scheme of the Console.
Approach: This can be done using the InputEncoding property in the Console class of the System package in C#. Console.InputEncoding Property gets or sets the encoding the console uses to read input.
Program 1: G... | [
{
"code": null,
"e": 23911,
"s": 23883,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 24007,
"s": 23911,
"text": "Given the normal Console in C#, the task is to change the Input Encoding Scheme of the Console."
},
{
"code": null,
"e": 24206,
"s": 24007,
"te... |
C Program for Recursive Bubble Sort | Bubble Sort is one of the simplest sorting algorithms used to sort data by comparing the adjacent elements. All the elements are compared in phases. The first phase places the largest value at the end, the second phase places the second largest element at the second last position and so on till the complete list is sor... | [
{
"code": null,
"e": 1387,
"s": 1062,
"text": "Bubble Sort is one of the simplest sorting algorithms used to sort data by comparing the adjacent elements. All the elements are compared in phases. The first phase places the largest value at the end, the second phase places the second largest element ... |
Calculate time required to type a word using given single-row keyboard - GeeksforGeeks | 13 Jan, 2022
Given a string keyboardLayout of size 26 representing the sequence of characters present in a single row of a keyboard and a string word, the task is to calculate the total time taken to type the word, starting from the 0th key, if moving to adjacent keys requires unit time.
Examples:
Input: keyboardLayout... | [
{
"code": null,
"e": 25052,
"s": 25024,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 25328,
"s": 25052,
"text": "Given a string keyboardLayout of size 26 representing the sequence of characters present in a single row of a keyboard and a string word, the task is to calculate ... |
C - Derived and User Defined Data Types - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we are going to learn about... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Height & Distance - Solved Examples | Q 1 - From a point 375 meters away from the foot of a tower, the top of the tower is observed at an angle of elevation of 45°, then the height (in meters) of the tower is?
A - 375
B - 450
C - 225
D - 250
Answer - A
Explanation
From the right angled triangle
Tan(45°)= X/375
=> X = 375 m
Q 2 - The angle of elevation of... | [
{
"code": null,
"e": 4064,
"s": 3892,
"text": "Q 1 - From a point 375 meters away from the foot of a tower, the top of the tower is observed at an angle of elevation of 45°, then the height (in meters) of the tower is?"
},
{
"code": null,
"e": 4072,
"s": 4064,
"text": "A - 375"
... |
Deep Learning with Keras - Preparing Data | Before we feed the data to our network, it must be converted into the format required by the network. This is called preparing data for the network. It generally consists of converting a multi-dimensional input to a single-dimension vector and normalizing the data points.
The images in our dataset consist of 28 x 28 pi... | [
{
"code": null,
"e": 2232,
"s": 1959,
"text": "Before we feed the data to our network, it must be converted into the format required by the network. This is called preparing data for the network. It generally consists of converting a multi-dimensional input to a single-dimension vector and normalizi... |
Computer Programming - Variables | Variables are the names you give to computer memory locations which are used to store values in a computer program.
For example, assume you want to store two values 10 and 20 in your program and at a later stage, you want to use these two values. Let's see how you will do it. Here are the following three simple steps −... | [
{
"code": null,
"e": 2256,
"s": 2140,
"text": "Variables are the names you give to computer memory locations which are used to store values in a computer program."
},
{
"code": null,
"e": 2461,
"s": 2256,
"text": "For example, assume you want to store two values 10 and 20 in your... |
MySQL query to select top 10 records? | To select top 10 records, use LIMIT in MySQL. Let us first create a table −
mysql> create table DemoTable
-> (
-> PageNumber text
-> );
Query OK, 0 rows affected (2.50 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values('Page-1');
Query OK, 1 row affected (0.46 sec)
mysql> ... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "To select top 10 records, use LIMIT in MySQL. Let us first create a table −"
},
{
"code": null,
"e": 1235,
"s": 1138,
"text": "mysql> create table DemoTable\n-> (\n-> PageNumber text\n-> );\nQuery OK, 0 rows affected (2.50 sec)"
},... |
Interacting With Ethereum Smart Contract Using Web3js - GeeksforGeeks | 14 Oct, 2020
Ethereum is a cryptocurrency platform in the market just like Bitcoin. It is an open-source & decentralized blockchain featuring working on smart contracts. It has its own cryptocurrency known as ether. The smart contracts in Ethereum are written in solidity.
TestRPC The Ethereum TestRPC is like a manual ... | [
{
"code": null,
"e": 23999,
"s": 23971,
"text": "\n14 Oct, 2020"
},
{
"code": null,
"e": 24260,
"s": 23999,
"text": "Ethereum is a cryptocurrency platform in the market just like Bitcoin. It is an open-source & decentralized blockchain featuring working on smart contracts. It has... |
I used Machine Learning to Organize Dating Profiles | Marco Santos | Towards Data Science | After swiping endlessly through hundreds of dating profiles and not matching with a single one, one might start to wonder how these profiles are even showing up on their phone. All of these profiles are not the type they are looking for. They have been swiping for hours or even days and have not found any success. They... | [
{
"code": null,
"e": 513,
"s": 172,
"text": "After swiping endlessly through hundreds of dating profiles and not matching with a single one, one might start to wonder how these profiles are even showing up on their phone. All of these profiles are not the type they are looking for. They have been sw... |
Are Python Exceptions runtime errors? | All python exceptions are not runtime errors, some are syntax errors as well.
If you run the given code, you get the following output.
File "C:/Users/TutorialsPoint1/~.py", line 4
else:
^
SyntaxError: invalid syntax
We see that it is syntax error and not a runtime error.
Errors or inaccuracies in a program are often ca... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "All python exceptions are not runtime errors, some are syntax errors as well."
},
{
"code": null,
"e": 1197,
"s": 1140,
"text": "If you run the given code, you get the following output."
},
{
"code": null,
"e": 1278,
... |
The power of linear programming, a real life case study | by Tristan Bilot | Towards Data Science | Linear programming is a powerful tool widely used to solve optimization problems, but this method remains relatively unknown from the point of view of developers.
In this article, I’m going to explain the fundamental principals of linear programming and then apply these principals to a concrete daily life problem.
Line... | [
{
"code": null,
"e": 335,
"s": 172,
"text": "Linear programming is a powerful tool widely used to solve optimization problems, but this method remains relatively unknown from the point of view of developers."
},
{
"code": null,
"e": 488,
"s": 335,
"text": "In this article, I’m go... |
C# For Loop | When you know exactly how many times you want to loop through a block of
code, use the for loop instead of a while loop:
for (statement 1; statement 2; statement 3)
{
// code block to be executed
}
Statement 1 is executed (one time) before the execution of the code block.
Statement 2 defines the condition for exec... | [
{
"code": null,
"e": 122,
"s": 0,
"text": "When you know exactly how many times you want to loop through a block of \ncode, use the for loop instead of a while loop:"
},
{
"code": null,
"e": 203,
"s": 122,
"text": "for (statement 1; statement 2; statement 3) \n{\n // code block ... |
Understanding and using k-Nearest Neighbours aka kNN for classification of digits | by Shubham Gupta | Towards Data Science | In machine learning and statistics, classification is a task of finding the class of a new observation using it’s features/variables. This classification is done using a classifier trained on the basis of training data. Training data is a set of many observations which are correctly labelled with the appropriate class ... | [
{
"code": null,
"e": 633,
"s": 172,
"text": "In machine learning and statistics, classification is a task of finding the class of a new observation using it’s features/variables. This classification is done using a classifier trained on the basis of training data. Training data is a set of many obse... |
Microsoft Azure - Using C# in CosmoDB - GeeksforGeeks | 01 Jun, 2021
In this article, we will look into how to use C# notebooks in Azure Cosmos DB. When you are creating an application that uses Azure Cosmos DB, it is useful to experiment with code that uses that Cosmos DB. In Azure Cosmos DB, you can use C# notebooks that enable you to write the C# code that interacts with... | [
{
"code": null,
"e": 25385,
"s": 25357,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 25705,
"s": 25385,
"text": "In this article, we will look into how to use C# notebooks in Azure Cosmos DB. When you are creating an application that uses Azure Cosmos DB, it is useful to expe... |
Entity Framework - Multiple DbContext | In this chapter, we will be learning how to migrate changes into the database when there are multiple DbContext classes in the application.
Multiple DbContext was first introduced in Entity Framework 6.0.
Multiple context classes may belong to a single database or two different databases.
In our example, we will define... | [
{
"code": null,
"e": 3172,
"s": 3032,
"text": "In this chapter, we will be learning how to migrate changes into the database when there are multiple DbContext classes in the application."
},
{
"code": null,
"e": 3237,
"s": 3172,
"text": "Multiple DbContext was first introduced in... |
How to create 2-ValueTuple in C#? - GeeksforGeeks | 23 Jul, 2019
In C#, a pair or 2 value tuple is a value type tuple which holds two elements in it. You can create a pair of value tuple using two different ways:
Using ValueTuple <T1, T2>(T1, T2) ConstructorUsing Create <T1, T2>(T1, T2) Method
Using ValueTuple <T1, T2>(T1, T2) Constructor
Using Create <T1, T2>(T1, T2) M... | [
{
"code": null,
"e": 24012,
"s": 23984,
"text": "\n23 Jul, 2019"
},
{
"code": null,
"e": 24160,
"s": 24012,
"text": "In C#, a pair or 2 value tuple is a value type tuple which holds two elements in it. You can create a pair of value tuple using two different ways:"
},
{
"... |
Draw a filled polygon using the OpenCV function fillPoly() - GeeksforGeeks | 04 Jan, 2022
fillPoly() function of OpenCV is used to draw filled polygons like rectangle, triangle, pentagon over an image. This function takes inputs an image and endpoints of Polygon and color.
Syntax: cv2.fillpoly(Image,End_Points,Color)
Parameter:
Image: This is image on which we want draw filled polygon
End_Point... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 24085,
"s": 23901,
"text": "fillPoly() function of OpenCV is used to draw filled polygons like rectangle, triangle, pentagon over an image. This function takes inputs an image and endpoints o... |
Euler Totient | Practice | GeeksforGeeks | Consider Ø(n) as the Euler Totient Function for n. You will be given a positive integer N and you have to find the smallest positive integer n, n <= N for which the ratio n/Ø(n) is maximized.
Example 1:
Input:
N = 6
Output:
6
Explanation:
For n = 1, 2, 3, 4, 5 and 6 the values of
the ratio are 1, 2, 1.5, 2, 1.25 and ... | [
{
"code": null,
"e": 430,
"s": 238,
"text": "Consider Ø(n) as the Euler Totient Function for n. You will be given a positive integer N and you have to find the smallest positive integer n, n <= N for which the ratio n/Ø(n) is maximized."
},
{
"code": null,
"e": 443,
"s": 432,
"te... |
Automating Emails in Apache Airflow: A How-To Guide | by Zach Alexander | Towards Data Science | As a Data Engineer, some of the work I do involves automating data pulls at regular intervals from third-party sources for various teams at the organization. Although I like to think staff are always aware of when a new data pull occurs (ha!), I can’t expect them to remember each time it happens. Because of this, Apach... | [
{
"code": null,
"e": 651,
"s": 171,
"text": "As a Data Engineer, some of the work I do involves automating data pulls at regular intervals from third-party sources for various teams at the organization. Although I like to think staff are always aware of when a new data pull occurs (ha!), I can’t exp... |
5 Best Python Projects With Codes That You Can Complete Within An Hour! | by Bharath K | Towards Data Science | Python is a phenomenal programming language for any developer to learn and understand due to its simplicity, ease of use, and versatility. Apart from the continuous developments, improvements, and progression made with each upcoming version, Python has the most supportive and mature community with a ton of productive a... | [
{
"code": null,
"e": 550,
"s": 172,
"text": "Python is a phenomenal programming language for any developer to learn and understand due to its simplicity, ease of use, and versatility. Apart from the continuous developments, improvements, and progression made with each upcoming version, Python has th... |
Python 3 - List remove() Method | obj − This is the object to be removed from the list.
This method does not return any value but removes the given object from the list.
The following example shows the usage of remove() method.
#!/usr/bin/python3
list1 = ['physics', 'Biology', 'chemistry', 'maths']
list1.remove('Biology')
print ("list now : ", list1)
... | [
{
"code": null,
"e": 2394,
"s": 2340,
"text": "obj − This is the object to be removed from the list."
},
{
"code": null,
"e": 2476,
"s": 2394,
"text": "This method does not return any value but removes the given object from the list."
},
{
"code": null,
"e": 2534,
... |
C++ Copy Constructor | The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to −
Initialize one object from another of the same type.
Copy an object to pass it as an argument to a function.
Copy an object to return i... | [
{
"code": null,
"e": 2503,
"s": 2318,
"text": "The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to −"
},
{
"code": null,
"e": 2556,
"s": 2503,
"text"... |
Data Labelling. The Triple-Barrier Method | by Ke Gui | Towards Data Science | Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details.
Warning: There is no... | [
{
"code": null,
"e": 472,
"s": 172,
"text": "Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking profession... |
Java Examples - Finding Word Occurrence | How to find every occurance of a word?
Following example demonstrates how to find every occurance of a word with the help of Pattern.compile() method and m.group() method.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String args[]) throws Exception {
... | [
{
"code": null,
"e": 2107,
"s": 2068,
"text": "How to find every occurance of a word?"
},
{
"code": null,
"e": 2240,
"s": 2107,
"text": "Following example demonstrates how to find every occurance of a word with the help of Pattern.compile() method and m.group() method."
},
{
... |
JSON.simple - Quick Guide | JSON.simple is a simple Java based toolkit for JSON. You can use JSON.simple to encode or decode JSON data.
Specification Compliant − JSON.simple is fully compliant with JSON Specification - RFC4627.
Specification Compliant − JSON.simple is fully compliant with JSON Specification - RFC4627.
Lightweight − It have very f... | [
{
"code": null,
"e": 2331,
"s": 2223,
"text": "JSON.simple is a simple Java based toolkit for JSON. You can use JSON.simple to encode or decode JSON data."
},
{
"code": null,
"e": 2423,
"s": 2331,
"text": "Specification Compliant − JSON.simple is fully compliant with JSON Specifi... |
ReactJS | forms - GeeksforGeeks | 22 Jan, 2021
Forms are really important in any website for login, signup, or whatever. It is easy to make a form but forms in React work a little differently. If you make a simple form in React it works, but it’s good to add some JavaScript code to our form so that it can handle the form submission and retrieve data th... | [
{
"code": null,
"e": 26775,
"s": 26747,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 27529,
"s": 26775,
"text": "Forms are really important in any website for login, signup, or whatever. It is easy to make a form but forms in React work a little differently. If you make a sim... |
Quickhull Algorithm for Convex Hull - GeeksforGeeks | 28 Jun, 2021
Given a set of points, a Convex hull is the smallest convex polygon containing all the given points.
Input is an array of points specified by their x and y coordinates. Output is a convex hull of this set of points in ascending order of x coordinates.
Example :
Input : points[] = {{0, 3}, {1, 1}, {2, 2}, {... | [
{
"code": null,
"e": 24527,
"s": 24499,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24628,
"s": 24527,
"text": "Given a set of points, a Convex hull is the smallest convex polygon containing all the given points."
},
{
"code": null,
"e": 24779,
"s": 24628,
... |
p5.js | split() function - GeeksforGeeks | 06 May, 2022
The split() function in p5.js is used to break the input string into pieces using a delimiter. This delimiter could be any string or symbol used between each piece of the input string. Syntax:
split(String, Delimiter)
Parameters: This function accepts two parameters which are described below:
String: This ... | [
{
"code": null,
"e": 25933,
"s": 25905,
"text": "\n06 May, 2022"
},
{
"code": null,
"e": 26126,
"s": 25933,
"text": "The split() function in p5.js is used to break the input string into pieces using a delimiter. This delimiter could be any string or symbol used between each piece... |
GATE | GATE CS 2012 | Question 56 - GeeksforGeeks | 17 May, 2019
The cost function for a product in a firm is given by 5q2, where q is the amount of production. The firm can sell the product at a market price of Rs 50 per unit. The number of units to be produced by the firm such that the profit is maximized is(A) 5(B) 10(C) 15(D) 25Answer: (A)Explanation:
Profit = Price... | [
{
"code": null,
"e": 25721,
"s": 25693,
"text": "\n17 May, 2019"
},
{
"code": null,
"e": 26014,
"s": 25721,
"text": "The cost function for a product in a firm is given by 5q2, where q is the amount of production. The firm can sell the product at a market price of Rs 50 per unit. ... |
How to insert values into MySQL server table using Python? - GeeksforGeeks | 03 Jan, 2021
Prerequisite: Python: MySQL Create Table
In this article, we are going to see how to get the size of a table in MySQL using Python. Python allows the integration of a wide range of database servers with applications. A database interface is required to access a database from Python. MySQL Connector-Python ... | [
{
"code": null,
"e": 25562,
"s": 25534,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 25603,
"s": 25562,
"text": "Prerequisite: Python: MySQL Create Table"
},
{
"code": null,
"e": 25936,
"s": 25603,
"text": "In this article, we are going to see how to get t... |
Database Management Systems | Set 1 - GeeksforGeeks | 20 Jan, 2022
Following questions have been asked in GATE CS exam.
1. Given the relations
employee (name, salary, deptno) and department (deptno, deptname, address)
Which of the following queries cannot be expressed using the basic relational algebra operations (U, -, x, π, σ, p)? (GATE CS 2000) (a) Department addres... | [
{
"code": null,
"e": 30871,
"s": 30843,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 30925,
"s": 30871,
"text": "Following questions have been asked in GATE CS exam. "
},
{
"code": null,
"e": 30949,
"s": 30925,
"text": "1. Given the relations "
},
{
... |
HTML5 <aside> Tag - GeeksforGeeks | 03 Mar, 2021
The <aside> tag is used to describe the main object of the web page in a shorter way like a highlighter. It basically identifies the content that is related to the primary content of the web page but does not constitute the main intent of the primary page. The <aside> tag contains mainly author information... | [
{
"code": null,
"e": 31646,
"s": 31618,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 31990,
"s": 31646,
"text": "The <aside> tag is used to describe the main object of the web page in a shorter way like a highlighter. It basically identifies the content that is related to the... |
First strictly smaller element in a sorted array in Java - GeeksforGeeks | 07 Jun, 2021
Given a sorted array and a target value, find the first element that is strictly smaller than given element.Examples:
Input : arr[] = {1, 2, 3, 5, 8, 12}
Target = 5
Output : 2 (Index of 3)
Input : {1, 2, 3, 5, 8, 12}
Target = 8
Output : 3 (Index of 5)
Input : {1, 2, 3, 5, 8, 12}
... | [
{
"code": null,
"e": 25671,
"s": 25643,
"text": "\n07 Jun, 2021"
},
{
"code": null,
"e": 25791,
"s": 25671,
"text": "Given a sorted array and a target value, find the first element that is strictly smaller than given element.Examples: "
},
{
"code": null,
"e": 26006,... |
How to iterate over a TreeMap in Java? - GeeksforGeeks | 03 May, 2022
Given a TreeMap, the task is to iterate this TreeMap in Java. The TreeMap in Java is used to implement Map interface and NavigableMap along with the Abstract Class. We cannot iterate a TreeMap directly using iterators, because TreeMap is not a Collection. So we will have to use TreeMap.entrySet() method. T... | [
{
"code": null,
"e": 25443,
"s": 25415,
"text": "\n03 May, 2022"
},
{
"code": null,
"e": 26033,
"s": 25443,
"text": "Given a TreeMap, the task is to iterate this TreeMap in Java. The TreeMap in Java is used to implement Map interface and NavigableMap along with the Abstract Class... |
Collections replaceAll() Method in Java with Examples - GeeksforGeeks | 22 Apr, 2022
The replaceAll() method of java.util.Collections class is used to replace all occurrences of one specified value in a list with another. More formally, replaces with newVal each element e in the list such that
oldVal == null ? e==null : oldVal.equals(e)
Note: This method has no effect on the size of the ... | [
{
"code": null,
"e": 25731,
"s": 25703,
"text": "\n22 Apr, 2022"
},
{
"code": null,
"e": 25942,
"s": 25731,
"text": "The replaceAll() method of java.util.Collections class is used to replace all occurrences of one specified value in a list with another. More formally, replaces wi... |
How to disable a CSS :hover effect? - GeeksforGeeks | 17 Sep, 2019
The task is to remove the CSS:hover property from the element. Here we are going to use JavaScript to solve the problem.Approach 1:
Simply remove the class which is adding the hover effect to the element using JQuery by .removeClass() method.
Example 1: This example using the approach discussed above.
<!DO... | [
{
"code": null,
"e": 26433,
"s": 26405,
"text": "\n17 Sep, 2019"
},
{
"code": null,
"e": 26565,
"s": 26433,
"text": "The task is to remove the CSS:hover property from the element. Here we are going to use JavaScript to solve the problem.Approach 1:"
},
{
"code": null,
... |
Python | Pandas Series.size - GeeksforGeeks | 28 Jan, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique bu... | [
{
"code": null,
"e": 26141,
"s": 26113,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 26355,
"s": 26141,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a... |
Ruby | Array delete_if() operation - GeeksforGeeks | 13 Jan, 2022
Array#delete_if() : delete_if() is a Array class method which deletes the arrays elements for which the block condition satisfies.
Syntax: Array.delete_if()
Parameter: block - condition for deleting the elements.
Return: array after deleting the elements
Code #1 : Example for delete_if() method
Ruby... | [
{
"code": null,
"e": 25001,
"s": 24973,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 25133,
"s": 25001,
"text": "Array#delete_if() : delete_if() is a Array class method which deletes the arrays elements for which the block condition satisfies. "
},
{
"code": null,
... |
Check if the elements of stack are pairwise sorted - GeeksforGeeks | 03 Aug, 2021
Given a stack of integers, write a function pairWiseSorted() that checks whether numbers in the stack are pairwise sorted or not. The pairs must be increasing, and if the stack has an odd number of elements, the element at the top is left out of a pair. The function should retain the original stack content... | [
{
"code": null,
"e": 26299,
"s": 26271,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 26609,
"s": 26299,
"text": "Given a stack of integers, write a function pairWiseSorted() that checks whether numbers in the stack are pairwise sorted or not. The pairs must be increasing, and... |
Python | sympy.coeff(x, n) method - GeeksforGeeks | 18 Jun, 2019
With the help of sympy.coeff(x, n) method, we are able to find the coefficient of variables in mathematical expressions.
Syntax : sympy.coeff(x, n)Return : Return the coefficient of variables.
Example #1 :In this example, we can see that by using sympy.coeff(x, n) method, we can find the coefficient of mat... | [
{
"code": null,
"e": 26037,
"s": 26009,
"text": "\n18 Jun, 2019"
},
{
"code": null,
"e": 26158,
"s": 26037,
"text": "With the help of sympy.coeff(x, n) method, we are able to find the coefficient of variables in mathematical expressions."
},
{
"code": null,
"e": 26230... |
n'th multiple of a number in Fibonacci Series - GeeksforGeeks | 07 Jan, 2022
Given two integers n and k. Find position the n’th multiple of K in the Fibonacci series.
Examples :
Input : k = 2, n = 3
Output : 9
3'rd multiple of 2 in Fibonacci Series is 34
which appears at position 9.
Input : k = 4, n = 5
Output : 30
4'th multiple of 5 in Fibonacci Series is 832040
which appe... | [
{
"code": null,
"e": 25963,
"s": 25935,
"text": "\n07 Jan, 2022"
},
{
"code": null,
"e": 26054,
"s": 25963,
"text": "Given two integers n and k. Find position the n’th multiple of K in the Fibonacci series. "
},
{
"code": null,
"e": 26067,
"s": 26054,
"text": ... |
Create Directory or Folder with C/C++ Program - GeeksforGeeks | 31 May, 2020
Problem: Write a C/C++ program to create a folder in a specific directory path.
This task can be accomplished by using the mkdir() function. Directories are created with this function. (There is also a shell command mkdir which does the same thing). The mkdir() function creates a new, empty directory with ... | [
{
"code": null,
"e": 25688,
"s": 25660,
"text": "\n31 May, 2020"
},
{
"code": null,
"e": 25768,
"s": 25688,
"text": "Problem: Write a C/C++ program to create a folder in a specific directory path."
},
{
"code": null,
"e": 26010,
"s": 25768,
"text": "This task ... |
CSS | -moz-outline-radius property - GeeksforGeeks | 23 Jan, 2020
The -moz-outline-radius property is used to specify the radius of an outline. It is used to give rounded corners to outlines. This property is only supported in Firefox.
Syntax:
-moz-outline-radius: <length> {1-4}
| <percentage> (1-4} | initial | inherit
Property Values:
length: This is used to set the ou... | [
{
"code": null,
"e": 26233,
"s": 26205,
"text": "\n23 Jan, 2020"
},
{
"code": null,
"e": 26403,
"s": 26233,
"text": "The -moz-outline-radius property is used to specify the radius of an outline. It is used to give rounded corners to outlines. This property is only supported in Fi... |
Finding Median of unsorted Array in linear time using C++ STL - GeeksforGeeks | 07 Aug, 2020
Given an unsorted array arr[] having N elements, the task is to find out the median of the array in linear time complexity.
Examples:
Input: N = 5, arr[] = {4, 1, 2, 6, 5}Output: 4Explanation:Since N = 5, which is odd, therefore the median is the 3rd element in the sorted array.The 3rd element in the sorte... | [
{
"code": null,
"e": 25943,
"s": 25915,
"text": "\n07 Aug, 2020"
},
{
"code": null,
"e": 26067,
"s": 25943,
"text": "Given an unsorted array arr[] having N elements, the task is to find out the median of the array in linear time complexity."
},
{
"code": null,
"e": 26... |
How to Use setwd and getwd in R? - GeeksforGeeks | 19 Dec, 2021
In this article, we will discuss how to use setwd and getwd in the R programming language.
getwd() stands forget working directory. It is used to get the current working directory of the environment.
Syntax:
getwd()
We can also see the total number of files in the present working directory. For that, we ha... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 26578,
"s": 26487,
"text": "In this article, we will discuss how to use setwd and getwd in the R programming language."
},
{
"code": null,
"e": 26687,
"s": 26578,
"text": ... |
Tuple Division in Python - GeeksforGeeks | 26 Nov, 2019
Sometimes, while working with records, we can have a problem in which we may need to perform mathematical division operation across tuples. This problem can occur in day-day programming. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using zip() + generator expressionThe combin... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 Nov, 2019"
},
{
"code": null,
"e": 25788,
"s": 25537,
"text": "Sometimes, while working with records, we can have a problem in which we may need to perform mathematical division operation across tuples. This problem can occur ... |
Tryit Editor v3.7 | Tryit: The video element | [] |
Context-specific Pre-processing for NLP with spaCy: Tweets | by Wei-Ting Yap | Towards Data Science | Natural Language Processing is a field of machine learning concerned with understanding human language. As opposed to numerical data, NLP works primarily with text. Exploring and pre-processing text data requires different techniques and libraries, and this tutorial demonstrates the basics.
However, pre-processing is n... | [
{
"code": null,
"e": 464,
"s": 172,
"text": "Natural Language Processing is a field of machine learning concerned with understanding human language. As opposed to numerical data, NLP works primarily with text. Exploring and pre-processing text data requires different techniques and libraries, and th... |
TensorFlow - TFLearn And Its Installation | TFLearn can be defined as a modular and transparent deep learning aspect used in TensorFlow framework. The main motive of TFLearn is to provide a higher level API to TensorFlow for facilitating and showing up new experiments.
Consider the following important features of TFLearn −
TFLearn is easy to use and understand.
... | [
{
"code": null,
"e": 2541,
"s": 2315,
"text": "TFLearn can be defined as a modular and transparent deep learning aspect used in TensorFlow framework. The main motive of TFLearn is to provide a higher level API to TensorFlow for facilitating and showing up new experiments."
},
{
"code": null,... |
Create and customize boxplots with Python’s Matplotlib to get lots of insights from your data | by Carolina Bento | Towards Data Science | Boxplots are underrated. They are jam-packed with insights about the underlying distribution, because they condense lots of information about your data into a small visualization.
In this article you see how Boxplots are great tools to:
Understand the spread of the data.
Spot outliers.
Compare distributions, and how sm... | [
{
"code": null,
"e": 351,
"s": 171,
"text": "Boxplots are underrated. They are jam-packed with insights about the underlying distribution, because they condense lots of information about your data into a small visualization."
},
{
"code": null,
"e": 408,
"s": 351,
"text": "In thi... |
Getting Started with Facebook Prophet | by Greg Rafferty | Towards Data Science | This post contains an excerpt from my new book all about Facebook Prophet. The book is available for purchase on Amazon. The full contents of the book are listed at the end of this post!
If you find this article useful and would like to use Prophet to improve your forecasts, please consider buying the full book at http... | [
{
"code": null,
"e": 359,
"s": 172,
"text": "This post contains an excerpt from my new book all about Facebook Prophet. The book is available for purchase on Amazon. The full contents of the book are listed at the end of this post!"
},
{
"code": null,
"e": 513,
"s": 359,
"text": ... |
Difference between Thread.start() and Thread.run() in Java. | As we know that start() and run() are the two important methods of multithreading and one is used to create a new thread while other is used to start executing that thread.
Following are the important differences between Thread.start() and Thread.run().
JavaTester.java
Live Demo
public class JavaTester extends Thread{... | [
{
"code": null,
"e": 1235,
"s": 1062,
"text": "As we know that start() and run() are the two important methods of multithreading and one is used to create a new thread while other is used to start executing that thread."
},
{
"code": null,
"e": 1316,
"s": 1235,
"text": "Following... |
Laravel - Views | In MVC framework, the letter “V” stands for Views. It separates the application logic and the presentation logic. Views are stored in resources/views directory. Generally, the view contains the HTML which will be served by the application.
Observe the following example to understand more about Views −
Step 1 − Copy the... | [
{
"code": null,
"e": 2712,
"s": 2472,
"text": "In MVC framework, the letter “V” stands for Views. It separates the application logic and the presentation logic. Views are stored in resources/views directory. Generally, the view contains the HTML which will be served by the application."
},
{
... |
Final Exam | Google Kickstart 2021 Round D - GeeksforGeeks | 21 Sep, 2021
It’s time for the final exam in algorithms and data structures!
Edsger prepared N sets of problems. Each set consists of problems in an increasing difficulty sequence; the i-th set can be described by two integers Ai and Bi (Ai≤Bi), which denotes that this set contains problems with difficulties Ai, Ai+1..... | [
{
"code": null,
"e": 24429,
"s": 24401,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 24493,
"s": 24429,
"text": "It’s time for the final exam in algorithms and data structures!"
},
{
"code": null,
"e": 24841,
"s": 24493,
"text": "Edsger prepared N sets of ... |
Image Processing for Python — Adjusting to the Ground Truth | by Tonichi Edeza | Towards Data Science | In this lesson we shall go over an image adjustment algorithm which may be intuitive for most readers. Unlike the other image adjustment algorithms we have discussed so far (such as RGB Channel Adjustment and Histogram Manipulation), this method will use the actual colors available in the image.
Let’s get started!
As a... | [
{
"code": null,
"e": 469,
"s": 172,
"text": "In this lesson we shall go over an image adjustment algorithm which may be intuitive for most readers. Unlike the other image adjustment algorithms we have discussed so far (such as RGB Channel Adjustment and Histogram Manipulation), this method will use ... |
Python in Sublime Text 3 with Sublime REPL and Anaconda | by Philipp Schmalen | Towards Data Science | Switch between projects with a keystroke and do not worry about switching build systems. Expedite your data science workflow with this project-centered setup.
In this tutorial you will learn how to link Sublime Text 3 to an environment from Anaconda/Miniconda and execute Python with Sublime REPL. When you switch the pr... | [
{
"code": null,
"e": 331,
"s": 172,
"text": "Switch between projects with a keystroke and do not worry about switching build systems. Expedite your data science workflow with this project-centered setup."
},
{
"code": null,
"e": 589,
"s": 331,
"text": "In this tutorial you will l... |
Fundamental Statistics. Time Series Modeling With Python Code | by Jiahui Wang | Towards Data Science | Time series data is everywhere around us, ranging from the stock market price to the daily temperature of your city. As its name suggests, the x axis of time series data is time. We are always standing at the current time point. Towards the left-hand side of the x axis, we are looking into the past. If we are lucky, at... | [
{
"code": null,
"e": 876,
"s": 171,
"text": "Time series data is everywhere around us, ranging from the stock market price to the daily temperature of your city. As its name suggests, the x axis of time series data is time. We are always standing at the current time point. Towards the left-hand side... |
Creating an Excel-like data grid in React JS | In this article, we will see how to create an Excel-like data grid in React JS frontend. We will use a third-party package for this, which is called react-data-grid. This is a useful package if you are working with data and want to make a dashboard application.
First create a react project −
npx create-react-app tutori... | [
{
"code": null,
"e": 1324,
"s": 1062,
"text": "In this article, we will see how to create an Excel-like data grid in React JS frontend. We will use a third-party package for this, which is called react-data-grid. This is a useful package if you are working with data and want to make a dashboard appl... |
JSON Introduction - GeeksforGeeks | 06 Dec, 2021
JSON stands for JavaScript Object Notation. It is a format for structuring data. This format is used by different web applications to communicate with each other. JSON is the replacement of the XML data exchange format in JSON. It is easy to struct the data compare to XML. It supports data structures like ... | [
{
"code": null,
"e": 24933,
"s": 24905,
"text": "\n06 Dec, 2021"
},
{
"code": null,
"e": 25494,
"s": 24933,
"text": "JSON stands for JavaScript Object Notation. It is a format for structuring data. This format is used by different web applications to communicate with each other. ... |
How to Collect Data from TikTok (Tutorial) | by Jack Bandy | Towards Data Science | As The Information put it, TikTok has “taken off like a rocket ship in the U.S. and around the world, creating a new mobile video experience that has left YouTube and Facebook scrambling to keep up.”
Just looking at U.S. users over the age of 18, TikTok went from 22.2 million unique visitors in January, to 39.2 million... | [
{
"code": null,
"e": 371,
"s": 171,
"text": "As The Information put it, TikTok has “taken off like a rocket ship in the U.S. and around the world, creating a new mobile video experience that has left YouTube and Facebook scrambling to keep up.”"
},
{
"code": null,
"e": 549,
"s": 371,... |
Checking SAP HANA Schema owner name | To check schema owner, you need access on “SYS” schema. Open SAP HANA SQL console and run the following SQL query −
SELECT * FROM "SYS"."SCHEMAS"; | [
{
"code": null,
"e": 1178,
"s": 1062,
"text": "To check schema owner, you need access on “SYS” schema. Open SAP HANA SQL console and run the following SQL query −"
},
{
"code": null,
"e": 1209,
"s": 1178,
"text": "SELECT * FROM \"SYS\".\"SCHEMAS\";"
}
] |
fc-list command in Linux with examples - GeeksforGeeks | 15 May, 2019
fc-list command is a part of the fontconfig system. It is used to list the available fonts and font styles. Using the format option, the list of all fonts can be filtered and sorted out. Moreover, multiple parameters can be passed to it after a colon symbol (:) to restrict the information that is being dis... | [
{
"code": null,
"e": 24326,
"s": 24298,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 24655,
"s": 24326,
"text": "fc-list command is a part of the fontconfig system. It is used to list the available fonts and font styles. Using the format option, the list of all fonts can be f... |
filter() in python - GeeksforGeeks | 22 Apr, 2020
The filter() method filters the given sequence with the help of a function that tests each element in the sequence to be true or not.
syntax:
filter(function, sequence)
Parameters:
function: function that tests if each element of a
sequence true or not.
sequence: sequence which needs to be filtered, it ca... | [
{
"code": null,
"e": 23679,
"s": 23651,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 23813,
"s": 23679,
"text": "The filter() method filters the given sequence with the help of a function that tests each element in the sequence to be true or not."
},
{
"code": null,
... |
How to implement an endless list with RecyclerView in Android using Kotlin? | This example demonstrates how to implement an endless list with RecyclerView in Android using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" enco... | [
{
"code": null,
"e": 1164,
"s": 1062,
"text": "This example demonstrates how to implement an endless list with RecyclerView in Android using Kotlin."
},
{
"code": null,
"e": 1293,
"s": 1164,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fi... |
How to Explain Graph Neural Network — GNNExplainer | by Shanon Hong | Towards Data Science | Graph Neural Network(GNN) is a type of neural network that can be directly applied to graph-structured data. My previous post gave a brief introduction on GNN. Readers may be directed to this post for more details.
Many research works have shown GNN’s power for understanding graphs, but the way how and why GNN works st... | [
{
"code": null,
"e": 387,
"s": 172,
"text": "Graph Neural Network(GNN) is a type of neural network that can be directly applied to graph-structured data. My previous post gave a brief introduction on GNN. Readers may be directed to this post for more details."
},
{
"code": null,
"e": 100... |
Promoting Energy and Economic Empowerment with Python | by Diogo Sá | Towards Data Science | I created a tool to do solar power simulations over a 20 year time and tested it on my city, Porto, with several values of electricity average monthly bills. The goal is to give, for each average monthly bill, the best solar solution (which and how many solar panels, if a battery, and which battery, would be a good ide... | [
{
"code": null,
"e": 589,
"s": 172,
"text": "I created a tool to do solar power simulations over a 20 year time and tested it on my city, Porto, with several values of electricity average monthly bills. The goal is to give, for each average monthly bill, the best solar solution (which and how many s... |
Curiously recurring template pattern (CRTP) - GeeksforGeeks | 20 Sep, 2021
Background: It is recommended to refer Virtual Functions and Runtime Polymorphism as a prerequisite of this. Below is an example program to demonstrate run time polymorphism.
CPP
// A simple C++ program to demonstrate run-time// polymorphism#include <chrono>#include <iostream>using namespace std; typedef ... | [
{
"code": null,
"e": 24247,
"s": 24219,
"text": "\n20 Sep, 2021"
},
{
"code": null,
"e": 24423,
"s": 24247,
"text": "Background: It is recommended to refer Virtual Functions and Runtime Polymorphism as a prerequisite of this. Below is an example program to demonstrate run time po... |
DateTime.AddSeconds() Method in C# - GeeksforGeeks | 18 Jan, 2019
This method is used to return a new DateTime that adds the specified number of seconds to the value of this instance.
Syntax:
public DateTime AddSeconds (double value);
Here, value is a number of whole and fractional seconds. The value parameter can be negative or positive.
Return Value: This method return... | [
{
"code": null,
"e": 23911,
"s": 23883,
"text": "\n18 Jan, 2019"
},
{
"code": null,
"e": 24029,
"s": 23911,
"text": "This method is used to return a new DateTime that adds the specified number of seconds to the value of this instance."
},
{
"code": null,
"e": 24037,
... |
Everything You Need to Know About “loc” and “iloc” of Pandas | by Soner Yıldırım | Towards Data Science | Pandas being the most widely used data analysis and manipulation library provides many flexible and convenient functions that ease and expedite data analysis process. In this post, I will cover two important tools which are used to select data from a dataframe based on specified rows and columns. Let’s introduce them f... | [
{
"code": null,
"e": 574,
"s": 172,
"text": "Pandas being the most widely used data analysis and manipulation library provides many flexible and convenient functions that ease and expedite data analysis process. In this post, I will cover two important tools which are used to select data from a data... |
Violin plots explained. Learn how to use violin plots and what... | by Eryk Lewinson | Towards Data Science | In general, violin plots are a method of plotting numeric data and can be considered a combination of the box plot with a kernel density plot. In the violin plot, we can find the same information as in the box plots:
median (a white dot on the violin plot)
interquartile range (the black bar in the center of violin)
the... | [
{
"code": null,
"e": 389,
"s": 172,
"text": "In general, violin plots are a method of plotting numeric data and can be considered a combination of the box plot with a kernel density plot. In the violin plot, we can find the same information as in the box plots:"
},
{
"code": null,
"e": 4... |
NHibernate - Native Sql | In this chapter, we will be covering how to use the native SQL queries in NHibernate. If you have been using handwritten SQL for a number of years, you may be concerned that ORM will take away some of the expressiveness and flexibility you are used to.
NHibernate’s powerful query facilities allow you to do almost anyth... | [
{
"code": null,
"e": 2586,
"s": 2333,
"text": "In this chapter, we will be covering how to use the native SQL queries in NHibernate. If you have been using handwritten SQL for a number of years, you may be concerned that ORM will take away some of the expressiveness and flexibility you are used to."... |
How to Delete Files and Directories in Linux? - GeeksforGeeks | 18 May, 2021
Linux comes with several tools that can assist us in removing files. We always need to delete many files and folders based on a set of requirements. To complete our mission quickly, knowing a few basic commands and their variations is beneficial.
Use caution when using the commands below, particularly thos... | [
{
"code": null,
"e": 26197,
"s": 26169,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 26444,
"s": 26197,
"text": "Linux comes with several tools that can assist us in removing files. We always need to delete many files and folders based on a set of requirements. To complete ou... |
Sorting a vector in C++ - GeeksforGeeks | 28 Jan, 2022
Prerequisites : std::sort in C++, vector in C++, initialize a vector in C++.
CPP
// C++ program to sort a vector in non-decreasing// order.#include <bits/stdc++.h>using namespace std; int main(){ vector<int> v{ 1, 5, 8, 9, 6, 7, 3, 4, 2, 0 }; sort(v.begin(), v.end()); cout << "Sorted \n"; fo... | [
{
"code": null,
"e": 25595,
"s": 25567,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 25673,
"s": 25595,
"text": "Prerequisites : std::sort in C++, vector in C++, initialize a vector in C++. "
},
{
"code": null,
"e": 25677,
"s": 25673,
"text": "CPP"
},
... |
Object Oriented Programming in C++ - GeeksforGeeks | 28 Apr, 2020
TABLE OF CONTENT:
IntroductionClassObjectsEncapsulationAbstractionPolymorphismInheritanceDynamic BindingMessage Passing
Introduction
Class
Objects
Encapsulation
Abstraction
Polymorphism
Inheritance
Dynamic Binding
Message Passing
Object-oriented programming – As the name suggests uses objects in programmin... | [
{
"code": null,
"e": 28205,
"s": 28177,
"text": "\n28 Apr, 2020"
},
{
"code": null,
"e": 28223,
"s": 28205,
"text": "TABLE OF CONTENT:"
},
{
"code": null,
"e": 28325,
"s": 28223,
"text": "IntroductionClassObjectsEncapsulationAbstractionPolymorphismInheritanceD... |
Automation Using Selenium in C# With Example - GeeksforGeeks | 22 Oct, 2021
Selenium is an open-source Web UI automation testing suite. It was developed by Jason Huggins in 2004 as an internal tool at Thought Works. It supports automation across different browsers, platforms, and programming languages which includes Java, Python, C#, etc. It can be easily be deployed on Windows, L... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 26359,
"s": 25547,
"text": "Selenium is an open-source Web UI automation testing suite. It was developed by Jason Huggins in 2004 as an internal tool at Thought Works. It supports automation ... |
Python program to create a list of tuples from given list having number and its cube in each tuple - GeeksforGeeks | 21 Nov, 2018
Given a list of numbers of list, write a Python program to create a list of tuples having first element as the number and second element as the cube of the number.
Example:
Input: list = [1, 2, 3]
Output: [(1, 1), (2, 8), (3, 27)]
Input: list = [9, 5, 6]
Output: [(9, 729), (5, 125), (6, 216)]
We can use l... | [
{
"code": null,
"e": 26303,
"s": 26275,
"text": "\n21 Nov, 2018"
},
{
"code": null,
"e": 26467,
"s": 26303,
"text": "Given a list of numbers of list, write a Python program to create a list of tuples having first element as the number and second element as the cube of the number.... |
Button in wxPython - Python - GeeksforGeeks | 10 May, 2020
In this article we are going to learn how can we add buttons to a frame in wxPython. This can be done by using using the Button() constructor of wx.Button class.
Following styles are supported in this class:
wx.BU_LEFT: Left-justifies the label. Windows and GTK+ only.
wx.BU_TOP: Aligns the label to the top... | [
{
"code": null,
"e": 26083,
"s": 26055,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 26245,
"s": 26083,
"text": "In this article we are going to learn how can we add buttons to a frame in wxPython. This can be done by using using the Button() constructor of wx.Button class."
... |
Python | Reading contents of PDF using OCR (Optical Character Recognition) - GeeksforGeeks | 17 Jan, 2019
Python is widely used for analyzing the data but the data need not be in the required format always. In such cases, we convert that format (like PDF or JPG etc.) to the text format, in order to analyze the data in better way. Python offers many libraries to do this task.
There are several ways of doing thi... | [
{
"code": null,
"e": 26179,
"s": 26151,
"text": "\n17 Jan, 2019"
},
{
"code": null,
"e": 26451,
"s": 26179,
"text": "Python is widely used for analyzing the data but the data need not be in the required format always. In such cases, we convert that format (like PDF or JPG etc.) t... |
matplotlib.pyplot.clabel() in Python - GeeksforGeeks | 29 Aug, 2020
Contour plots or Level plots are a way to display a three-dimensional surface on a two-dimensional plane. It graphs as contours as one output variable z and two predictor variables x and y on the y-axis. Often such contours are also known as z-slices.The clabel() method in mathplotlib.pyplot is used add la... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 25924,
"s": 25537,
"text": "Contour plots or Level plots are a way to display a three-dimensional surface on a two-dimensional plane. It graphs as contours as one output variable z and two pr... |
Program to calculate the value of sin(x) and cos(x) using Expansion - GeeksforGeeks | 14 Dec, 2021
Given a value of angle, you need to calculate Sin and Cos values corresponding to it.
For sin function
Examples:
Input : 90
Output : 1
C++
Java
Python3
C#
PHP
Javascript
// CPP code for implementing sin function#include <iostream>#include <math.h>using namespace std; // Function for calculating sin value... | [
{
"code": null,
"e": 26033,
"s": 26005,
"text": "\n14 Dec, 2021"
},
{
"code": null,
"e": 26119,
"s": 26033,
"text": "Given a value of angle, you need to calculate Sin and Cos values corresponding to it."
},
{
"code": null,
"e": 26136,
"s": 26119,
"text": "For ... |
Difference between npm install and npm update in Node.js - GeeksforGeeks | 25 Jan, 2021
NPM is like a powerhouse for Node.js that contains all the necessary modules for the smooth running of the node.js application. It gets installed on our machine when we install Node.js on our Windows, Linux or MAC OS.
How to install Node on the machine? Refer to this article.
NPM has 580096 registered p... | [
{
"code": null,
"e": 26293,
"s": 26265,
"text": "\n25 Jan, 2021"
},
{
"code": null,
"e": 26513,
"s": 26293,
"text": "NPM is like a powerhouse for Node.js that contains all the necessary modules for the smooth running of the node.js application. It gets installed on our machine w... |
Data Structure alignment - GeeksforGeeks | 08 Oct, 2021
Data structure alignment is the way data is arranged and accessed in computer memory. Data alignment and Data structure padding are two different issues but are related to each other and together known as Data Structure alignment. Data alignment: Data alignment means putting the data in memory at address e... | [
{
"code": null,
"e": 25919,
"s": 25891,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 26722,
"s": 25919,
"text": "Data structure alignment is the way data is arranged and accessed in computer memory. Data alignment and Data structure padding are two different issues but are re... |
Print different star patterns in SQL - GeeksforGeeks | 21 Mar, 2018
Let’s see how we can print the pattern of various type using SQL.
Syntax :
Declare @variable_name DATATYPE -- first declare all the
-- variables with datatype
-- like (int)
select @variable = WITH_ANY_VALUE -- select the variab... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n21 Mar, 2018"
},
{
"code": null,
"e": 25627,
"s": 25561,
"text": "Let’s see how we can print the pattern of various type using SQL."
},
{
"code": null,
"e": 25636,
"s": 25627,
"text": "Syntax :"
},
{
"... |
ReactJS componentWillUnmount() Method - GeeksforGeeks | 18 Jan, 2021
The componentWillUnmount() method allows us to execute the React code when the component gets destroyed or unmounted from the DOM (Document Object Model). This method is called during the Unmounting phase of the React Life-cycle i.e before the component gets unmounted.
All the cleanups such as invalidating... | [
{
"code": null,
"e": 26557,
"s": 26529,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 26827,
"s": 26557,
"text": "The componentWillUnmount() method allows us to execute the React code when the component gets destroyed or unmounted from the DOM (Document Object Model). This met... |
Matplotlib.figure.Figure.text() in Python - GeeksforGeeks | 03 May, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elemen... | [
{
"code": null,
"e": 26203,
"s": 26175,
"text": "\n03 May, 2020"
},
{
"code": null,
"e": 26514,
"s": 26203,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, whic... |
JavaScript | Difference between String.slice and String.substring | 21 Apr, 2022
These 2 functions are quite similar in their Syntax But are different in some cases. Let’s see difference between them.
slice():This method selects the part of a string and returns the selected part as a new string. Start and end parameters are used to specify the extracted part.The first character starts ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2022"
},
{
"code": null,
"e": 148,
"s": 28,
"text": "These 2 functions are quite similar in their Syntax But are different in some cases. Let’s see difference between them."
},
{
"code": null,
"e": 1361,
"s": 148... |
Output of C Programs | Set 12 | 27 Dec, 2016
Predict the output of below programs.
Question 1
int fun(char *str1){ char *str2 = str1; while(*++str1); return (str1-str2);} int main(){ char *str = "geeksforgeeks"; printf("%d", fun(str)); getchar(); return 0;}
Output: 13Inside fun(), pointer str2 is initialized as str1 and str1 is moved till... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Dec, 2016"
},
{
"code": null,
"e": 92,
"s": 54,
"text": "Predict the output of below programs."
},
{
"code": null,
"e": 103,
"s": 92,
"text": "Question 1"
},
{
"code": "int fun(char *str1){ char *str2 = ... |
Locating multiple elements in Selenium Python | 20 Apr, 2020
Locators Strategies in Selenium Python are methods that are used to locate single or multiple elements from the page and perform operations on the same. Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Apr, 2020"
},
{
"code": null,
"e": 744,
"s": 28,
"text": "Locators Strategies in Selenium Python are methods that are used to locate single or multiple elements from the page and perform operations on the same. Selenium’s Python Modu... |
Set Position with seekg() in C++ File Handling | 05 Apr, 2022
seekg() is a function in the iostream library that allows you to seek an arbitrary position in a file. It is included in the <fstream> header file and is defined for istream class. It is used in file handling to sets the position of the next character to be extracted from the input stream from a given file... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Apr, 2022"
},
{
"code": null,
"e": 362,
"s": 52,
"text": "seekg() is a function in the iostream library that allows you to seek an arbitrary position in a file. It is included in the <fstream> header file and is defined for istream ... |
Condition To Print “HelloWorld” | 21 Feb, 2022
What should be the “condition” so that the following code snippet prints both HelloWorld!
if "condition"
printf ("Hello");
else
printf("World");
Method 1:
c
#include<stdio.h>int main(){ if(!printf("Hello")) printf("Hello"); else printf("World"); ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Feb, 2022"
},
{
"code": null,
"e": 142,
"s": 52,
"text": "What should be the “condition” so that the following code snippet prints both HelloWorld!"
},
{
"code": null,
"e": 233,
"s": 144,
"text": " if \"con... |
Program to format a number with thousands separator in C/C++ | 31 Oct, 2020
Given an integer N, the task is to print output of the given integer in international place value format and put commas at the appropriate place, from the right.
Examples
Input: N = 47634Output: 47, 634
Input: N = 1000000Output : 1, 000, 000
Approach: Follow the steps below to solve the problem:
Convert th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Oct, 2020"
},
{
"code": null,
"e": 190,
"s": 28,
"text": "Given an integer N, the task is to print output of the given integer in international place value format and put commas at the appropriate place, from the right."
},
{
... |
Python – Dictionaries with Unique Value Lists | 30 Aug, 2020
Given List of dictionaries with list values, extract unique dictionaries.
Input : [{‘Gfg’: [2, 3], ‘is’ : [7, 8], ‘best’ : [10]}, {‘Gfg’: [2, 3], ‘is’ : [7, 8], ‘best’ : [10]}]Output : [{‘Gfg’: [2, 3], ‘is’: [7, 8], ‘best’: [10]}]Explanation : Both are similar dictionaries, and hence 1 is removed.
Input : ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Aug, 2020"
},
{
"code": null,
"e": 102,
"s": 28,
"text": "Given List of dictionaries with list values, extract unique dictionaries."
},
{
"code": null,
"e": 327,
"s": 102,
"text": "Input : [{‘Gfg’: [2, 3], ‘is’ : ... |
Learning Model Building in Scikit-learn : A Python Machine Learning Library | 08 Jul, 2022
Pre-requisite: Getting started with machine learning scikit-learn is an open-source Python library that implements a range of machine learning, pre-processing, cross-validation, and visualization algorithms using a unified interface.
Important features of scikit-learn:
Simple and efficient tools for data ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 286,
"s": 52,
"text": "Pre-requisite: Getting started with machine learning scikit-learn is an open-source Python library that implements a range of machine learning, pre-processing, cross-validati... |
Measure execution time of a function in C++ | 14 Feb, 2022
We can find out the time taken by different parts of a program by using the std::chrono library introduced in C++ 11. We have discussed at How to measure time taken by a program in C. The functions described there are supported in C++ too but they are C specific. For clean and robust C++ programs we should... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Feb, 2022"
},
{
"code": null,
"e": 992,
"s": 54,
"text": "We can find out the time taken by different parts of a program by using the std::chrono library introduced in C++ 11. We have discussed at How to measure time taken by a prog... |
Playing with Destructors in C++ | 29 May, 2017
Predict the output of the below code snippet.
#include <iostream>using namespace std; int i; class A{public: ~A() { i=10; }}; int foo(){ i=3; A ob; return i;} int main(){ cout << "i = " << foo() << endl; return 0;}
Output of the above program is “i = 3”.Why the output is ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 May, 2017"
},
{
"code": null,
"e": 100,
"s": 54,
"text": "Predict the output of the below code snippet."
},
{
"code": "#include <iostream>using namespace std; int i; class A{public: ~A() { i=10; }}; int fo... |
Python | Pandas Series.set_axis() | 03 Sep, 2021
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.set_axis() function is used to assig... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Sep, 2021"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.