title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
anacron command in linux with examples - GeeksforGeeks | 12 Oct, 2021
anacron command is used to execute commands periodically with a frequency specified in days. Its main advantage over cron is that it can be used on a machine which is not running continuously. In cron if a machine is not running on time of a scheduled job then it will skip it, but anacron is a bit differen... | [
{
"code": null,
"e": 23956,
"s": 23928,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 24447,
"s": 23956,
"text": "anacron command is used to execute commands periodically with a frequency specified in days. Its main advantage over cron is that it can be used on a machine which... |
How will you show memory representation of C variables? - GeeksforGeeks | 18 Feb, 2022
Write a C program to show memory representation of C variables like int, float, pointer, etc. Algorithm: Get the address and size of the variable. Typecast the address to char pointer. Now loop for size of the variable and print the value at the typecasted pointer.
Program:
c
#include <stdio.h>typedef uns... | [
{
"code": null,
"e": 24500,
"s": 24472,
"text": "\n18 Feb, 2022"
},
{
"code": null,
"e": 24766,
"s": 24500,
"text": "Write a C program to show memory representation of C variables like int, float, pointer, etc. Algorithm: Get the address and size of the variable. Typecast the add... |
A Practical Summary of Pandas in 30 Python Snippets | by Lucas Soares | Towards Data Science | Pandas is one of the most important Python libraries for Data Science and Machine Learning. I used it practically every day but I always feel like I am missing out on useful functionalities, so I decided to write a compressed summary to help guide my progress with my pandas' skills.
In this article, I will share a prac... | [
{
"code": null,
"e": 455,
"s": 171,
"text": "Pandas is one of the most important Python libraries for Data Science and Machine Learning. I used it practically every day but I always feel like I am missing out on useful functionalities, so I decided to write a compressed summary to help guide my prog... |
C / C++ Program for Dijkstra's shortest path algorithm | Greedy Algo-7 - GeeksforGeeks | 08 Jul, 2021
Given a graph and a source vertex in the graph, find shortest paths from source to all vertices in the given graph.Dijkstra’s algorithm is very similar to Prim’s algorithm for minimum spanning tree. Like Prim’s MST, we generate a SPT (shortest path tree) with given source as root. We maintain two sets, one... | [
{
"code": null,
"e": 25344,
"s": 25316,
"text": "\n08 Jul, 2021"
},
{
"code": null,
"e": 26936,
"s": 25344,
"text": "Given a graph and a source vertex in the graph, find shortest paths from source to all vertices in the given graph.Dijkstra’s algorithm is very similar to Prim’s a... |
C++ Program for ShellSort - GeeksforGeeks | 09 May, 2019
In shellSort, we make the array h-sorted for a large value of h. We keep reducing the value of h until it becomes 1. An array is said to be h-sorted if all sublists of every h’th element is sorted.
// C++ implementation of Shell Sort#include <iostream> /* function to sort arr using shellSort */void shellS... | [
{
"code": null,
"e": 24215,
"s": 24187,
"text": "\n09 May, 2019"
},
{
"code": null,
"e": 24413,
"s": 24215,
"text": "In shellSort, we make the array h-sorted for a large value of h. We keep reducing the value of h until it becomes 1. An array is said to be h-sorted if all sublist... |
SciPy - Stats | All of the statistics functions are located in the sub-package scipy.stats and a fairly complete listing of these functions can be obtained using info(stats) function. A list of random variables available can also be obtained from the docstring for the stats sub-package. This module contains a large number of probabili... | [
{
"code": null,
"e": 2279,
"s": 1887,
"text": "All of the statistics functions are located in the sub-package scipy.stats and a fairly complete listing of these functions can be obtained using info(stats) function. A list of random variables available can also be obtained from the docstring for the ... |
How to merge two strings alternatively in JavaScript | We are required to write a JavaScript function that takes in two. Our function should then return a new array that contains characters alternatively from both the strings.
For example: If the two strings are −
const str1 = 'abc';
const str2 = 'def';
Then the output should be −
const output = 'adbecf';
The code for this... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in two. Our function should then return a new array that contains characters alternatively from both the strings."
},
{
"code": null,
"e": 1272,
"s": 1234,
"text": "For exampl... |
Converting a Picture into an Excel File | by Sutan Ashari Mufti | Towards Data Science | A question popped up in my head. Images are basically raster files. As a raster file, naturally, an image consists of rows and columns filled by colour values. You can see this by opening a picture in Photoshop and zoom in. Or just open the picture and zoom in, you’ll see it’ll get pixelated. So technically, an image c... | [
{
"code": null,
"e": 567,
"s": 172,
"text": "A question popped up in my head. Images are basically raster files. As a raster file, naturally, an image consists of rows and columns filled by colour values. You can see this by opening a picture in Photoshop and zoom in. Or just open the picture and zo... |
WPF - Debugging | It is a systematic mechanism of identifying and fixing the bugs or defects in a piece of code which are not behaving the same as you are expecting. Debugging a complex application where the subsystems are tightly coupled are not that easy, because fixing bugs in one subsystem can create bugs in another subsystem.
In WP... | [
{
"code": null,
"e": 2335,
"s": 2020,
"text": "It is a systematic mechanism of identifying and fixing the bugs or defects in a piece of code which are not behaving the same as you are expecting. Debugging a complex application where the subsystems are tightly coupled are not that easy, because fixin... |
Geoparsing with Python and Natural Language Processing | by Abdishakur | Towards Data Science | The massive amount of available text data has location features that can benefit from automated Information extraction. Natural Language Processing(NLP) has significantly advanced in the last five years. However, advances in Geographic information extraction from text is still in its nascency. In this tutorial, we use ... | [
{
"code": null,
"e": 536,
"s": 172,
"text": "The massive amount of available text data has location features that can benefit from automated Information extraction. Natural Language Processing(NLP) has significantly advanced in the last five years. However, advances in Geographic information extract... |
Map get() method in Java with Examples - GeeksforGeeks | 31 Dec, 2018
The get() method of Map interface in Java is used to retrieve or fetch the value mapped by a particular key mentioned in the parameter. It returns NULL when the map contains no such mapping for the key.
Syntax:
thisMap.get(Object key_element)
Parameter: The method takes one parameter key_element of object ... | [
{
"code": null,
"e": 24306,
"s": 24278,
"text": "\n31 Dec, 2018"
},
{
"code": null,
"e": 24509,
"s": 24306,
"text": "The get() method of Map interface in Java is used to retrieve or fetch the value mapped by a particular key mentioned in the parameter. It returns NULL when the ma... |
Correlation and Regression in Python | Correlation refers to some statistical relationships involving dependence between two data sets. While linear regression is a linear approach to establish the relationship between a dependent variable and one or more independent variables. A single independent variable is called linear regression whereas multiple indep... | [
{
"code": null,
"e": 1430,
"s": 1062,
"text": "Correlation refers to some statistical relationships involving dependence between two data sets. While linear regression is a linear approach to establish the relationship between a dependent variable and one or more independent variables. A single inde... |
Design a Contact us Page using HTML and CSS - GeeksforGeeks | 21 Feb, 2022
In this article, we will see how to design a Contact us page using HTML and CSS. Creating an attractive page may seem to be difficult for, who don’t know HTML and CSS. If someone does not know using CSS, then they will not be able to make the page look better or attractive. So the main focus of this articl... | [
{
"code": null,
"e": 25376,
"s": 25348,
"text": "\n21 Feb, 2022"
},
{
"code": null,
"e": 25723,
"s": 25376,
"text": "In this article, we will see how to design a Contact us page using HTML and CSS. Creating an attractive page may seem to be difficult for, who don’t know HTML and ... |
MariaDB - Delete Query | The DELETE command deletes table rows from the specified table, and returns the quantity deleted. Access the quantity deleted with the ROW_COUNT() function. A WHERE clause specifies rows, and in its absence, all rows are deleted. A LIMIT clause controls the number of rows deleted.
In a DELETE statement for multiple row... | [
{
"code": null,
"e": 2644,
"s": 2362,
"text": "The DELETE command deletes table rows from the specified table, and returns the quantity deleted. Access the quantity deleted with the ROW_COUNT() function. A WHERE clause specifies rows, and in its absence, all rows are deleted. A LIMIT clause controls... |
C Program to Minimum and Maximum prime numbers in an array | Given an array of n positive integers. We have to find the prime
number with minimum and maximum value.
If the given array is −
arr [] = {10, 4, 1, 12, 13, 7, 6, 2, 27, 33}
then minimum prime number is 2 and maximum prime number is 13
1. Find maximum number from given number. Let us call it maxNumber
2. Generate prime ... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "Given an array of n positive integers. We have to find the prime\nnumber with minimum and maximum value."
},
{
"code": null,
"e": 1190,
"s": 1166,
"text": "If the given array is −"
},
{
"code": null,
"e": 1297,
"s": 1... |
Master the when and how of Pandas pivot_table() | Towards Data Science | Here is the worst-case scenario: You are watching a paid course and the instructor is talking about a certain topic. Then, all of sudden, he introduces a completely new function saying “This function/method is perfect in this case, it is very easy so just check out its documentation for more details”. You say OK, go to... | [
{
"code": null,
"e": 556,
"s": 171,
"text": "Here is the worst-case scenario: You are watching a paid course and the instructor is talking about a certain topic. Then, all of sudden, he introduces a completely new function saying “This function/method is perfect in this case, it is very easy so just... |
Extending CloudFormation using lambda-backed custom resources | by Harry Daniels | Towards Data Science | This article is split into two parts:
Background on CloudFormation and an introduction to Custom Resources.
Monitoring as Code: Managing Datadog monitors with CloudFormation.
If you’d like to skip ahead, all the code discussed in this post is available on my GitHub HERE.
CloudFormation is a fantastic ‘infrastructure as... | [
{
"code": null,
"e": 210,
"s": 172,
"text": "This article is split into two parts:"
},
{
"code": null,
"e": 280,
"s": 210,
"text": "Background on CloudFormation and an introduction to Custom Resources."
},
{
"code": null,
"e": 347,
"s": 280,
"text": "Monitorin... |
Output of C Programs | Set 1 | 26 Nov, 2021
Predict the output of below programs.
Question 1
c
#include<stdio.h>int main(){ int n; for(n = 7; n!=0; n--) printf("n = %d", n--); getchar(); return 0;}
Output:Above program goes in infinite loop because n is never zero when loop condition (n != 0) is checked.Question 2
c
#include<stdio.h>i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 91,
"s": 52,
"text": "Predict the output of below programs. "
},
{
"code": null,
"e": 103,
"s": 91,
"text": "Question 1 "
},
{
"code": null,
"e": 105,
"s": 103,
... |
Super Constructor in Dart | 20 Jul, 2020
In dart, the subclass can inherit all the variables and methods of the parent class, with the use of extends keyword but it can’t inherit constructor of the parent class. To do so we make use of super constructor in the dart. There are two ways to call super constructor:
ImplicitlyExplicitly
Implicitly
Ex... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jul, 2020"
},
{
"code": null,
"e": 325,
"s": 52,
"text": "In dart, the subclass can inherit all the variables and methods of the parent class, with the use of extends keyword but it can’t inherit constructor of the parent class. To ... |
Output of Java programs | Set 13 (Collections) | 31 Mar, 2021
Prerequisite – Collections in Java
1) What is the output of the following program?
Java
import java.util.*; public class priorityQueue { public static void main(String[] args) { PriorityQueue<Integer> queue = new PriorityQueue<>(); queue.add(11); queue.add(10); ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Mar, 2021"
},
{
"code": null,
"e": 89,
"s": 54,
"text": "Prerequisite – Collections in Java"
},
{
"code": null,
"e": 138,
"s": 89,
"text": "1) What is the output of the following program? "
},
{
"code": n... |
ReactJS | Props – Set 1 | 22 Jan, 2021
We have already discussed Components and it’s type in our previous articles on ReactJS | Components. Till now we were working with components using static data only. In this article, we will learn about how we can pass information to a Component.React allows us to pass information to a Component using some... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 512,
"s": 52,
"text": "We have already discussed Components and it’s type in our previous articles on ReactJS | Components. Till now we were working with components using static data only. In this ... |
reflect.Type() Function in Golang with Examples | 05 May, 2020
Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package. The reflect.Type() Function in Golang is used to get v’s type. To access this function, one needs to imports the reflect package in ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 348,
"s": 28,
"text": "Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package. ... |
Find One’s Complement of an Integer | 06 Jul, 2022
Given an integer n, find the one’s complement of the integer. Examples:
Input : n = 5
Output : 2
Input : n = 255
Output : 0
Input : n = 26
Output : 5
Basic Approach :
The naïve approach to solve the problem would be to first convert the given number into its binary representation and then change ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 128,
"s": 54,
"text": "Given an integer n, find the one’s complement of the integer. Examples: "
},
{
"code": null,
"e": 211,
"s": 128,
"text": "Input : n = 5\nOutput : 2\n\nI... |
How to redirect to another page in ReactJS ? | 18 Oct, 2021
In this article, we are going to learn How to redirect to another page in ReactJS using react-router-dom package. ReactJS is a free and open source front-end library used for building single page applications.
react-router-dom: react-router-dom is a reactJS package, It enables you to implement dynamic rou... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 264,
"s": 53,
"text": "In this article, we are going to learn How to redirect to another page in ReactJS using react-router-dom package. ReactJS is a free and open source front-end library used for... |
Zoom Scroll View in Android | 21 Apr, 2021
In this article, we are going to implement zoom on ScrollView. Most of the time when we create a scroll view then it contains a lot of data and if we want to view any content on zooming then we can implement this feature. This feature can be useful when we are scroll in an App and that contains data using ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 598,
"s": 28,
"text": "In this article, we are going to implement zoom on ScrollView. Most of the time when we create a scroll view then it contains a lot of data and if we want to view any content ... |
Python | Pandas dataframe.isna() | 19 Nov, 2018
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 dataframe.isna() function is used to detect missing values. It return a boolean same-s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"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 and makes imp... |
Java Program to Convert String to String Array | 19 May, 2022
Given a String, the task is to convert the string into an Array of Strings in Java. It is illustrated in the below illustration which is as follows:
Illustration:
Input: String : "Geeks for Geeks"
Output: String[]: [Geeks for Geeks]
Input: String : "A computer science portal"
Output: String[] : [A comp... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n19 May, 2022"
},
{
"code": null,
"e": 202,
"s": 53,
"text": "Given a String, the task is to convert the string into an Array of Strings in Java. It is illustrated in the below illustration which is as follows:"
},
{
"code": nul... |
Flutter – Staggered Grid View | 15 Feb, 2021
Staggered Grid View is a type of layout that is used to display images and posts. As you see in various social platforms such as Pinterest and many more. The main feature of Staggered Grid View is that it makes the layout beautiful and develop a great User Experience. Staggered Grid View consists of contai... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 438,
"s": 28,
"text": "Staggered Grid View is a type of layout that is used to display images and posts. As you see in various social platforms such as Pinterest and many more. The main feature of S... |
Implement DELETE query in MySQL stored procedure | You can use stored procedure and can pass the value via parameter. Let us first create a table −
mysql> create table DemoTable1464
-> (
-> Id int,
-> FirstName varchar(20)
-> );
Query OK, 0 rows affected (0.51 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1464 valu... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "You can use stored procedure and can pass the value via parameter. Let us first create a table −"
},
{
"code": null,
"e": 1289,
"s": 1159,
"text": "mysql> create table DemoTable1464\n -> (\n -> Id int,\n -> FirstName varchar(20... |
Sentiment Analysis using TextBlob | by Parthvi Shah | Towards Data Science | Sentiment Analysis can help us decipher the mood and emotions of general public and gather insightful information regarding the context. Sentiment Analysis is a process of analyzing data and classifying it based on the need of the research.
These sentiments can be used for a better understanding of various events and i... | [
{
"code": null,
"e": 413,
"s": 172,
"text": "Sentiment Analysis can help us decipher the mood and emotions of general public and gather insightful information regarding the context. Sentiment Analysis is a process of analyzing data and classifying it based on the need of the research."
},
{
... |
Apache HttpClient - Response Handlers | Processing the HTTP responses using the response handlers is recommended. In this chapter, we are going to discuss how to create response handlers and how to use them to process a response.
If you use the response handler, all the HTTP connections will be released automatically.
The HttpClient API provides an interfac... | [
{
"code": null,
"e": 2017,
"s": 1827,
"text": "Processing the HTTP responses using the response handlers is recommended. In this chapter, we are going to discuss how to create response handlers and how to use them to process a response."
},
{
"code": null,
"e": 2108,
"s": 2017,
"... |
How to Setup View Engine in Node.js ? - GeeksforGeeks | 27 Apr, 2020
View engines are useful for rendering web pages. There are many view engines available in the market like Mustache, Handlebars, EJS, etc but the most popular among them is EJS which simply stands for Embedded JavaScript. It is a simple templating language/engine that lets its user generate HTML with plain ... | [
{
"code": null,
"e": 24133,
"s": 24105,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 24452,
"s": 24133,
"text": "View engines are useful for rendering web pages. There are many view engines available in the market like Mustache, Handlebars, EJS, etc but the most popular among... |
VB.Net - MenuStrip Control | The MenuStrip control represents the container for the menu structure.
The MenuStrip control works as the top-level container for the menu structure. The ToolStripMenuItem class and the ToolStripDropDownMenu class provide the functionalities to create menu items, sub menus and drop-down menus.
The following diagram sho... | [
{
"code": null,
"e": 2371,
"s": 2300,
"text": "The MenuStrip control represents the container for the menu structure."
},
{
"code": null,
"e": 2595,
"s": 2371,
"text": "The MenuStrip control works as the top-level container for the menu structure. The ToolStripMenuItem class and ... |
C# BitConverter.ToSingle() Method | The BitConverter.ToSingle() method in C# is used to return a single-precision floating point number converted from four bytes at a specified position in a byte array.
The syntax is as follows −
public static float ToSingle (byte[] value, int begnIndex);
Above, val is the byte array, whereas begnIndex is the beginning p... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "The BitConverter.ToSingle() method in C# is used to return a single-precision floating point number converted from four bytes at a specified position in a byte array."
},
{
"code": null,
"e": 1256,
"s": 1229,
"text": "The syntax is a... |
Teradata - MultiLoad | MultiLoad can load multiple tables at a time and it can also perform different types of tasks such as INSERT, DELETE, UPDATE and UPSERT. It can load up to 5 tables at a time and perform up to 20 DML operations in a script. The target table is not required for MultiLoad.
MultiLoad supports two modes −
IMPORT
DELETE
Mult... | [
{
"code": null,
"e": 2901,
"s": 2630,
"text": "MultiLoad can load multiple tables at a time and it can also perform different types of tasks such as INSERT, DELETE, UPDATE and UPSERT. It can load up to 5 tables at a time and perform up to 20 DML operations in a script. The target table is not requir... |
Sort a Rotated Sorted Array - GeeksforGeeks | 07 Jul, 2021
You are given a rotated sorted array and your aim is to restore its original sort in place.Expected to use O(1) extra space and O(n) time complexity.
Examples:
Input : [3, 4, 1, 2]
Output : [1, 2, 3, 4]
Input : [2, 3, 4, 1]
Output : [1, 2, 3, 4]
We find the point of rotation. Then we rotate array using... | [
{
"code": null,
"e": 25261,
"s": 25233,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 25412,
"s": 25261,
"text": "You are given a rotated sorted array and your aim is to restore its original sort in place.Expected to use O(1) extra space and O(n) time complexity. "
},
{
... |
How to compute the histogram of a tensor in PyTorch? | The histogram of a tensor is computed using torch.histc(). It returns a histogram represented as a tensor. It takes four parameters: input, bins, min and max. It sorts the elements into equal width bins between min and max. It ignores the elements smaller than the min and greater than the max.
Import the required libra... | [
{
"code": null,
"e": 1357,
"s": 1062,
"text": "The histogram of a tensor is computed using torch.histc(). It returns a histogram represented as a tensor. It takes four parameters: input, bins, min and max. It sorts the elements into equal width bins between min and max. It ignores the elements small... |
PostgreSQL - ALIAS Syntax | You can rename a table or a column temporarily by giving another name, which is known as ALIAS. The use of table aliases means to rename a table in a particular PostgreSQL statement. Renaming is a temporary change and the actual table name does not change in the database.
The column aliases are used to rename a table's... | [
{
"code": null,
"e": 3098,
"s": 2825,
"text": "You can rename a table or a column temporarily by giving another name, which is known as ALIAS. The use of table aliases means to rename a table in a particular PostgreSQL statement. Renaming is a temporary change and the actual table name does not chan... |
Cordova - Media | Cordova media plugin is used for recording and playing audio sounds in Cordova apps.
Media plugin can be installed by running the following code in command prompt window.
C:\Users\username\Desktop\CordovaProject>cordova plugin add cordova-plugin-media
In this tutorial, we will create simple audio player. Let's create ... | [
{
"code": null,
"e": 2265,
"s": 2180,
"text": "Cordova media plugin is used for recording and playing audio sounds in Cordova apps."
},
{
"code": null,
"e": 2351,
"s": 2265,
"text": "Media plugin can be installed by running the following code in command prompt window."
},
{
... |
Coloring Plotly Box-Plots. Applying a custom color scale to Plotly... | by Shah Newaz Khan | Towards Data Science | I was recently asked by my boss to apply a color scale to a series of Plotly Box plots I was working on for a Dash application. The notion was to plot multiple box plots on the same graph and have each box plot be darker or lighter based on its distance from the overall median in the dataset.
The issue here is that Plo... | [
{
"code": null,
"e": 466,
"s": 172,
"text": "I was recently asked by my boss to apply a color scale to a series of Plotly Box plots I was working on for a Dash application. The notion was to plot multiple box plots on the same graph and have each box plot be darker or lighter based on its distance f... |
C++ Regex Library - regex_match | It returns whether the target sequence matches the regular expression rgx. The target sequence is either s or the character sequence between first and last, depending on the version used.
Following is the declaration for std::regex_match.
template <class charT, class traits>
bool regex_match (const charT* s, const b... | [
{
"code": null,
"e": 2791,
"s": 2603,
"text": "It returns whether the target sequence matches the regular expression rgx. The target sequence is either s or the character sequence between first and last, depending on the version used."
},
{
"code": null,
"e": 2842,
"s": 2791,
"te... |
Demystifying Customer behavior with Market Basket analysis | by Shubham Goyal | Towards Data Science | In this blog, we are going to see how we can Anticipate customer behavior with Market Basket analysis By using Association rules.
Market Basket Analysis is one of the key techniques used by large retailers to uncover associations between items. It works by looking for combinations of items that occur together frequentl... | [
{
"code": null,
"e": 301,
"s": 171,
"text": "In this blog, we are going to see how we can Anticipate customer behavior with Market Basket analysis By using Association rules."
},
{
"code": null,
"e": 614,
"s": 301,
"text": "Market Basket Analysis is one of the key techniques used... |
Framework7 - Start App With Login Screen | You can create the login screen on applicaton's first screen by using the modal-in class.
The following example demonstrates the use of start app with login screen in the Framework7 −
<!DOCTYPE html>
<html>
<head>
<meta name = "viewport" content = "width = device-width, initial-scale = 1,
maximum-sc... | [
{
"code": null,
"e": 2741,
"s": 2651,
"text": "You can create the login screen on applicaton's first screen by using the modal-in class."
},
{
"code": null,
"e": 2835,
"s": 2741,
"text": "The following example demonstrates the use of start app with login screen in the Framework7 ... |
Initialize HashMap in Java | The HashMap class uses a hashtable to implement the Map interface. This allows the execution time of basic operations, such as get( ) and put( ), to remain constant even for large sets.
Following is the list of constructors supported by the HashMap class.
Following is an example displaying how to initialize and work wi... | [
{
"code": null,
"e": 1248,
"s": 1062,
"text": "The HashMap class uses a hashtable to implement the Map interface. This allows the execution time of basic operations, such as get( ) and put( ), to remain constant even for large sets."
},
{
"code": null,
"e": 1318,
"s": 1248,
"text... |
Unix / Linux Shell - The if...elif...fi statement | The if...elif...fi statement is the one level advance form of control statement that allows Shell to make correct decision out of several conditions.
if [ expression 1 ]
then
Statement(s) to be executed if expression 1 is true
elif [ expression 2 ]
then
Statement(s) to be executed if expression 2 is true
elif [ e... | [
{
"code": null,
"e": 2897,
"s": 2747,
"text": "The if...elif...fi statement is the one level advance form of control statement that allows Shell to make correct decision out of several conditions."
},
{
"code": null,
"e": 3206,
"s": 2897,
"text": "if [ expression 1 ]\nthen\n St... |
Alternate positive and negative numbers | Practice | GeeksforGeeks | Given an unsorted array Arr of N positive and negative numbers. Your task is to create an array of alternate positive and negative numbers without changing the relative order of positive and negative numbers.
Note: Array should start with positive number.
Example 1:
Input:
N = 9
Arr[] = {9, 4, -2, -1, 5, 0, -5, -3, ... | [
{
"code": null,
"e": 496,
"s": 238,
"text": "Given an unsorted array Arr of N positive and negative numbers. Your task is to create an array of alternate positive and negative numbers without changing the relative order of positive and negative numbers.\nNote: Array should start with positive number... |
SAP Scripts - Print Program | In SAP Scripts, Print Program is used to print the actual form and get the data from database tables, choosing a form and print the text elements in a defined format. It retrieves the data from the database and combines it with the user input, formats the data and prints it.
All print programs and forms are stored in t... | [
{
"code": null,
"e": 2799,
"s": 2523,
"text": "In SAP Scripts, Print Program is used to print the actual form and get the data from database tables, choosing a form and print the text elements in a defined format. It retrieves the data from the database and combines it with the user input, formats t... |
JavaScript - Array length Property | JavaScript array length property returns an unsigned, 32-bit integer that specifies the number of elements in an array.
Its syntax is as follows −
array.length
Returns the length of the array.
Try the following example.
<html>
<head>
<title>JavaScript Array length Property</title>
</head>
<body>
... | [
{
"code": null,
"e": 2586,
"s": 2466,
"text": "JavaScript array length property returns an unsigned, 32-bit integer that specifies the number of elements in an array."
},
{
"code": null,
"e": 2613,
"s": 2586,
"text": "Its syntax is as follows −"
},
{
"code": null,
"e"... |
Program to print a inverse pyramid character pattern - GeeksforGeeks | 09 Apr, 2021
Given a positive integer n, print the inverse pyramid pattern upto n rows as shown in the examples.Examples :
Input : 4
Output :
A B C D D C B A
A B C C B A
A B B A
A A
Input : 6
Output :
A B C D E F F E D C B A
A B C D E E D C B A
A B C D D C B A
A B C C B A
A B ... | [
{
"code": null,
"e": 24232,
"s": 24204,
"text": "\n09 Apr, 2021"
},
{
"code": null,
"e": 24344,
"s": 24232,
"text": "Given a positive integer n, print the inverse pyramid pattern upto n rows as shown in the examples.Examples : "
},
{
"code": null,
"e": 24558,
"s"... |
Box Office Revenue Analysis and Visualization | by Durgesh Samariya | August 2020 | Towards Data Science | Welcome back to my 100 Days of Data Science Challenge Journey. On day 4 and 5, I work on TMDB Box Office Prediction Dataset available on Kaggle.
I’ll start by importing some useful libraries that we need in this task.
import pandas as pd# for visualizationsimport matplotlib.pyplot as pltimport seaborn as sns%matplotlib... | [
{
"code": null,
"e": 317,
"s": 172,
"text": "Welcome back to my 100 Days of Data Science Challenge Journey. On day 4 and 5, I work on TMDB Box Office Prediction Dataset available on Kaggle."
},
{
"code": null,
"e": 390,
"s": 317,
"text": "I’ll start by importing some useful libra... |
Create a pandas column using for loop - GeeksforGeeks | 14 Jan, 2019
Let’s see how to create a column in pandas dataframe using for loop. Such operation is needed sometimes when we need to process the data of dataframe created earlier for that purpose, we need this type of computation so we can process the existing data and make a separate column to store the data.
It can b... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n14 Jan, 2019"
},
{
"code": null,
"e": 24591,
"s": 24292,
"text": "Let’s see how to create a column in pandas dataframe using for loop. Such operation is needed sometimes when we need to process the data of dataframe created earli... |
Is it possible to have an HTML canvas element in the background of my page? | Yes, try to set the CSS style with position: fixed (or absolute):
canvas{
position:absolute;
left:0;
top:0;
z-index:-1;
}
You can also set it to the following:
<style>
#canvasSection{
position:fixed;
}
</style> | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "Yes, try to set the CSS style with position: fixed (or absolute):"
},
{
"code": null,
"e": 1196,
"s": 1128,
"text": "canvas{\n position:absolute;\n left:0;\n top:0;\n z-index:-1;\n}"
},
{
"code": null,
"e": 1234,
... |
Python program display any message on heart - GeeksforGeeks | 31 May, 2021
This article focuses on discussing how to draw a heart with a beautiful message to your loved ones to express what you feel about them. Three types of variants of the above problem statement will be discussed here:
Red Heart with a message.
Pink-Red Heart with a message.
Pink Heart with a message in a diff... | [
{
"code": null,
"e": 24318,
"s": 24290,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 24533,
"s": 24318,
"text": "This article focuses on discussing how to draw a heart with a beautiful message to your loved ones to express what you feel about them. Three types of variants of ... |
Python datetime to integer timestamp - GeeksforGeeks | 04 Sep, 2021
In this article, we are going to see how to convert python DateTime to integer timestamp.
The timestamp() function returns the time expressed as the number of seconds that have passed since January 1, 1970. That zero moment is known as the epoch. First, we will get the current time or explicitly mention t... | [
{
"code": null,
"e": 24132,
"s": 24104,
"text": "\n04 Sep, 2021"
},
{
"code": null,
"e": 24223,
"s": 24132,
"text": "In this article, we are going to see how to convert python DateTime to integer timestamp. "
},
{
"code": null,
"e": 24665,
"s": 24223,
"text": ... |
C library function - vsprintf() | The C library function int vsprintf(char *str, const char *format, va_list arg) sends formatted output to a string using an argument list passed to it.
Following is the declaration for vsprintf() function.
int vsprintf(char *str, const char *format, va_list arg)
str − This is the array of char elements where the result... | [
{
"code": null,
"e": 2159,
"s": 2007,
"text": "The C library function int vsprintf(char *str, const char *format, va_list arg) sends formatted output to a string using an argument list passed to it."
},
{
"code": null,
"e": 2213,
"s": 2159,
"text": "Following is the declaration f... |
JavaScript - While Loops | While writing a program, you may encounter a situation where you need to perform an action over and over again. In such situations, you would need to write loop statements to reduce the number of lines.
JavaScript supports all the necessary loops to ease down the pressure of programming.
The most basic loop in JavaScri... | [
{
"code": null,
"e": 2669,
"s": 2466,
"text": "While writing a program, you may encounter a situation where you need to perform an action over and over again. In such situations, you would need to write loop statements to reduce the number of lines."
},
{
"code": null,
"e": 2755,
"s"... |
BigQuery UNNEST example | Towards Data Science | We frequently apply machine learning techniques to event-based data in order to generate high-value insights; from predicting customer churn using people’s recent activity of say, a subscription-based product, to scoring how engaged a user is on a piece of content for feeding into a recommendation engine.
Event-based d... | [
{
"code": null,
"e": 353,
"s": 46,
"text": "We frequently apply machine learning techniques to event-based data in order to generate high-value insights; from predicting customer churn using people’s recent activity of say, a subscription-based product, to scoring how engaged a user is on a piece of... |
\enspace - Tex Command | \enspace - Used to add 0.5 em space.
{ \enspace }
\enspace command adds 0.5 em space.
|\enspace|\enspace|
|||
|\enspace|\enspace|
|||
|\enspace|\enspace|
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu... | [
{
"code": null,
"e": 8023,
"s": 7986,
"text": "\\enspace - Used to add 0.5 em space."
},
{
"code": null,
"e": 8036,
"s": 8023,
"text": "{ \\enspace }"
},
{
"code": null,
"e": 8072,
"s": 8036,
"text": "\\enspace command adds 0.5 em space."
},
{
"code": ... |
Plotting graph using Seaborn | Python | 09 May, 2022
This article will introduce you to graphing in Python with Seaborn, which is the most popular statistical visualization library in Python.
Installation: The easiest way to install seaborn is to use pip. Type following command in terminal:
pip install seaborn
OR, you can download it from here and install ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 May, 2022"
},
{
"code": null,
"e": 191,
"s": 52,
"text": "This article will introduce you to graphing in Python with Seaborn, which is the most popular statistical visualization library in Python."
},
{
"code": null,
"e"... |
Sum of list with stream filter in Java | 15 May, 2021
We generally iterate through the list when adding integers in a range, but java.util.stream.Stream has a sum() method that when used with filter() gives the required result easily.
Java
// Simple method (without filter) to find sum of a listimport java.util.*; class Addition { public static void main(St... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 May, 2021"
},
{
"code": null,
"e": 235,
"s": 54,
"text": "We generally iterate through the list when adding integers in a range, but java.util.stream.Stream has a sum() method that when used with filter() gives the required result e... |
GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 42 - GeeksforGeeks | 26 Dec, 2019
A computer system uses 16-bit memory addresses. It has a 2K-byte cache organized in a direct-mapped manner with 64 bytes per cache block. Assume that the size of each memory word is 1 byte.
When a program is executed, the processor reads data sequentially from the following word addresses:
128, 144, 2176, ... | [
{
"code": null,
"e": 25695,
"s": 25667,
"text": "\n26 Dec, 2019"
},
{
"code": null,
"e": 25885,
"s": 25695,
"text": "A computer system uses 16-bit memory addresses. It has a 2K-byte cache organized in a direct-mapped manner with 64 bytes per cache block. Assume that the size of e... |
Convert a UTF8 value to Integer in R Programming - utf8ToInt() Function - GeeksforGeeks | 16 Jun, 2020
utf8ToInt() function in R Language is used to convert a UTF8 value to an integer value.
Syntax: utf8ToInt(x, multiple)
Parameters:x: Integer or integer vectormultiple: Boolean value to convert into single or multiple strings
Example 1:
# R program to convert a UTF8 to Integer # Calling the utf8ToInt() fun... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n16 Jun, 2020"
},
{
"code": null,
"e": 26575,
"s": 26487,
"text": "utf8ToInt() function in R Language is used to convert a UTF8 value to an integer value."
},
{
"code": null,
"e": 26606,
"s": 26575,
"text": "Sy... |
How to set “checked” for a checkbox with jQuery? | Use the checked attribute to set the checkbox with jQuery. Also, the prop() method is used to get the property value.
You can try to run the following code to learn how to set checked for a checkbox:
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>jQuery Example</title>
<style>
b {
color: green;
}
</style... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "Use the checked attribute to set the checkbox with jQuery. Also, the prop() method is used to get the property value."
},
{
"code": null,
"e": 1262,
"s": 1180,
"text": "You can try to run the following code to learn how to set checke... |
Make your pictures beautiful with a touch of deep learning magic | by George Seif | Towards Data Science | Want to be inspired? Come join my Super Quotes newsletter. 😎
Camera technology is beautiful. It’s given us all a chance to save our memories, and to relive them when we see them again in our photos.
That technology has come quite a long way over the past several years. With all kinds of new features like 4K, HDR, and ... | [
{
"code": null,
"e": 232,
"s": 171,
"text": "Want to be inspired? Come join my Super Quotes newsletter. 😎"
},
{
"code": null,
"e": 370,
"s": 232,
"text": "Camera technology is beautiful. It’s given us all a chance to save our memories, and to relive them when we see them again i... |
Adding a line to a scatter plot using Python's Matplotlib | To add a line to a scatter plot using Python's Matplotlib, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Initialize a variable, n, for number of data points.
Plot x and y data points using scatter() method.
Plot a line using plot() method.
Limt the X-axis ... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "To add a line to a scatter plot using Python's Matplotlib, we can take the following steps −"
},
{
"code": null,
"e": 1231,
"s": 1155,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
... |
JqueryUI - Autocomplete | Auto completion is a mechanism frequently used in modern websites to provide the user with a list of suggestions for the beginning of the word, which he/she has typed in a text box. The user can then select an item from the list, which will be displayed in the input field. This feature prevents the user from having to ... | [
{
"code": null,
"e": 2624,
"s": 2264,
"text": "Auto completion is a mechanism frequently used in modern websites to provide the user with a list of suggestions for the beginning of the word, which he/she has typed in a text box. The user can then select an item from the list, which will be displayed... |
C Program for Minimum Cost Path | Here, we will solve the minimum cost path problem in C. The implication is done on a 2D-matrix where each cell has a cost to travel. We have to find a path from the left top corner to the bottom right corner with minimum travel cost. You can only traverse down and right lower cells from a given cell.
To solve this part... | [
{
"code": null,
"e": 1364,
"s": 1062,
"text": "Here, we will solve the minimum cost path problem in C. The implication is done on a 2D-matrix where each cell has a cost to travel. We have to find a path from the left top corner to the bottom right corner with minimum travel cost. You can only traver... |
Duration ofMinutes(long) method in Java with Examples - GeeksforGeeks | 26 Nov, 2018
The ofMinutes(long) method of Duration Class in java.time package is used to get a duration in a 1 minute format. In this method, the seconds are calculated as total seconds in 1 minute format, i.e. 60 seconds per minute.
Syntax:
public static Duration ofMinutes(long minutes)
Parameters: This method accep... | [
{
"code": null,
"e": 26391,
"s": 26363,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 26613,
"s": 26391,
"text": "The ofMinutes(long) method of Duration Class in java.time package is used to get a duration in a 1 minute format. In this method, the seconds are calculated as tot... |
How to get the title and URL of the page in Selenium with python? | We can get the title and URL of the page in Selenium.
For getting the title of the browser, the title method is to be used.
For getting the URL of the page, the current_url method is to be used.
Both these methods can be used for testing if we are navigated to the correct page and page title.
Code Implementation
from s... | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "We can get the title and URL of the page in Selenium."
},
{
"code": null,
"e": 1186,
"s": 1116,
"text": "For getting the title of the browser, the title method is to be used."
},
{
"code": null,
"e": 1257,
"s": 1186,
... |
Calculate Efficiency Of Binary Classifier - GeeksforGeeks | 01 Oct, 2021
Prerequisite: target=”_blank”>Getting started with Classification
In this article, we will discuss a method to calculate the efficiency of a Binary classifier. Let’s assume there is a problem where we have to classify a product that belongs to either class A or class B.
Let us define few statistical para... | [
{
"code": null,
"e": 25881,
"s": 25853,
"text": "\n01 Oct, 2021"
},
{
"code": null,
"e": 25948,
"s": 25881,
"text": "Prerequisite: target=”_blank”>Getting started with Classification "
},
{
"code": null,
"e": 26154,
"s": 25948,
"text": "In this article, we wil... |
C# | String.Contains() Method - GeeksforGeeks | 06 Jan, 2020
In C#, String.Contains() is a string method. This method is used to check whether the substring occurs within a given string or not.
Syntax:
public bool Contains(string str)
Parameter:
str: It is the string which is to be checked. Type of this parameter is System.String.
Return Value: It returns the boolea... | [
{
"code": null,
"e": 24406,
"s": 24378,
"text": "\n06 Jan, 2020"
},
{
"code": null,
"e": 24539,
"s": 24406,
"text": "In C#, String.Contains() is a string method. This method is used to check whether the substring occurs within a given string or not."
},
{
"code": null,
... |
Tryit Editor v3.7 | Tryit: HSL Saturation | [] |
Generate 10 random four-digit numbers in Java | To generated random integer, use the Random class with nextInt. At first, create a Random object −
Random rand = new Random();
The Random above is a random number generator. Now, pick the random numbers one by one. We want 10 random four-digit numbers, therefore loop it until i = 1 to 10 −
for (int i = 1; i<= 10; i++) ... | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "To generated random integer, use the Random class with nextInt. At first, create a Random object −"
},
{
"code": null,
"e": 1189,
"s": 1161,
"text": "Random rand = new Random();"
},
{
"code": null,
"e": 1353,
"s": 118... |
Superperfect Number - GeeksforGeeks | 28 Jan, 2022
Given an integer n. Check whether the number n is superperfect number or not. A superperfect number is a positive integer which satisfies σ2(n) = σ(σ(n)) = 2n, where σ is divisor summatory function.
Input: n = 16
Output: yes
Explanation:
16 is a superperfect number as σ(16) = 1 + 2 + 4 + 8 + 16 = 31,
and... | [
{
"code": null,
"e": 24587,
"s": 24559,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 24788,
"s": 24587,
"text": "Given an integer n. Check whether the number n is superperfect number or not. A superperfect number is a positive integer which satisfies σ2(n) = σ(σ(n)) = 2n, whe... |
How to determine the percentiles of a vector values in R? | Percentile helps us to determine the values that lie at a certain percent in a data set. For example, if we have a vector of size 100 with containing any values and suppose that the tenth-percentile of the vector is 25, which means there are ten percent values in the vector that are less than 25, or we can say, there a... | [
{
"code": null,
"e": 1520,
"s": 1062,
"text": "Percentile helps us to determine the values that lie at a certain percent in a data set. For example, if we have a vector of size 100 with containing any values and suppose that the tenth-percentile of the vector is 25, which means there are ten percent... |
C# Decimal ("D") Format Specifier | The "D" (or decimal) format specifier works for integer type. It converts a number to a string of decimal digits (0-9).
Let’say the following is our number.
int val = 467;
Now to return the result as 0467, use the following decimal format specifier.
val.ToString("D4")
Let us see another example.
Live Demo
using System... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "The \"D\" (or decimal) format specifier works for integer type. It converts a number to a string of decimal digits (0-9)."
},
{
"code": null,
"e": 1219,
"s": 1182,
"text": "Let’say the following is our number."
},
{
"code": n... |
Python 3 - Number seed() Method | The seed() method initializes the basic random number generator. Call this function before calling any other random module function.
Following is the syntax for seed() method:
seed ([x], [y])
Note − This function initializes the basic random number generator.
x − This is the seed for the next random number. If omitted... | [
{
"code": null,
"e": 2473,
"s": 2340,
"text": "The seed() method initializes the basic random number generator. Call this function before calling any other random module function."
},
{
"code": null,
"e": 2516,
"s": 2473,
"text": "Following is the syntax for seed() method:"
},
... |
SAP HANA - SQL Stored Procedures | A procedure allows you to group the SQL statement into a single block. Stored Procedures are used to achieve certain result across applications. The set of SQL statements and the logic that is used to perform some specific task are stored in SQL Stored Procedures. These stored procedures are executed by applications to... | [
{
"code": null,
"e": 3447,
"s": 3107,
"text": "A procedure allows you to group the SQL statement into a single block. Stored Procedures are used to achieve certain result across applications. The set of SQL statements and the logic that is used to perform some specific task are stored in SQL Stored ... |
How do I begin auto increment from a specific point in MySQL? | To begin auto increment from a specific point, use ALTER command. The syntax is as follows −
ALTER TABLE yourTableName auto_increment = anySpecificPoint;
To understand the above concept, let us create a table. The query to create a table is as follows −
mysql> create table AutoIncrementSpecificPoint
−> (
−> BookI... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "To begin auto increment from a specific point, use ALTER command. The syntax is as follows −"
},
{
"code": null,
"e": 1216,
"s": 1155,
"text": "ALTER TABLE yourTableName auto_increment = anySpecificPoint;"
},
{
"code": null,
... |
How can I dynamically update my Matplotlib figure as the data file changes? | To update a Matplotlib figure as the data file changes, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Initialize variables m and n, to get a set of subplots.
Create a list of colors, to plot color dynamically.
Plot dynamic data points using plot() method w... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "To update a Matplotlib figure as the data file changes, we can take the following steps −"
},
{
"code": null,
"e": 1228,
"s": 1152,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"c... |
Combinations with repetitions - GeeksforGeeks | 23 Jan, 2022
Suppose we have a string of length- n and we want to generate all combinations/permutations taken r at a time with/without repetitions. There are four fundamental concepts in Combinatorics1) Combinations without repetitions/replacements. 2) Combinations with repetitions/replacements. 3) Permutations witho... | [
{
"code": null,
"e": 25398,
"s": 25370,
"text": "\n23 Jan, 2022"
},
{
"code": null,
"e": 25867,
"s": 25398,
"text": "Suppose we have a string of length- n and we want to generate all combinations/permutations taken r at a time with/without repetitions. There are four fundamental... |
How to Add Text in the GroupBox in C#? - GeeksforGeeks | 02 Aug, 2019
In Windows Forms, GroupBox is a container which contains multiple controls in it and the controls are related to each other. Or in other words, GroupBox is a frame display around a group of controls with a suitable optional title. Or a GroupBox is used to categorize the related controls in a group. In Grou... | [
{
"code": null,
"e": 25449,
"s": 25421,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 25877,
"s": 25449,
"text": "In Windows Forms, GroupBox is a container which contains multiple controls in it and the controls are related to each other. Or in other words, GroupBox is a frame... |
How to dynamically allocate a 3D array in C++ - GeeksforGeeks | 24 Mar, 2021
Prerequisite: Array BasicsIn C/C++, multidimensional arrays in simple words as an array of arrays. Data in multidimensional arrays are stored in tabular form (in row major order). Below is the general form of declaring N-dimensional arrays:
Syntax of a Multidimensional Array:
data_type array_name[size1][s... | [
{
"code": null,
"e": 26067,
"s": 26039,
"text": "\n24 Mar, 2021"
},
{
"code": null,
"e": 26308,
"s": 26067,
"text": "Prerequisite: Array BasicsIn C/C++, multidimensional arrays in simple words as an array of arrays. Data in multidimensional arrays are stored in tabular form (in r... |
Pandas melt and pivot: Shape tables like JELLY | Towards Data Science | I am not ashamed to admit. melt() and pivot() were the hardest of pandas to learn for me. It took me more than 3-4 months to wrap my head around. When I first saw them, I tried and tried but could not understand how or when they are used. So, I gave up, moved on, and met them again. Tried, failed, moved on, and met aga... | [
{
"code": null,
"e": 517,
"s": 172,
"text": "I am not ashamed to admit. melt() and pivot() were the hardest of pandas to learn for me. It took me more than 3-4 months to wrap my head around. When I first saw them, I tried and tried but could not understand how or when they are used. So, I gave up, m... |
How I built a Face Mask Detector for COVID-19 using PyTorch Lightning (updated PL V.1.3.5) | by Jad Haddad | Towards Data Science | A couple of days before the end of quarantine in France, I was reading the news, and I stumbled upon an article: France is using AI to check whether people are wearing masks on public transport.
French startup DatakaLab, which created the program, says the goal is not to identify or punish individuals who don’t wear ma... | [
{
"code": null,
"e": 367,
"s": 172,
"text": "A couple of days before the end of quarantine in France, I was reading the news, and I stumbled upon an article: France is using AI to check whether people are wearing masks on public transport."
},
{
"code": null,
"e": 607,
"s": 367,
... |
Course 2 — Data structure — Part 1: The Basic data structures | by Phat Le | Towards Data Science | A famous quote: Program = Algorithms + Data Structures. In last series, we talked about 3 algorithms greedy, divide and conquer, dynamic programming to approach a problem. In next series, we will take a look at data structures to help us solve more complex problems. Let get started with the most fundamental data struct... | [
{
"code": null,
"e": 656,
"s": 172,
"text": "A famous quote: Program = Algorithms + Data Structures. In last series, we talked about 3 algorithms greedy, divide and conquer, dynamic programming to approach a problem. In next series, we will take a look at data structures to help us solve more comple... |
How to count total number of documents in MongoDB Collection using Node.js ? - GeeksforGeeks | 12 Feb, 2021
MongoDB, the most popular NoSQL database, we can count the number of documents in MongoDB Collection using the MongoDB collection.countDocuments() function. The mongodb module is used for connecting the MongoDB database as well as used for manipulating the collections and databases in MongoDB.
Installing ... | [
{
"code": null,
"e": 25889,
"s": 25861,
"text": "\n12 Feb, 2021"
},
{
"code": null,
"e": 26185,
"s": 25889,
"text": "MongoDB, the most popular NoSQL database, we can count the number of documents in MongoDB Collection using the MongoDB collection.countDocuments() function. The mo... |
How I built a bot to beat T-Rex run! | by Rajat Keshri | Towards Data Science | This article will explain the step by step procedure of building your own bot from scratch, which would play T-Rex run game by Google indefinitely.
T-Rex run game is a game which I am sure every human with a phone or a laptop with Google Chrome and no internet connection has played. For those of you who do not know, ju... | [
{
"code": null,
"e": 320,
"s": 172,
"text": "This article will explain the step by step procedure of building your own bot from scratch, which would play T-Rex run game by Google indefinitely."
},
{
"code": null,
"e": 1003,
"s": 320,
"text": "T-Rex run game is a game which I am s... |
Implementing Point Pillars in TensorFlow | by Anjul Tyagi | Towards Data Science | If you want to get started on 3D Object Detection and more specifically on Point Pillars, I have a series of posts written on it just for that purpose. Here’s the link. Also, going through the Point Pillars paper directly will be really helpful to understand this post better, however, it’s not a prerequisite.
Github Re... | [
{
"code": null,
"e": 483,
"s": 172,
"text": "If you want to get started on 3D Object Detection and more specifically on Point Pillars, I have a series of posts written on it just for that purpose. Here’s the link. Also, going through the Point Pillars paper directly will be really helpful to underst... |
The globals(), locals() and reload() Functions in Python | The globals() and locals() functions can be used to return the names in the global and local namespaces depending on the location from where they are called.
If locals() is called from within a function, it will return all the names that can be accessed locally from that function.
If globals() is called from within a f... | [
{
"code": null,
"e": 1220,
"s": 1062,
"text": "The globals() and locals() functions can be used to return the names in the global and local namespaces depending on the location from where they are called."
},
{
"code": null,
"e": 1344,
"s": 1220,
"text": "If locals() is called fr... |
How to map data into Components using ReactJS? - GeeksforGeeks | 05 Jul, 2021
Map all individual custom pieces of data to the custom component.
For example: Instead of writing custom components again and again with different props. I will make an array that contains all props and use the map() function to map the array element with a custom component in a single component call.
A m... | [
{
"code": null,
"e": 23873,
"s": 23845,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 23940,
"s": 23873,
"text": "Map all individual custom pieces of data to the custom component. "
},
{
"code": null,
"e": 24177,
"s": 23940,
"text": "For example: Instead of... |
HTML5 Canvas - Drawing Bezier Curves | We need the following methods to draw Bezier curves on the canvas −
beginPath()
This method resets the current path.
moveTo(x, y)
This method creates a new subpath with the given point.
closePath()
This method marks the current subpath as closed, and starts a new subpath with a point the same as the start and end of th... | [
{
"code": null,
"e": 2676,
"s": 2608,
"text": "We need the following methods to draw Bezier curves on the canvas −"
},
{
"code": null,
"e": 2688,
"s": 2676,
"text": "beginPath()"
},
{
"code": null,
"e": 2725,
"s": 2688,
"text": "This method resets the current ... |
Java Guava | Bytes.toArray() method with Examples - GeeksforGeeks | 31 Jan, 2019
The toArray() method of Bytes Class in the Guava library is used to convert the byte values, passed as the parameter to this method, into a Byte Array. These byte values are passed as a Collection to this method. This method returns a Byte array.
Syntax:
public static byte[] toArray(Collection<? extends Nu... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n31 Jan, 2019"
},
{
"code": null,
"e": 23804,
"s": 23557,
"text": "The toArray() method of Bytes Class in the Guava library is used to convert the byte values, passed as the parameter to this method, into a Byte Array. These byte ... |
Implement two stacks in an array | Practice | GeeksforGeeks | Your task is to implement 2 stacks in one array efficiently.
Example 1:
Input:
push1(2)
push1(3)
push2(4)
pop1()
pop2()
pop2()
Output:
3 4 -1
Explanation:
push1(2) the stack1 will be {2}
push1(3) the stack1 will be {2,3}
push2(4) the stack2 will be {4}
pop1() the poped element will be 3
from stack1 and stack1 w... | [
{
"code": null,
"e": 300,
"s": 238,
"text": "Your task is to implement 2 stacks in one array efficiently."
},
{
"code": null,
"e": 313,
"s": 302,
"text": "Example 1:"
},
{
"code": null,
"e": 687,
"s": 313,
"text": "Input:\npush1(2)\npush1(3)\npush2(4)\npop1()... |
Python - Lists | The most basic data structure in Python is the sequence. Each element of a sequence is assigned a number - its position or index. The first index is zero, the second index is one, and so forth.
Python has six built-in types of sequences, but the most common ones are lists and tuples, which we would see in this tutorial... | [
{
"code": null,
"e": 2438,
"s": 2244,
"text": "The most basic data structure in Python is the sequence. Each element of a sequence is assigned a number - its position or index. The first index is zero, the second index is one, and so forth."
},
{
"code": null,
"e": 2566,
"s": 2438,
... |
Software Testing | Mutation Testing - GeeksforGeeks | 15 May, 2019
Mutation Testing is a type of Software Testing that is performed to design new software tests and also evaluate the quality of already existing software tests. Mutation testing is related to modification a program in small ways. It focuses to help the tester develop effective tests or locate weaknesses in ... | [
{
"code": null,
"e": 24932,
"s": 24904,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 25275,
"s": 24932,
"text": "Mutation Testing is a type of Software Testing that is performed to design new software tests and also evaluate the quality of already existing software tests. Mut... |
Clojure - Operators | An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.
Clojure has the following types of operators −
Arithmetic operators
Relational operators
Logical operators
Bitwise operators
Note − In Clojure, operators and operands work in the following syntax manner.
(operator... | [
{
"code": null,
"e": 2481,
"s": 2374,
"text": "An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations."
},
{
"code": null,
"e": 2528,
"s": 2481,
"text": "Clojure has the following types of operators −"
},
{
"code": null,
... |
DeepChem — A framework for using ML and DL for Life Science and Chemoinformatics | by Aditya Bhattacharya | Towards Data Science | Application of Machine Learning and Deep Learning for Drug Discovery, Genomics, Microsocopy and Quantum Chemistry can create radical impact and holds the potential to significantly accelerate the process of medical research and vaccine development, which is a necessity for any pandemic like Covid19.
Before we even begi... | [
{
"code": null,
"e": 473,
"s": 172,
"text": "Application of Machine Learning and Deep Learning for Drug Discovery, Genomics, Microsocopy and Quantum Chemistry can create radical impact and holds the potential to significantly accelerate the process of medical research and vaccine development, which ... |
Print objects of a class in Python - GeeksforGeeks | 29 Dec, 2019
An Object is an instance of a Class. A class is like a blueprint while an instance is a copy of the class with actual values. When an object of a class is created, the class is said to be instantiated. All the instances share the attributes and the behavior of the class. But the values of those attributes,... | [
{
"code": null,
"e": 24317,
"s": 24289,
"text": "\n29 Dec, 2019"
},
{
"code": null,
"e": 24717,
"s": 24317,
"text": "An Object is an instance of a Class. A class is like a blueprint while an instance is a copy of the class with actual values. When an object of a class is created,... |
Java Program to Convert a Stack Trace to a String | The Java.io.StringWriter class is a character stream that collects its output in a string buffer, which can then be used to construct a string. Closing a StringWriter has no effect.
The Java.io.PrintWriter class prints formatted representations of objects to a text-output stream.
Using these two classes you can convert... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "The Java.io.StringWriter class is a character stream that collects its output in a string buffer, which can then be used to construct a string. Closing a StringWriter has no effect."
},
{
"code": null,
"e": 1343,
"s": 1244,
"text": "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.