title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Monitoring Data Quality in a Data Lake Using Great Expectations and Allure-Built Serverless | by Bvolodarskiy | Towards Data Science
The artificial intelligence, machine learning, and big data industries are rapidly growing. They are no longer just about hype — all three industries have matured to the point where they are able to help various organizations drive growth and deliver tangible results. In this context, the quality of associated solution...
[ { "code": null, "e": 579, "s": 172, "text": "The artificial intelligence, machine learning, and big data industries are rapidly growing. They are no longer just about hype — all three industries have matured to the point where they are able to help various organizations drive growth and deliver tang...
Estimating Distributions: Nonparametric | by Vivek Palaniappan | Towards Data Science
This article is part of my series that delve into how to optimize portfolio allocations. This series explains the mathematics and design principles behind my open source portfolio optimization library OptimalPortfolio. The first article here dealt with finding market invariants. Having done so, we must now estimate the...
[ { "code": null, "e": 581, "s": 172, "text": "This article is part of my series that delve into how to optimize portfolio allocations. This series explains the mathematics and design principles behind my open source portfolio optimization library OptimalPortfolio. The first article here dealt with fi...
How to get the available height and available width of a screen in JavaScript?
The window.screen object has provided many features to get the information regarding the browser screen. It has provided screen.availWidth and screen.availHeight to get the available height and available width of the screen. Let's discuss them individually. The screen.availWidth property returns the true width of the v...
[ { "code": null, "e": 1320, "s": 1062, "text": "The window.screen object has provided many features to get the information regarding the browser screen. It has provided screen.availWidth and screen.availHeight to get the available height and available width of the screen. Let's discuss them individua...
How to Delete Tkinter Text Box's Contents? - GeeksforGeeks
08 Oct, 2021 Prerequisite: Python GUI – tkinter Text Widget Python offers multiple options for developing GUI (Graphical User Interface) out of which Tkinter is the most preferred means. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest, most reliable and ea...
[ { "code": null, "e": 23956, "s": 23928, "text": "\n08 Oct, 2021" }, { "code": null, "e": 23970, "s": 23956, "text": "Prerequisite:" }, { "code": null, "e": 23991, "s": 23970, "text": "Python GUI – tkinter" }, { "code": null, "e": 24003, "s": 23...
Using Jupyter Notebook to manage your BigQuery analytics | by Tuan Nguyen | Towards Data Science
How to utilize Jupyter Notebook to manage your SQL queries better. If you have the struggle of opening and continuously switching between ten thousand BigQuery tabs, you are not alone. As a data professional, working with SQL queries is a daily task, and if you are not organized, you will quickly drown yourself in Chro...
[ { "code": null, "e": 239, "s": 172, "text": "How to utilize Jupyter Notebook to manage your SQL queries better." }, { "code": null, "e": 501, "s": 239, "text": "If you have the struggle of opening and continuously switching between ten thousand BigQuery tabs, you are not alone. A...
How to Split Shapefiles. Cutting the western Aleutian Islands... | by Allison Stafford | Towards Data Science
Sometimes you only want part of a shapefile. Depending on what part, and the shapefile source, this can be super simple, or less so. For example, the other week, I was mapping the US states’ relative rates of complaints to the Federal Consumer Financial Protection Bureau (more here), and my choropleth mapped like this:...
[ { "code": null, "e": 492, "s": 171, "text": "Sometimes you only want part of a shapefile. Depending on what part, and the shapefile source, this can be super simple, or less so. For example, the other week, I was mapping the US states’ relative rates of complaints to the Federal Consumer Financial P...
Queries to find whether a number has exactly four distinct factors or not - GeeksforGeeks
06 Jul, 2021 Given a positive integers ‘q’ and ‘n’. For each query ‘q’ find whether a number ‘n’ have exactly four distinct divisors or not. If the number have exactly four divisors then print ‘Yes’ else ‘No’.1 <= q, n <= 106 Input: 2 10 12 Output: Yes No Explanation: For 1st query, n = 10 has exactly four divisor i...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n06 Jul, 2021" }, { "code": null, "e": 24931, "s": 24716, "text": "Given a positive integers ‘q’ and ‘n’. For each query ‘q’ find whether a number ‘n’ have exactly four distinct divisors or not. If the number have exactly four div...
How to send an email with a file attachment in Android?
This example demonstrates how do I send an email with a file attachment in android. 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" encoding="utf-8"?> <Li...
[ { "code": null, "e": 1146, "s": 1062, "text": "This example demonstrates how do I send an email with a file attachment in android." }, { "code": null, "e": 1275, "s": 1146, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required de...
HTML | <th> scope Attribute - GeeksforGeeks
26 Jun, 2019 The HTML <th> scope Attribute is used to specify the header cell is used for header row, column, colgroup or rowgroup. This attribute does not display any visual effect on the browser but it is used for screen readers. Syntax: <th scope="col | row | colgroup | rowgroup"> Attribute Values: col: It specifies...
[ { "code": null, "e": 24649, "s": 24621, "text": "\n26 Jun, 2019" }, { "code": null, "e": 24868, "s": 24649, "text": "The HTML <th> scope Attribute is used to specify the header cell is used for header row, column, colgroup or rowgroup. This attribute does not display any visual e...
How to create a 100% stacked Area Chart with Matplotlib?
To create a 100% stacked Area Chart with Matplotlib, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Create a list of years. Create a list of years. Make a dictionary, with list of p...
[ { "code": null, "e": 1149, "s": 1062, "text": "To create a 100% stacked Area Chart with Matplotlib, we can take the following steps −" }, { "code": null, "e": 1225, "s": 1149, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code...
What happens when a function is called before its declaration in C? - GeeksforGeeks
24 Dec, 2021 In C, if a function is called before its declaration, the compiler assumes the return type of the function as int.For example, the following program fails in the compilation. C #include <stdio.h>int main(void){ // Note that fun() is not declared printf("%c\n", fun()); return 0;} char fun(){ retu...
[ { "code": null, "e": 24726, "s": 24698, "text": "\n24 Dec, 2021" }, { "code": null, "e": 24901, "s": 24726, "text": "In C, if a function is called before its declaration, the compiler assumes the return type of the function as int.For example, the following program fails in the c...
How to format JavaScript date into yyyy-mm-dd format?
To format a JavaScript date into “yyyy-mm-dd” format, use the toISOString() method. It converts using ISO standard i.e. YYYY-MM-DDTHH:mm:ss.sss You can try to run the following code to format a date. Live Demo <html> <head> <title>JavaScript Dates</title> </head> <body> <script> var date,...
[ { "code": null, "e": 1182, "s": 1062, "text": "To format a JavaScript date into “yyyy-mm-dd” format, use the toISOString() method. It converts using ISO standard i.e." }, { "code": null, "e": 1206, "s": 1182, "text": "YYYY-MM-DDTHH:mm:ss.sss" }, { "code": null, "e": 1...
Overlapping Elements with Z-Index using CSS
Using CSS Z-Index property developer can stack elements onto one another. Z-Index can have a positive or a negative value. NOTE − If elements that overlap do not have z-index specified then that element will show up that is mentioned last in document. Let’s see an example of z-index property − <!DOCTYPE html> <html> <...
[ { "code": null, "e": 1185, "s": 1062, "text": "Using CSS Z-Index property developer can stack elements onto one another. Z-Index can have a positive or a negative value." }, { "code": null, "e": 1314, "s": 1185, "text": "NOTE − If elements that overlap do not have z-index specifi...
Pairs of prime number | Practice | GeeksforGeeks
Find all pairs (sets) of prime numbers (p,q) such that p*q <= n, where n is given number. Example 1: Input: n = 4 Output: 2 2 Explanation: Pair (2, 2) which has both prime numbers as well as satisfying the condition 2*2 <= 4. Example 2: Input: n = 8 Output: 2 2 2 3 3 2 Explanation: Pairs(2, 2), (2, 3) and (3, 2) ...
[ { "code": null, "e": 331, "s": 238, "text": "Find all pairs (sets) of prime numbers (p,q) such that p*q <= n, where n is given number. \n " }, { "code": null, "e": 342, "s": 331, "text": "Example 1:" }, { "code": null, "e": 470, "s": 342, "text": "Input: n = 4...
How to use $slice operator to get last element of array in MongoDB?
To get the last element of array in MongoDB, use the following syntax db.yourCollectionName.find({},{yourArrayFieldName:{$slice:-1}}); Let us first create a collection with documents >db.getLastElementOfArrayDemo.insertOne({"StudentName":"James","StudentMathScore":[78,68,98]}); { "acknowledged" : true, "insertedI...
[ { "code": null, "e": 1132, "s": 1062, "text": "To get the last element of array in MongoDB, use the following syntax" }, { "code": null, "e": 1197, "s": 1132, "text": "db.yourCollectionName.find({},{yourArrayFieldName:{$slice:-1}});" }, { "code": null, "e": 1245, ...
TensorFlow, Meet The ESP32. How to Set Up TensorFlow Lite for ESP32... | by Wezley Sherman | Towards Data Science
If I had to choose a favorite field of computing, I would choose Embedded Systems. I’m a fan of the challenge that optimizing code to run in a resource-constrained environment presents. When I realized that TensorFlow Lite supports microcontrollers, I flipped my desk — with excitement. I have a couple of the ESP32-CAM ...
[ { "code": null, "e": 232, "s": 46, "text": "If I had to choose a favorite field of computing, I would choose Embedded Systems. I’m a fan of the challenge that optimizing code to run in a resource-constrained environment presents." }, { "code": null, "e": 333, "s": 232, "text": "W...
C/C++ Pointers vs Java references
In C, C++ programming languages, a pointer is a variable that holds the address of another variable. #include <iostream> using namespace std; int main() { //int variable int i = 8; //pointer variable int * pI; //assign the address of i to its pointer pI = &amp;i; //print the number cout<<i<...
[ { "code": null, "e": 1163, "s": 1062, "text": "In C, C++ programming languages, a pointer is a variable that holds the address of another variable." }, { "code": null, "e": 1617, "s": 1163, "text": "#include <iostream>\nusing namespace std;\n \nint main() {\n //int variable\n ...
Python Pandas - Insert a new index value at a specific position
To insert a new index value at a specific position, use the index.insert() method in Pandas. At first, import the required libraries - import pandas as pd Creating the Pandas index − index = pd.Index(['Car','Bike','Airplane','Ship','Truck']) Display the index − print("Pandas Index...\n",index) Insert a new value at a ...
[ { "code": null, "e": 1197, "s": 1062, "text": "To insert a new index value at a specific position, use the index.insert() method in Pandas. At first, import the required libraries -" }, { "code": null, "e": 1217, "s": 1197, "text": "import pandas as pd" }, { "code": null,...
Data Structure - Recursion Basics
Some computer programming languages allow a module or function to call itself. This technique is known as recursion. In recursion, a function α either calls itself directly or calls a function β that in turn calls the original function α. The function α is called recursive function. Example − a function calling itself....
[ { "code": null, "e": 2864, "s": 2580, "text": "Some computer programming languages allow a module or function to call itself. This technique is known as recursion. In recursion, a function α either calls itself directly or calls a function β that in turn calls the original function α. The function α...
Array getFloat() Method in Java - GeeksforGeeks
30 Nov, 2018 The java.lang.reflect.Array.getFloat() is an inbuilt method of Array class in Java and is used to return the element present at the given index from the specified Array as Float. Syntax: Array.getFloat(Object []array, int index) Parameters: This method accepts two mandatory parameters: array: The object a...
[ { "code": null, "e": 24540, "s": 24512, "text": "\n30 Nov, 2018" }, { "code": null, "e": 24719, "s": 24540, "text": "The java.lang.reflect.Array.getFloat() is an inbuilt method of Array class in Java and is used to return the element present at the given index from the specified ...
Write a C program to demonstrate post increment and pre increment operators
It is used to increment the value of a variable by 1. There are two types of increment operators, pre-increment and post-increment. It is used to increment the value of a variable by 1. There are two types of increment operators, pre-increment and post-increment. The increment operator is placed before the operand in p...
[ { "code": null, "e": 1194, "s": 1062, "text": "It is used to increment the value of a variable by 1. There are two types of increment operators, pre-increment and post-increment." }, { "code": null, "e": 1326, "s": 1194, "text": "It is used to increment the value of a variable by...
Benefits of CatBoost Machine Learning Algorithm | Towards Data Science
IntroductionCategorical Features are More PowerfulIntegrated Plotting FeaturesEfficient ProcessingSummaryReferences Introduction Categorical Features are More Powerful Integrated Plotting Features Efficient Processing Summary References Out with the old, and in with the new. More specifically, CatBoost [2] may be repla...
[ { "code": null, "e": 288, "s": 172, "text": "IntroductionCategorical Features are More PowerfulIntegrated Plotting FeaturesEfficient ProcessingSummaryReferences" }, { "code": null, "e": 301, "s": 288, "text": "Introduction" }, { "code": null, "e": 340, "s": 301, ...
PHP $_GET
$_GET is an associative array of variables passed to the current script via query string appended to URL of HTTP request. Note that the array is populated by all requests with a query string in addition to GET requests. $HTTP_GET_VARS contains the same initial information, but has been deprecated By default, client br...
[ { "code": null, "e": 1283, "s": 1062, "text": "$_GET is an associative array of variables passed to the current script via query string appended to URL of HTTP request. Note that the array is populated by all requests with a query string in addition to GET requests." }, { "code": null, ...
Anomaly Detection made simple. Credit card fraud case using pycaret... | by Amalesh Vemula | Towards Data Science
In this new era of banking, financial payment services giants like Stripe, Square etc, made credit card payments seamless and the credit card transactions have been increasing by multiples every year1 (source). Thus also resulting in Credit card fraud reports doubling every year2 (source). What is an Anomaly? An Anomal...
[ { "code": null, "e": 462, "s": 171, "text": "In this new era of banking, financial payment services giants like Stripe, Square etc, made credit card payments seamless and the credit card transactions have been increasing by multiples every year1 (source). Thus also resulting in Credit card fraud rep...
RxJS - Utility Operator timeout
This operator will throw an error if the source Observable does not emit a value after the given timeout. timeout(timeout: number | Date): Observable timeout − The input to it is the timeout which can be of type number or Date within which the value from the source Observable must be emitted. An observable is returned...
[ { "code": null, "e": 1930, "s": 1824, "text": "This operator will throw an error if the source Observable does not emit a value after the given timeout." }, { "code": null, "e": 1975, "s": 1930, "text": "timeout(timeout: number | Date): Observable\n" }, { "code": null, ...
C# Program to find number of occurrence of a character in a String
Let’s say our string is − String s = "mynameistomhanks"; Now create a new array and pass it a new method with the string declared above. This calculates the occurrence of characters in a string. static void calculate(String s, int[] cal) { for (int i = 0; i < s.Length; i++) cal[s[i]]++; } Let us see the complete ...
[ { "code": null, "e": 1088, "s": 1062, "text": "Let’s say our string is −" }, { "code": null, "e": 1119, "s": 1088, "text": "String s = \"mynameistomhanks\";" }, { "code": null, "e": 1257, "s": 1119, "text": "Now create a new array and pass it a new method with...
How to increment inside the update() function in MongoDB?
You can use $inc operator to increment. Let us first create a collection with documents − > db.addInUpdateFunctionDemo.insertOne({"PlayerName":"Chris","PlayerScore":78}); { "acknowledged" : true, "insertedId" : ObjectId("5cd2b3f4345990cee87fd893") } > db.addInUpdateFunctionDemo.insertOne({"PlayerName":"Robert","P...
[ { "code": null, "e": 1152, "s": 1062, "text": "You can use $inc operator to increment. Let us first create a collection with documents −" }, { "code": null, "e": 1651, "s": 1152, "text": "> db.addInUpdateFunctionDemo.insertOne({\"PlayerName\":\"Chris\",\"PlayerScore\":78});\n{\n ...
VBA - Do-Until Loops
A Do...Until loop is used when we want to repeat a set of statements as long as the condition is false. The condition may be checked at the beginning of the loop or at the end of loop. Following is the syntax of a Do..Until loop in VBA. Do Until condition [statement 1] [statement 2] ... [statement n] [Ex...
[ { "code": null, "e": 2120, "s": 1935, "text": "A Do...Until loop is used when we want to repeat a set of statements as long as the condition is false. The condition may be checked at the beginning of the loop or at the end of loop." }, { "code": null, "e": 2172, "s": 2120, "text"...
Change input type value attribute in jQuery
Let’s say the following is our input type with value, “John Smith” − <input type = 'text' value = 'John Smith' id = 'changeTheName' /> To change, use the attr() method − $('#changeTheName').attr('value', 'Please enter your name.......'); You need to use the concept of attr(). Following is the code − Live Demo <!DOCTYP...
[ { "code": null, "e": 1131, "s": 1062, "text": "Let’s say the following is our input type with value, “John Smith” −" }, { "code": null, "e": 1197, "s": 1131, "text": "<input type = 'text' value = 'John Smith' id = 'changeTheName' />" }, { "code": null, "e": 1232, ...
Function call by value in Objective-C
The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no effect on the argument. By default, Objective-C programming language uses call by value method to pass arg...
[ { "code": null, "e": 2798, "s": 2560, "text": "The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no effect on the argument." }, { "...
Constructors in Dart - GeeksforGeeks
20 Jul, 2020 Dart also provides the support of constructors. Constructors are a special method that is used to initialize an object when created in the program. In object-oriented programming when an object is created, it automatically calls the constructor. All classes have their default constructor which is created b...
[ { "code": null, "e": 24073, "s": 24045, "text": "\n20 Jul, 2020" }, { "code": null, "e": 24578, "s": 24073, "text": "Dart also provides the support of constructors. Constructors are a special method that is used to initialize an object when created in the program. In object-orien...
How to compute the mean and standard deviation of a tensor in PyTorch?
A PyTorch tensor is like a numpy array. The only difference is that a tensor utilizes the GPUs to accelerate numeric computations. The mean of a tensor is computed using the torch.mean() method. It returns the mean value of all the elements in the input tensor. We can also compute the mean row-wise and column-wise, pro...
[ { "code": null, "e": 1411, "s": 1062, "text": "A PyTorch tensor is like a numpy array. The only difference is that a tensor utilizes the GPUs to accelerate numeric computations. The mean of a tensor is computed using the torch.mean() method. It returns the mean value of all the elements in the input...
C++ Program to Implement Array in STL
Different operations on array and pseudocodes: Begin In main(), While TRUE do Prints some choices. Take input of choice. Start the switch case When case is 1 Print the size of the array. Break When case is 2 Insert the values in array. ...
[ { "code": null, "e": 1109, "s": 1062, "text": "Different operations on array and pseudocodes:" }, { "code": null, "e": 1762, "s": 1109, "text": "Begin\nIn main(),\n While TRUE do\n Prints some choices.\n Take input of choice.\n Start the switch case\n Whe...
How to extract the last n characters from a string using Java?
To extract last n characters, simply print (length-n)th character to nth character using the charAt() method. Live Demo public class ExtractingCharactersFromStrings { public static void main(String args[]) { String str = "Hi welcome to tutorialspoint"; int n = 5; int initial = str.length()-5; ...
[ { "code": null, "e": 1172, "s": 1062, "text": "To extract last n characters, simply print (length-n)th character to nth character using the charAt() method." }, { "code": null, "e": 1182, "s": 1172, "text": "Live Demo" }, { "code": null, "e": 1488, "s": 1182, ...
C library function - feof()
The C library function int feof(FILE *stream) tests the end-of-file indicator for the given stream. Following is the declaration for feof() function. int feof(FILE *stream) stream − This is the pointer to a FILE object that identifies the stream. stream − This is the pointer to a FILE object that identifies the stream....
[ { "code": null, "e": 2107, "s": 2007, "text": "The C library function int feof(FILE *stream) tests the end-of-file indicator for the given stream." }, { "code": null, "e": 2157, "s": 2107, "text": "Following is the declaration for feof() function." }, { "code": null, ...
What is pointer operator & in C++?
C++ provides two pointer operators, which are Address of Operator (&) and Indirection Operator (*). A pointer is a variable that contains the address of another variable or you can say that a variable that contains the address of another variable is said to "point to" the other variable. A variable can be any data type...
[ { "code": null, "e": 1439, "s": 1062, "text": "C++ provides two pointer operators, which are Address of Operator (&) and Indirection Operator (*). A pointer is a variable that contains the address of another variable or you can say that a variable that contains the address of another variable is sai...
Apostrophe replacement in MySQL query?
To replace apostrophe, you can use replace(). Following is the syntax − update yourTableName set yourColumnName=replace(yourColumnName,'\'',''); Let us first create a table − mysql> create table DemoTable ( Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, Sentence varchar(100) ); Query OK, 0 rows affected (0.17 ...
[ { "code": null, "e": 1134, "s": 1062, "text": "To replace apostrophe, you can use replace(). Following is the syntax −" }, { "code": null, "e": 1207, "s": 1134, "text": "update yourTableName set yourColumnName=replace(yourColumnName,'\\'','');" }, { "code": null, "e":...
Difference between var and let in JavaScript
As we know in order to declare a variable in javascript we have two options either declare with var or declare with let. Now the question is when to use var and when to use let i.e what are the major difference between both. In the following text we come to know the major difference between var and let in javascript. T...
[ { "code": null, "e": 1287, "s": 1062, "text": "As we know in order to declare a variable in javascript we have two options either declare with var or declare with let. Now the question is when to use var and when to use let i.e what are the major difference between both." }, { "code": null, ...
CSS | block-size Property - GeeksforGeeks
21 May, 2021 The block-size property in CSS is used to define the horizontal or vertical size of an element’s block. It coincides with the width or the height property, depending on the value of the writing-mode property. it leaves the space below are left of the element text.Syntax: block-size: length|percentage|aut...
[ { "code": null, "e": 25376, "s": 25348, "text": "\n21 May, 2021" }, { "code": null, "e": 25650, "s": 25376, "text": "The block-size property in CSS is used to define the horizontal or vertical size of an element’s block. It coincides with the width or the height property, dependi...
Directi Interview | Set 6 (On-Campus for Internship)
21 Nov, 2019 Recently Directi visited our campus for intern selections. There was 1 Online coding round hosted on codechef, 2 Algo Interview round and 1 Technical round.> Online Coding round: There were 2 questions. Question 1 had 2 points whereas question 2 had 1 point. Question 1. There is a compressed string eg. ”ab...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Nov, 2019" }, { "code": null, "e": 210, "s": 52, "text": "Recently Directi visited our campus for intern selections. There was 1 Online coding round hosted on codechef, 2 Algo Interview round and 1 Technical round.>" }, { "c...
How to Create a Simple Lucky Draw Spinning Wheel in Android?
10 Nov, 2021 Pre-requisites: Android App Development Fundamentals for Beginners Guide to Install and Set up Android Studio How to Create/Start a New Project in Android Studio? Running your first Android app CountDownTimer in Android with Example Random Class in Java We are going to build a lucky draw spinning wheel, th...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Nov, 2021" }, { "code": null, "e": 44, "s": 28, "text": "Pre-requisites:" }, { "code": null, "e": 95, "s": 44, "text": "Android App Development Fundamentals for Beginners" }, { "code": null, "e": 138, ...
p5.js | rect() Function
23 Aug, 2021 The rect() function is an inbuilt function in p5.js which is used to draw the rectangle on the screen. A rectangle contains four sides and four angles. Each angle of the rectangle is 90 degree. The length of the opposite sides of rectangles are equal. Syntax: rect( x, y, w, h, tl, tr, br, bl ) or rec...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Aug, 2021" }, { "code": null, "e": 308, "s": 54, "text": "The rect() function is an inbuilt function in p5.js which is used to draw the rectangle on the screen. A rectangle contains four sides and four angles. Each angle of the rect...
How to target all Font Awesome icons and align them center?
09 Mar, 2022 Font Awesome is a great toolkit for developers to get icons based on CSS and LESS. There is other icons pack on the internet, but Font Awesome is more popular in the developer community. It has a wide collection of icons that are free to use. The most preferred way to center Font Awesome Icons is to assign...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Mar, 2022" }, { "code": null, "e": 271, "s": 28, "text": "Font Awesome is a great toolkit for developers to get icons based on CSS and LESS. There is other icons pack on the internet, but Font Awesome is more popular in the developer...
Difference between window.onload and body.onload
10 Feb, 2021 There is a slight difference between the windows onload and the body onload, but before approaching the differences between them first we required the knowledge of what are those onloads. After, that we will know the usage in different scenarios of those where we will notice the slight differences between ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Feb, 2021" }, { "code": null, "e": 341, "s": 28, "text": "There is a slight difference between the windows onload and the body onload, but before approaching the differences between them first we required the knowledge of what are th...
typeid operator in C++ with Examples
03 Sep, 2021 typeid is an operator in C++. It is used where the dynamic type or runtime type information of an object is needed. It is included in the <typeinfo> library. Hence inorder to use typeid, this library should be included in the program. The typeid expression is an lvalue expression. Syntax: typeid(type); ...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Sep, 2021" }, { "code": null, "e": 85, "s": 54, "text": "typeid is an operator in C++. " }, { "code": null, "e": 171, "s": 85, "text": "It is used where the dynamic type or runtime type information of an object i...
Find four elements that sum to a given value | Set 2
08 Jul, 2022 Given an array of integers, find anyone combination of four elements in the array whose sum is equal to a given value X. For example, Input: array = {10, 2, 3, 4, 5, 9, 7, 8} X = 23 Output: 3 5 7 8 Sum of output is equal to 23, i.e. 3 + 5 + 7 + 8 = 23. Input: array = {1, 2, 3, 4, 5, 9, 7, 8} ...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jul, 2022" }, { "code": null, "e": 173, "s": 52, "text": "Given an array of integers, find anyone combination of four elements in the array whose sum is equal to a given value X." }, { "code": null, "e": 187, "s": 17...
Maximum area of rectangle possible with given perimeter
30 May, 2021 Given the perimeter of a rectangle, the task is to find the maximum area of a rectangle which can use n-unit length as its perimeter. Note: Length and Breadth must be an integral value. Example: Input: perimeter = 15 Output: Maximum Area = 12 Input: perimeter = 16 Output: Maximum Area = 16 Approach: Fo...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 May, 2021" }, { "code": null, "e": 163, "s": 28, "text": "Given the perimeter of a rectangle, the task is to find the maximum area of a rectangle which can use n-unit length as its perimeter. " }, { "code": null, "e": 216...
Minimum tiles of sizes in powers of two to cover whole area
25 May, 2022 Given an area of N X M. You have the infinite number of tiles of size 2i X 2i, where i = 0, 1, 2,... so on. The task is to find the minimum number of tiles required to fill the given area with tiles.Examples: Input : N = 5, M = 6. Output : 9 Area of 5 X 6 can be covered with minimum 9 tiles. 6 tiles of 1...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 May, 2022" }, { "code": null, "e": 265, "s": 54, "text": "Given an area of N X M. You have the infinite number of tiles of size 2i X 2i, where i = 0, 1, 2,... so on. The task is to find the minimum number of tiles required to fill t...
PYTHONPATH Environment Variable in Python
05 Sep, 2020 Python’s behavior is greatly influenced by its environment variables. One of those variables is PYTHONPATH. It is used to set the path for the user-defined modules so that it can be directly imported into a Python program. It is also responsible for handling the default search path for Python Modules. The ...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Sep, 2020" }, { "code": null, "e": 653, "s": 52, "text": "Python’s behavior is greatly influenced by its environment variables. One of those variables is PYTHONPATH. It is used to set the path for the user-defined modules so that it...
Number of ways to pair people
21 Apr, 2021 Given that there are p people in a party. Each person can either join dance as a single individual or as a pair with any other. The task is to find the number of different ways in which p people can join the dance.Examples: Input : p = 3 Output : 4 Let the three people be P1, P2 and P3 Different ways are...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Apr, 2021" }, { "code": null, "e": 280, "s": 54, "text": "Given that there are p people in a party. Each person can either join dance as a single individual or as a pair with any other. The task is to find the number of different wa...
How to Deploy a Basic Static HTML Website to Heroku?
08 Jul, 2022 Heroku is a simple and one-stop solution to host any website or server. This article revolves around how you can host your own Static HTML webpage on Heroku. To demonstrate this we are going to build a simple webpage and host it. Git Heroku Account Heroku CLI Let’s create a directory named “portfolio” for ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 284, "s": 54, "text": "Heroku is a simple and one-stop solution to host any website or server. This article revolves around how you can host your own Static HTML webpage on Heroku. To demonstrate t...
Pascal Matrix
07 Jan, 2022 In mathematics, particularly in matrix theory and combinatorics, the Pascal Matrix is an infinite matrix containing the binomial coefficients as its elements. There are three ways to achieve this: as either an upper-triangular matrix, a lower-triangular matrix, or a symmetric matrix. The 5 x 5 truncations ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jan, 2022" }, { "code": null, "e": 363, "s": 28, "text": "In mathematics, particularly in matrix theory and combinatorics, the Pascal Matrix is an infinite matrix containing the binomial coefficients as its elements. There are three ...
Python | os.mkdir() method
29 May, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. All functions in os module raise OSError in the case of invalid or inaccessible file nam...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 May, 2019" }, { "code": null, "e": 272, "s": 53, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usi...
DAX Logical - OR function
Checks whether one of the arguments is TRUE. Returns TRUE if at least one of the arguments is TRUE and returns FALSE if both the arguments are FALSE. OR (<logical1>, <logical2>) TRUE if any of the two arguments is TRUE. FALSE if both the arguments are FALSE. DAX OR function takes only two arguments. If you have more ...
[ { "code": null, "e": 2151, "s": 2001, "text": "Checks whether one of the arguments is TRUE. Returns TRUE if at least one of the arguments is TRUE and returns FALSE if both the arguments are FALSE." }, { "code": null, "e": 2181, "s": 2151, "text": "OR (<logical1>, <logical2>) \n" ...
Python – Sort Dictionary List by Key’s ith Index value
When it is required to sort the list of dictionary based on the key’s ‘i’th index value, the ‘sorted’ method and the lambda methods are used. Below is a demonstration of the same − my_list = [{"Python" : "Best", "to" : "Code"}, {"Python" : "Good", "to" : "Learn"}, {"Python" : "object", "to" : "cool"}, {"Python...
[ { "code": null, "e": 1204, "s": 1062, "text": "When it is required to sort the list of dictionary based on the key’s ‘i’th index value, the ‘sorted’ method and the lambda methods are used." }, { "code": null, "e": 1243, "s": 1204, "text": "Below is a demonstration of the same −" ...
Find sum and average of List in Python - GeeksforGeeks
29 Aug, 2020 Given a List. The task is to find the sum and average of the list. Average of the list is defined as the sum of the elements divided by the number of the elements. Examples: Input: [4, 5, 1, 2, 9, 7, 10, 8] Output: sum = 46 average = 5.75 Input: [15, 9, 55, 41, 35, 20, 62, 49] Output: sum = 286 average...
[ { "code": null, "e": 24317, "s": 24289, "text": "\n29 Aug, 2020" }, { "code": null, "e": 24481, "s": 24317, "text": "Given a List. The task is to find the sum and average of the list. Average of the list is defined as the sum of the elements divided by the number of the elements....
How to find all the different combinations of opening and closing brackets from the given number k using C#?
Create a backtrack function that updates the current string if open brackets are less than n or close bracket are less than open bracket. When the length of current string becomes equal to 2*n, add it to the combination result array. It could be simply tracked by keeping the number of { } placed . We can start an openi...
[ { "code": null, "e": 1519, "s": 1062, "text": "Create a backtrack function that updates the current string if open brackets are less than n or close bracket are less than open bracket. When the length of current string becomes equal to 2*n, add it to the combination result array. It could be simply ...
Basics of NumPy Arrays - GeeksforGeeks
26 Apr, 2022 NumPy stands for Numerical Python. It is a Python library used for working with an array. In Python, we use the list for purpose of the array but it’s slow to process. NumPy array is a powerful N-dimensional array object and its use in linear algebra, Fourier transform, and random number capabilities. It p...
[ { "code": null, "e": 24339, "s": 24311, "text": "\n26 Apr, 2022" }, { "code": null, "e": 24713, "s": 24339, "text": "NumPy stands for Numerical Python. It is a Python library used for working with an array. In Python, we use the list for purpose of the array but it’s slow to proc...
How to plot a pcolor colorbar in a different subplot in Matplotlib?
To plot a pcolor colorbar in a different subplot in Matplotlib, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Create a figure and a set of subplots wuth two rows and two columns. Make a list of colormaps. Iterate the axes and create a pseudocolor plot with...
[ { "code": null, "e": 1160, "s": 1062, "text": "To plot a pcolor colorbar in a different subplot in Matplotlib, we can take the following steps −" }, { "code": null, "e": 1236, "s": 1160, "text": "Set the figure size and adjust the padding between and around the subplots." }, ...
Pytorch [Basics] — Intro to Dataloaders and Loss Functions | by Akshaj Verma | Towards Data Science
In this blog post, we will see a short implementation of custom dataset and dataloader as well as see some of the common loss functions in action. A custom dataset class is created using 3 main components. __init__ __len__ __getitem__ class CustomDataset(Dataset): def __init__(self): pass def __getitem__(s...
[ { "code": null, "e": 318, "s": 171, "text": "In this blog post, we will see a short implementation of custom dataset and dataloader as well as see some of the common loss functions in action." }, { "code": null, "e": 377, "s": 318, "text": "A custom dataset class is created using...
GWT - Quick Guide
Google Web Toolkit (GWT) is a development toolkit to create RICH Internet Applications (RIA). Here are some of its notable features − GWT provides developers option to write client side application in JAVA. GWT provides developers option to write client side application in JAVA. GWT compiles the code written in JAVA to...
[ { "code": null, "e": 2157, "s": 2023, "text": "Google Web Toolkit (GWT) is a development toolkit to create RICH Internet Applications (RIA). Here are some of its notable features −" }, { "code": null, "e": 2230, "s": 2157, "text": "GWT provides developers option to write client s...
jQuery Add Elements
With jQuery, it is easy to add new elements/content. We will look at four jQuery methods that are used to add new content: append() - Inserts content at the end of the selected elements prepend() - Inserts content at the beginning of the selected elements after() - Inserts content after the selected elements before() -...
[ { "code": null, "e": 53, "s": 0, "text": "With jQuery, it is easy to add new elements/content." }, { "code": null, "e": 123, "s": 53, "text": "We will look at four jQuery methods that are used to add new content:" }, { "code": null, "e": 186, "s": 123, "text":...
Convert PNG to JPG using Python - GeeksforGeeks
02 Feb, 2021 PNG and JPG formats are used for image illustrations. Both the formats are used to provide good compatibilities with certain types of images like PNG works better with line drawings and icon graphics whereas JPG works well with photographs. However, both are interconvertible with respect to each other for ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n02 Feb, 2021" }, { "code": null, "e": 24708, "s": 24292, "text": "PNG and JPG formats are used for image illustrations. Both the formats are used to provide good compatibilities with certain types of images like PNG works better ...
Stratified Random Sampling Using Python and Pandas | by Graham Harrison | Towards Data Science
Sometimes the sample data that data scientists are given does not fit what we know about the wider population data. For example, lets assume that the data science team were given survey data and we noticed that the survey respondents were 60% male and 40% female. In the real world the UK general population is closer to...
[ { "code": null, "e": 436, "s": 172, "text": "Sometimes the sample data that data scientists are given does not fit what we know about the wider population data. For example, lets assume that the data science team were given survey data and we noticed that the survey respondents were 60% male and 40%...
4 Things To Do Before You Start Studying NLP | by Ugo Loobuyck | Towards Data Science
Getting started in a new field isn’t always easy when you don’t have the right resources or are missing crucial information, even when this field is as fun as Natural Language Processing! I have been an NLP student for the past two years and there are a few things I wish I knew before I started my master’s degree. In t...
[ { "code": null, "e": 359, "s": 171, "text": "Getting started in a new field isn’t always easy when you don’t have the right resources or are missing crucial information, even when this field is as fun as Natural Language Processing!" }, { "code": null, "e": 608, "s": 359, "text":...
Getting more value from the Pandas’ value_counts() | by Parul Pandey | Towards Data Science
Data exploration is an important aspect of the Machine Learning pipeline. Before we decide which model to train and how many to train, we must have an idea of what our data contains. The Pandas library is equipped with a number of useful functions for this very purpose and value_counts is one of them. This function ret...
[ { "code": null, "e": 727, "s": 172, "text": "Data exploration is an important aspect of the Machine Learning pipeline. Before we decide which model to train and how many to train, we must have an idea of what our data contains. The Pandas library is equipped with a number of useful functions for thi...
Delete all odd or even positioned nodes from Circular Linked List - GeeksforGeeks
03 Nov, 2021 Given a Singly Circular Linked List, starting from the first node delete all odd position nodes in it. Note: Linked list is considered to have 1-based indexing. That is, first element in the linked list is at position 1. Examples: Input : List = 99->11->22->33 Output : 11->33 Input : List = 90->10->20->...
[ { "code": null, "e": 24661, "s": 24633, "text": "\n03 Nov, 2021" }, { "code": null, "e": 24882, "s": 24661, "text": "Given a Singly Circular Linked List, starting from the first node delete all odd position nodes in it. Note: Linked list is considered to have 1-based indexing. Th...
3D Heatmap in Python - GeeksforGeeks
28 Jul, 2021 Heatmaps are a great way to visualize a dataset, methods for visualizing the data are getting explored constantly and 3D heatmap is one of the ways to plot data. Let’s learn how we can plot 3D data in python. We are going to use matplotlib and mplot3d to plot the 3D Heatmap in Python. We need to install th...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n28 Jul, 2021" }, { "code": null, "e": 24281, "s": 23901, "text": "Heatmaps are a great way to visualize a dataset, methods for visualizing the data are getting explored constantly and 3D heatmap is one of the ways to plot data. L...
C++ Data Types
While writing program in any language, you need to use various variables to store various information. Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. You may like to store information of various data types like character,...
[ { "code": null, "e": 2567, "s": 2318, "text": "While writing program in any language, you need to use various variables to store various information. Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory." }...
Named Entity Recognition with NLTK and SpaCy | by Susan Li | Towards Data Science
Named entity recognition (NER)is probably the first step towards information extraction that seeks to locate and classify named entities in text into pre-defined categories such as the names of persons, organizations, locations, expressions of times, quantities, monetary values, percentages, etc. NER is used in many fi...
[ { "code": null, "e": 472, "s": 47, "text": "Named entity recognition (NER)is probably the first step towards information extraction that seeks to locate and classify named entities in text into pre-defined categories such as the names of persons, organizations, locations, expressions of times, quant...
Perl switch Statement
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case. A switch case implementation is dependent on Switch module and Switch module has been implemented using Filter::Util::Call and Text::B...
[ { "code": null, "e": 2406, "s": 2220, "text": "A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case." }, { "code": null, "e": 2597, "s": 2406, "text...
emplace vs insert in C++ STL - GeeksforGeeks
30 Nov, 2021 In C++, all containers (vector, stack, queue, set, map, etc) support both insert and emplace operations.The advantage of emplace is, it does in-place insertion and avoids an unnecessary copy of object. For primitive data types, it does not matter which one we use. But for objects, use of emplace() is prefe...
[ { "code": null, "e": 24512, "s": 24484, "text": "\n30 Nov, 2021" }, { "code": null, "e": 24849, "s": 24512, "text": "In C++, all containers (vector, stack, queue, set, map, etc) support both insert and emplace operations.The advantage of emplace is, it does in-place insertion and...
UnitTest Framework - Skip Test
Support for skipping tests has been added since Python 2.7. It is possible to skip individual test method or TestCase class, conditionally as well as unconditionally. The framework allows a certain test to be marked as an 'expected failure'. This test will 'fail' but will not be counted as failed in TestResult. To skip...
[ { "code": null, "e": 2411, "s": 2098, "text": "Support for skipping tests has been added since Python 2.7. It is possible to skip individual test method or TestCase class, conditionally as well as unconditionally. The framework allows a certain test to be marked as an 'expected failure'. This test w...
Java Examples - Delete a file
How to delete a file? This example shows how to delete a file using delete() method of File class. import java.io.*; public class Main { public static void main(String[] args) { try { BufferedWriter out = new BufferedWriter (new FileWriter("filename")); out.write("aString1\n"); out...
[ { "code": null, "e": 2090, "s": 2068, "text": "How to delete a file?" }, { "code": null, "e": 2167, "s": 2090, "text": "This example shows how to delete a file using delete() method of File class." }, { "code": null, "e": 3024, "s": 2167, "text": "import java....
Variable length arguments for Macros - GeeksforGeeks
21 Jan, 2022 Like functions, we can also pass variable length arguments to macros. For this we will use the following preprocessor identifiers.To support variable length arguments in macro, we must include ellipses (...) in macro definition. There is also “__VA_ARGS__” preprocessing identifier which takes care of varia...
[ { "code": null, "e": 26216, "s": 26188, "text": "\n21 Jan, 2022" }, { "code": null, "e": 27134, "s": 26216, "text": "Like functions, we can also pass variable length arguments to macros. For this we will use the following preprocessor identifiers.To support variable length argume...
Find sum of even index binomial coefficients - GeeksforGeeks
06 May, 2021 Given a positive integer n. The task is to find the sum of even indexed binomial coefficient. That is, nC0 + nC2 + nC4 + nC6 + nC8 + ...........Examples : Input : n = 4 Output : 8 4C0 + 4C2 + 4C4 = 1 + 6 + 1 = 8 Input : n = 6 Output : 32 Method 1: (Brute Force) The idea is to find all the binomial coe...
[ { "code": null, "e": 24949, "s": 24921, "text": "\n06 May, 2021" }, { "code": null, "e": 25106, "s": 24949, "text": "Given a positive integer n. The task is to find the sum of even indexed binomial coefficient. That is, nC0 + nC2 + nC4 + nC6 + nC8 + ...........Examples : " }, ...
CSS | background-repeat Property - GeeksforGeeks
02 Nov, 2021 The background-repeat property in CSS is used to repeat the background image both horizontally and vertically. It also decides whether the background-image will be repeated or not.Syntax background-repeat: repeat|repeat-x|repeat-y|no-repeat|initial| inherit; Default Value : Its default value is initial. ...
[ { "code": null, "e": 23686, "s": 23658, "text": "\n02 Nov, 2021" }, { "code": null, "e": 23875, "s": 23686, "text": "The background-repeat property in CSS is used to repeat the background image both horizontally and vertically. It also decides whether the background-image will be...
How to get the datatype of a column of a table using JDBC?
You can get the datatype of a column of a table using the getColumnType() method of the ResultSetMetaData class. //Retrieving the ResultSetMetaData object ResultSetMetaData rsmd = rs.getMetaData(); //getting the column type String column_name = rsmd.getColumnTypeName(2); Assume we have a table named employee_data in t...
[ { "code": null, "e": 1175, "s": 1062, "text": "You can get the datatype of a column of a table using the getColumnType() method of the ResultSetMetaData class." }, { "code": null, "e": 1335, "s": 1175, "text": "//Retrieving the ResultSetMetaData object\nResultSetMetaData rsmd = r...
AWT Dialog Class
Dialog control represents a top-level window with a title and a border used to take some form of input from the user. Following is the declaration for java.awt.Dialog class: public class Dialog extends Window Following are the fields for java.awt.Image class: static Dialog.ModalityType DEFAULT_MODALITY_TYPE -- Default...
[ { "code": null, "e": 1865, "s": 1747, "text": "Dialog control represents a top-level window with a title and a border used to take some form of input from the user." }, { "code": null, "e": 1921, "s": 1865, "text": "Following is the declaration for java.awt.Dialog class:" }, ...
C# - Randomly Generating Strings - GeeksforGeeks
06 Dec, 2021 In C#, a string is a sequence of Unicode characters or an array of characters. The range of Unicode characters will be U+0000 to U+FFFF. A string is the representation of the text. In this article, we will learn how to randomly generate strings and alphanumeric strings. So to do the task we use the Rando...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n06 Dec, 2021" }, { "code": null, "e": 26082, "s": 25547, "text": "In C#, a string is a sequence of Unicode characters or an array of characters. The range of Unicode characters will be U+0000 to U+FFFF. A string is the representa...
How to Calculate Jaccard Similarity in R? - GeeksforGeeks
04 Jan, 2022 Jaccard Similarity also called as Jaccard Index or Jaccard Coefficient is a simple measure to represent the similarity between data samples. The similarity is computed as the ratio of the length of the intersection within data samples to the length of the union of the data samples. It is represented as – ...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n04 Jan, 2022" }, { "code": null, "e": 26771, "s": 26487, "text": "Jaccard Similarity also called as Jaccard Index or Jaccard Coefficient is a simple measure to represent the similarity between data samples. The similarity is comp...
SQL Query to Remove Trailing Spaces - GeeksforGeeks
29 Sep, 2021 In this article, we will look at how to remove trailing spaces. Trailing spaces means the space characters from the right side. We need to use the RTRIM() function. The RTRIM function is used for removing all specified characters from the right-hand side of a string. T Syntax: RTRIM(string) Parameter: stri...
[ { "code": null, "e": 24392, "s": 24364, "text": "\n29 Sep, 2021" }, { "code": null, "e": 24662, "s": 24392, "text": "In this article, we will look at how to remove trailing spaces. Trailing spaces means the space characters from the right side. We need to use the RTRIM() function...
HTML | <textarea> wrap Attribute - GeeksforGeeks
15 Dec, 2021 The HTML textarea wrap Attribute is used to specify that in which manner the text is to be wrapped in a text area when a form is submitted. Syntax: <textarea wrap="soft|hard"> Attribute Values: soft: It specifies that the Text present in the Textarea would not be wrapped after submitting the form. This is...
[ { "code": null, "e": 24896, "s": 24868, "text": "\n15 Dec, 2021" }, { "code": null, "e": 25036, "s": 24896, "text": "The HTML textarea wrap Attribute is used to specify that in which manner the text is to be wrapped in a text area when a form is submitted." }, { "code": n...
Minimum difference pair | Practice | GeeksforGeeks
Given an unsorted array, find the minimum difference between any pair in given array. Example 1: Input: nums = [2, 4, 5, 9, 7] Output: 1 Explanation: Difference between 5 and 4 is 1. Example 2: Input: nums = [3, 10, 8, 6] Output: 2 Explanation: Difference between 8 and 6 is 2. Your Task: You don't need to read or...
[ { "code": null, "e": 326, "s": 238, "text": "Given an unsorted array, find the minimum difference between any pair in given array.\n " }, { "code": null, "e": 337, "s": 326, "text": "Example 1:" }, { "code": null, "e": 424, "s": 337, "text": "Input: nums = [2,...
GRE Data Analysis | Data Interpretation Examples - GeeksforGeeks
09 Jul, 2019 Data Interpretation simply means to understand given data and transforming the same data into the desired property. Data given can be in any form from below given data representations Table Circular Graph Venn Diagram Bar Graph Scattered Plots Line Graphs Approximately three Data Interpretation questions p...
[ { "code": null, "e": 25997, "s": 25969, "text": "\n09 Jul, 2019" }, { "code": null, "e": 26181, "s": 25997, "text": "Data Interpretation simply means to understand given data and transforming the same data into the desired property. Data given can be in any form from below given ...
A Program to check if strings are rotations of each other or not?
Here we will see one program that can tell whether two strings are rotation of each other or not. The rotation of strings is like − Suppose two strings are S1 = ‘HELLO’, and S2 = ‘LOHEL’ So they are rotation of each other. By rotating HELLO three position to the left it will be LOHEL. To solve this problem, we will con...
[ { "code": null, "e": 1194, "s": 1062, "text": "Here we will see one program that can tell whether two strings are rotation of each other or not. The rotation of strings is like −" }, { "code": null, "e": 1348, "s": 1194, "text": "Suppose two strings are S1 = ‘HELLO’, and S2 = ‘LO...
C# Program to convert integer array to string array
Use the ConvertAll method to convert integer array to string array. Set an integer array − int[] intArray = new int[5]; // Integer array with 5 elements intArray[0] = 15; intArray[1] = 30; intArray[2] = 44; intArray[3] = 50; intArray[4] = 66; Now use Array.ConvertAll() method to convert integer array to string array −...
[ { "code": null, "e": 1130, "s": 1062, "text": "Use the ConvertAll method to convert integer array to string array." }, { "code": null, "e": 1153, "s": 1130, "text": "Set an integer array −" }, { "code": null, "e": 1306, "s": 1153, "text": "int[] intArray = new...
Check if a line touches or intersects a circle - GeeksforGeeks
24 Nov, 2021 Given coordinate of the center and radius > 1 of a circle and the equation of a line. The task is to check if the given line collide with the circle or not. There are three possibilities : Line intersect the circle.Line touches the circle.Line is outside the circle. Line intersect the circle. Line touche...
[ { "code": null, "e": 26363, "s": 26335, "text": "\n24 Nov, 2021" }, { "code": null, "e": 26554, "s": 26363, "text": "Given coordinate of the center and radius > 1 of a circle and the equation of a line. The task is to check if the given line collide with the circle or not. There ...
Can I use SUM() with IF() in MySQL?
Yes, you can use SUM() with IF() in MySQL. Let us first create a demo table: mysql> create table DemoTable ( Value int, Value2 int ); Query OK, 0 rows affected (0.51 sec) Following is the query to insert some records in the table using insert command: mysql> insert into DemoTable values(100,400); Query OK, 1 row ...
[ { "code": null, "e": 1139, "s": 1062, "text": "Yes, you can use SUM() with IF() in MySQL. Let us first create a demo table:" }, { "code": null, "e": 1239, "s": 1139, "text": "mysql> create table DemoTable\n(\n Value int,\n Value2 int\n);\nQuery OK, 0 rows affected (0.51 sec)"...
Gensim - Creating a bag of words (BoW) Corpus
We have understood how to create dictionary from a list of documents and from text files (from one as well as from more than one). Now, in this section, we will create a bag-of-words (BoW) corpus. In order to work with Gensim, it is one of the most important objects we need to familiarise with. Basically, it is the cor...
[ { "code": null, "e": 2438, "s": 2052, "text": "We have understood how to create dictionary from a list of documents and from text files (from one as well as from more than one). Now, in this section, we will create a bag-of-words (BoW) corpus. In order to work with Gensim, it is one of the most impo...
10 Python image manipulation tools. | by Parul Pandey | Towards Data Science
The content for this article has been adapted from my own article published previously in opensource.com. Today's world is full of data, and images form a significant part of this data. However, to be put to any use, these images need to be processed. Image Processing is thus the process of analyzing and manipulating a...
[ { "code": null, "e": 278, "s": 172, "text": "The content for this article has been adapted from my own article published previously in opensource.com." }, { "code": null, "e": 614, "s": 278, "text": "Today's world is full of data, and images form a significant part of this data. ...
HITS Algorithm: Link Analysis Explanation and Python Implementation from Scratch | by Chonyy | Towards Data Science
We use the search engine in our daily life, but have you ever wonder how the search engine finds the ideal site that you are looking for? It’s far more complicated than a simple text search. For example, if we are looking for a website about an apple, will a website full of the word “apple ” be on top of Google search ...
[ { "code": null, "e": 500, "s": 171, "text": "We use the search engine in our daily life, but have you ever wonder how the search engine finds the ideal site that you are looking for? It’s far more complicated than a simple text search. For example, if we are looking for a website about an apple, wil...
C++ Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers
The following is an example to check whether a number can be expressed as sum of two prime numbers. Live Demo #include <iostream> using namespace std; int func(int num) { int i; int flag = 1; for(i = 2; i <= num/2; ++i) { if(num % i == 0) { flag = 0; break; } } return flag;...
[ { "code": null, "e": 1162, "s": 1062, "text": "The following is an example to check whether a number can be expressed as sum of two prime numbers." }, { "code": null, "e": 1173, "s": 1162, "text": " Live Demo" }, { "code": null, "e": 1651, "s": 1173, "text": "...
Spring MVC - Environment Setup
This chapter will guide you on how to prepare a development environment to start your work with Spring Framework. It will also teach you how to set up JDK, Maven and Eclipse on your machine before you set up Spring Framework − You can download the latest version of SDK from Oracle's Java site − Java SE Downloads. You w...
[ { "code": null, "e": 3018, "s": 2791, "text": "This chapter will guide you on how to prepare a development environment to start your work with Spring Framework. It will also teach you how to set up JDK, Maven and Eclipse on your machine before you set up Spring Framework −" }, { "code": null...
memoryview() in Python - GeeksforGeeks
21 Sep, 2021 Python memoryview() function returns the memory views objects. Before learning more about memoryview() function let’s see why do we use this function. As Memory view is a safe way to expose the buffer protocol in Python and a memoryview behaves just like bytes in many useful contexts (for example, it suppo...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n21 Sep, 2021" }, { "code": null, "e": 24052, "s": 23901, "text": "Python memoryview() function returns the memory views objects. Before learning more about memoryview() function let’s see why do we use this function." }, { ...
Bootstrap | Cards - GeeksforGeeks
12 Oct, 2021 A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. It replaces the use panels, wells and thumbnails. As all of it can be used in a single container called card. BASIC CAR...
[ { "code": null, "e": 28075, "s": 28047, "text": "\n12 Oct, 2021" }, { "code": null, "e": 28263, "s": 28075, "text": "A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and po...
Python VLC - MediaList - GeeksforGeeks
29 Aug, 2020 In this article we will see how we can create a MediaList object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaList object contains the multiple media, in other words it h...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n29 Aug, 2020" }, { "code": null, "e": 24308, "s": 23901, "text": "In this article we will see how we can create a MediaList object in the python vlc module. VLC media player is a free and open-source portable cross-platform media...
Recreating Myself from WhatsApp Chats | by Yang Chun Wei | Towards Data Science
I have always wondered if we could one day upload a copy of ourselves up on the internet. Today, although we are unable to make a high-resolution duplicate of our consciousness, I believe that I can at least capture a snapshot of my personality using present technologies. Instinctively, the usage of Artificial Intellig...
[ { "code": null, "e": 536, "s": 171, "text": "I have always wondered if we could one day upload a copy of ourselves up on the internet. Today, although we are unable to make a high-resolution duplicate of our consciousness, I believe that I can at least capture a snapshot of my personality using pres...
HashSet toArray(T[]) method in Java with Example - GeeksforGeeks
24 Dec, 2018 The toArray(T[]) method method of HashSet class in Java is used to form an array of the same elements as that of the HashSet. It returns an array containing all of the elements in this HashSet in the correct order; the run-time type of the returned array is that of the specified array. If the HashSet fits ...
[ { "code": null, "e": 24250, "s": 24222, "text": "\n24 Dec, 2018" }, { "code": null, "e": 25054, "s": 24250, "text": "The toArray(T[]) method method of HashSet class in Java is used to form an array of the same elements as that of the HashSet. It returns an array containing all of...
numpy.asscalar() in Python - GeeksforGeeks
28 Nov, 2018 numpy.asscalar() function is used when we want to convert an array of size 1 to its scalar equivalent. Syntax : numpy.asscalar(arr) Parameters :arr : [ndarray] Input array of size 1. Return : Scalar representation of arr. The output data type is the same type returned by the input’s item method. Code #1 : ...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n28 Nov, 2018" }, { "code": null, "e": 24315, "s": 24212, "text": "numpy.asscalar() function is used when we want to convert an array of size 1 to its scalar equivalent." }, { "code": null, "e": 24344, "s": 24315, ...