title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Explaining Text classifier outcomes using LIME | by Maha Amami | Towards Data Science
In the previous post on leveraging explainability in real-world applications, I gave a brief introduction to XAI (eXplainability in AI), the motivation behind it, and the application of explainable models in the real-life scenarios. In this post, I will provide an introduction to LIME one of the most famous local expla...
[ { "code": null, "e": 404, "s": 171, "text": "In the previous post on leveraging explainability in real-world applications, I gave a brief introduction to XAI (eXplainability in AI), the motivation behind it, and the application of explainable models in the real-life scenarios." }, { "code": ...
CONCAT() function in MySQL - GeeksforGeeks
07 Oct, 2020 CONCAT() function in MySQL is used to concatenating the given arguments. It may have one or more arguments. If all arguments are nonbinary strings, the result is a nonbinary string. If the arguments include any binary strings, the result is a binary string. If a numeric argument is given then it is convert...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n07 Oct, 2020" }, { "code": null, "e": 24252, "s": 23901, "text": "CONCAT() function in MySQL is used to concatenating the given arguments. It may have one or more arguments. If all arguments are nonbinary strings, the result is a...
Common string operations in Python
The string module in Python’s standard library provides following useful constants, classes and a helper function called capwords() >>> import string >>> string.ascii_letters 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' >>> string.ascii_lowercase 'abcdefghijklmnopqrstuvwxyz' >>> string.ascii_uppercase 'ABCDEF...
[ { "code": null, "e": 1194, "s": 1062, "text": "The string module in Python’s standard library provides following useful constants, classes and a helper function called capwords()" }, { "code": null, "e": 1748, "s": 1194, "text": ">>> import string\n>>> string.ascii_letters\n'abcd...
What is the MySQL SELECT INTO Equivalent?
The SELECT INTO equivalent is CREATE TABLE AS SELECT statement. The syntax is as follows − CREATE TABLE yourNewTableName AS SELECT *FROM yourTableName; To understand the above concept, let us create a table. The query to create a table is as follows − mysql> create table selectIntoEquivalentDemo -> ( -> ClientId ...
[ { "code": null, "e": 1153, "s": 1062, "text": "The SELECT INTO equivalent is CREATE TABLE AS SELECT statement. The syntax is as follows −" }, { "code": null, "e": 1214, "s": 1153, "text": "CREATE TABLE yourNewTableName AS SELECT *FROM yourTableName;" }, { "code": null, ...
HTML - <video> Tag
The HTML <video> tag is used to embed video into your web page, it has several video sources. <!DOCTYPE html> <html> <head> <title>HTML video Tag</title> </head> <body> <p>Run your first program using an Online Compiler (compileonline.com)</p> <br /> <video width = "500" height...
[ { "code": null, "e": 2468, "s": 2374, "text": "The HTML <video> tag is used to embed video into your web page, it has several video sources." }, { "code": null, "e": 2866, "s": 2468, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML video Tag</title>\n </head>\n\...
ReactJS – Cleaning up with useEffect hook
In this article, we are going to see how to clean up the subscriptions set up in the useEffect hook in the functional component. Once the effects are created, then they are needed to be cleaned up before the component gets removed from the DOM. For this, cleaning up effect is used to remove the previous useEffect hook’...
[ { "code": null, "e": 1191, "s": 1062, "text": "In this article, we are going to see how to clean up the subscriptions set up in the useEffect hook in the functional component." }, { "code": null, "e": 1443, "s": 1191, "text": "Once the effects are created, then they are needed to...
Testing Glue Pyspark jobs. How to configure your Glue PySpark job... | by Vincent Claes | Towards Data Science
A typical use case for a Glue job is; you read data from S3; you do some transformations on that data; you dump the transformed data back to S3. When writing a PySpark job, you write your code and tests in Python and you use the PySpark library to execute your code on a Spark cluster. But how do I let both Python and S...
[ { "code": null, "e": 210, "s": 172, "text": "A typical use case for a Glue job is;" }, { "code": null, "e": 233, "s": 210, "text": "you read data from S3;" }, { "code": null, "e": 275, "s": 233, "text": "you do some transformations on that data;" }, { ...
Java Examples - Extending an Array
How to extend an array after initialisation? Following example shows how to extend an array after initialization by creating an new array. public class Main { public static void main(String[] args) { String[] names = new String[] { "A", "B", "C" }; String[] extended = new String[5]; extended[3] = "...
[ { "code": null, "e": 2113, "s": 2068, "text": "How to extend an array after initialisation?" }, { "code": null, "e": 2207, "s": 2113, "text": "Following example shows how to extend an array after initialization by creating an new array." }, { "code": null, "e": 2569, ...
Real-time pose estimation web application | Towards Data Science
I think we all can agree that 2020 was an insane year. To keep my sanity straight, I decided to revive an old project that I worked on a long time back with Omer Mintz on pose estimation using PoseNet. While reviving this project, what I wanted to achieve became clear to me: A pose and action estimation web application...
[ { "code": null, "e": 373, "s": 171, "text": "I think we all can agree that 2020 was an insane year. To keep my sanity straight, I decided to revive an old project that I worked on a long time back with Omer Mintz on pose estimation using PoseNet." }, { "code": null, "e": 601, "s": 37...
Understanding the Confusion Matrix and How to Implement it in Python | by Terence Shin | Towards Data Science
IntroductionWhat is a Confusion Matrix?Confusion Matrix MetricsExample of a 2x2 MatrixPython Code Introduction What is a Confusion Matrix? Confusion Matrix Metrics Example of a 2x2 Matrix Python Code Be sure to subscribe here or to my personal newsletter to never miss another article on data science guides, tricks and ...
[ { "code": null, "e": 269, "s": 171, "text": "IntroductionWhat is a Confusion Matrix?Confusion Matrix MetricsExample of a 2x2 MatrixPython Code" }, { "code": null, "e": 282, "s": 269, "text": "Introduction" }, { "code": null, "e": 310, "s": 282, "text": "What i...
How to reset or change the MySQL root password?
To reset or change the root password, first we need to open MySQL in the Administrator mode. There, we can see all the users as well as the host. The following is the query − mysql> USE mysql; Database changed mysql> SELECT user,host from user; Here is the output. +------------------+-----------+ | user | h...
[ { "code": null, "e": 1237, "s": 1062, "text": "To reset or change the root password, first we need to open MySQL in the Administrator mode. There, we can see all the users as well as the host. The following is the query −" }, { "code": null, "e": 1307, "s": 1237, "text": "mysql> ...
Hazelcast - First Application
Hazelcast can be run in isolation (single node) or multiple nodes can be run to form a cluster. Let us first try starting a single instance. Now, let us try creating and using a single instance of Hazelcast cluster. For that, we will create SingleInstanceHazelcastExample.java file. package com.example.demo; import jav...
[ { "code": null, "e": 2104, "s": 1963, "text": "Hazelcast can be run in isolation (single node) or multiple nodes can be run to form a cluster. Let us first try starting a single instance." }, { "code": null, "e": 2246, "s": 2104, "text": "Now, let us try creating and using a sing...
LISP - Do Construct
The do construct is also used for performing iteration using LISP. It provides a structured form of iteration. The syntax for do statement − (do ((variable1 value1 updated-value1) (variable2 value2 updated-value2) (variable3 value3 updated-value3) ...) (test return-value) (s-expression...
[ { "code": null, "e": 2171, "s": 2060, "text": "The do construct is also used for performing iteration using LISP. It provides a structured form of iteration." }, { "code": null, "e": 2201, "s": 2171, "text": "The syntax for do statement −" }, { "code": null, "e": 2386...
A basic Python Programming Challenge - GeeksforGeeks
22 Jul, 2021 Heya guys! I am back with another article my previous article on secure coding. This time we are not going to go into any theoretical stuff. Some months ago, I wrote a program in Python for my students so that they can practice basic BODMAS questions. The purpose was that the program should generate random...
[ { "code": null, "e": 24252, "s": 24224, "text": "\n22 Jul, 2021" }, { "code": null, "e": 25172, "s": 24252, "text": "Heya guys! I am back with another article my previous article on secure coding. This time we are not going to go into any theoretical stuff. Some months ago, I wro...
Chef - Test Kitchen Setup
Test Kitchen is Chef’s integrated testing framework. It enables writing test recipes, which will run on the VMs once they are instantiated and converged using the cookbook. The test recipes run on that VM and can verify if everything works as expected. ChefSpec is something which only simulates a Chef run. Test kitchen...
[ { "code": null, "e": 2633, "s": 2380, "text": "Test Kitchen is Chef’s integrated testing framework. It enables writing test recipes, which will run on the VMs once they are instantiated and converged using the cookbook. The test recipes run on that VM and can verify if everything works as expected."...
Pascal - Arithmetic Operators
Following table shows all the arithmetic operators supported by Pascal. Assume variable A holds 10 and variable B holds 20, then − The following example illustrates the arithmetic operators − program calculator; var a,b,c : integer; d: real; begin a:=21; b:=10; c := a + b; writeln(' Line 1 - Value of c...
[ { "code": null, "e": 2214, "s": 2083, "text": "Following table shows all the arithmetic operators supported by Pascal. Assume variable A holds 10 and variable B holds 20, then −" }, { "code": null, "e": 2275, "s": 2214, "text": "The following example illustrates the arithmetic op...
SAS - DO WHILE Loop
This DO WHILE loop uses a WHILE condition. The SAS statements are repeatedly executed until the while condition becomes false. DO WHILE (variable condition); . . . SAS statements . . . ; END; DATA MYDATA; SUM = 0; VAR = 1; DO WHILE(VAR<6) ; SUM = SUM+VAR; VAR+1; END; PROC PRINT; RUN; When the above code i...
[ { "code": null, "e": 2710, "s": 2583, "text": "This DO WHILE loop uses a WHILE condition. The SAS statements are repeatedly executed until the while condition becomes false." }, { "code": null, "e": 2777, "s": 2710, "text": "DO WHILE (variable condition);\n. . . SAS statements ....
Testing the Assumptions of Linear Regression | by Shuangyuan (Sharon) Wei | Towards Data Science
It seems that nowadays when everyone is so much into all kinds of fancy machine learning algorithms, few people still care to ask: what are the key assumptions required for the Ordinary Least Squares (OLS) regression? How can I test if my model satisfies these assumptions? However, as simple linear regression is arguab...
[ { "code": null, "e": 753, "s": 172, "text": "It seems that nowadays when everyone is so much into all kinds of fancy machine learning algorithms, few people still care to ask: what are the key assumptions required for the Ordinary Least Squares (OLS) regression? How can I test if my model satisfies ...
Using For Loops in Python: Calculating Probabilities | by Michael Grogan | Towards Data Science
Loops are quite an important part of learning how to code in Python, and this is particularly true when it comes to implementing calculations across a large array of numbers. All too often, the temptation for statisticians and data scientists is to skip over the more mundane aspects of coding such as this — we assume t...
[ { "code": null, "e": 346, "s": 171, "text": "Loops are quite an important part of learning how to code in Python, and this is particularly true when it comes to implementing calculations across a large array of numbers." }, { "code": null, "e": 562, "s": 346, "text": "All too oft...
Python For Loops
A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string). This is less like the for keyword in other programming languages, and works more like an iterator method as found in other object-orientated programming languages. With the for loop we can execute a set...
[ { "code": null, "e": 118, "s": 0, "text": "A for loop is used for iterating over a sequence (that is either a list, a tuple, \na dictionary, a set, or a string)." }, { "code": null, "e": 282, "s": 118, "text": "This is less like the for keyword in other programming languages, and...
Common Time Series Data Analysis Methods and Forecasting Models in Python | by Yuefeng Zhang, PhD | Towards Data Science
A time series is a sequence of data samples taken in time order with equal time intervals. Time series include many kinds of real experimental data taken from various domains such as finance, medicine, scientific research (e.g., global warming, speech analysis, earthquakes), etc. [1][2]. Time series forecasting has man...
[ { "code": null, "e": 617, "s": 172, "text": "A time series is a sequence of data samples taken in time order with equal time intervals. Time series include many kinds of real experimental data taken from various domains such as finance, medicine, scientific research (e.g., global warming, speech ana...
Building a multi-functionality Voice Assistant in 10 minutes | by Sakshi Butala | Towards Data Science
Nowadays people don’t have time to manually search the internet for information or the answers to their questions, rather they expect someone to do it for them, just like a personal assistant who listens to the commands provided and acts accordingly.Thanks to Artificial Intelligence, this personal assistant can now be ...
[ { "code": null, "e": 773, "s": 171, "text": "Nowadays people don’t have time to manually search the internet for information or the answers to their questions, rather they expect someone to do it for them, just like a personal assistant who listens to the commands provided and acts accordingly.Thank...
MongoDB - Covered Queries
In this chapter, we will learn about covered queries. As per the official MongoDB documentation, a covered query is a query in which − All the fields in the query are part of an index. All the fields returned in the query are in the same index. Since all the fields present in the query are part of an index, MongoDB mat...
[ { "code": null, "e": 2607, "s": 2553, "text": "In this chapter, we will learn about covered queries." }, { "code": null, "e": 2688, "s": 2607, "text": "As per the official MongoDB documentation, a covered query is a query in which −" }, { "code": null, "e": 2738, ...
Addition in Nested Tuples - Python - GeeksforGeeks
11 Nov, 2019 Sometimes, while working with records, we can have a problem in which we require to perform index wise addition of tuple elements. This can get complicated with tuple elements to be tuple and inner elements again be tuple. Let’s discuss certain ways in which this problem can be solved. Method #1 : Using zi...
[ { "code": null, "e": 24466, "s": 24438, "text": "\n11 Nov, 2019" }, { "code": null, "e": 24753, "s": 24466, "text": "Sometimes, while working with records, we can have a problem in which we require to perform index wise addition of tuple elements. This can get complicated with tu...
Copy Elements of One ArrayList to Another ArrayList with Java Collections Class
In order to copy elements of ArrayList to another ArrayList, we use the Collections.copy() method. It is used to copy all elements of a collection into another. Declaration −The java.util.Collections.copy() method is declared as follows − public static <T> void copy(List<? super T> dest,Lis<? extends T> src) where src ...
[ { "code": null, "e": 1223, "s": 1062, "text": "In order to copy elements of ArrayList to another ArrayList, we use the Collections.copy() method. It is used to copy all elements of a collection into another." }, { "code": null, "e": 1301, "s": 1223, "text": "Declaration −The java...
How to convert an integer to an ASCII value in Python?
ASCII character associated to an integer is obtained by chr() function. The argument for this function can be any number between 0 to 0xffff >>> chr(0xaa) 'a' >>> chr(0xff) 'ÿ' >>> chr(200) 'È' >>> chr(122) 'z'
[ { "code": null, "e": 1203, "s": 1062, "text": "ASCII character associated to an integer is obtained by chr() function. The argument for this function can be any number between 0 to 0xffff" }, { "code": null, "e": 1275, "s": 1203, "text": ">>> chr(0xaa)\n'a'\n>>> chr(0xff)\n'ÿ'\n...
How to identify the nth sub element using xpath?
We can identify the nth sub element using xpath in the following ways − By adding square brackets with index. By adding square brackets with index. By using position () method in xpath. By using position () method in xpath. import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDr...
[ { "code": null, "e": 1134, "s": 1062, "text": "We can identify the nth sub element using xpath in the following ways −" }, { "code": null, "e": 1172, "s": 1134, "text": "By adding square brackets with index." }, { "code": null, "e": 1210, "s": 1172, "text": "B...
A Step-by-Step Tutorial for Conducting Sentiment Analysis | by Zijing Zhu | Towards Data Science
It is estimated that 80% of the world’s data is unstructured. Thus deriving information from unstructured data is an essential part of data analysis. Text mining is the process of deriving valuable insights from unstructured text data, and sentiment analysis is one applicant of text mining. It is using natural language...
[ { "code": null, "e": 1087, "s": 171, "text": "It is estimated that 80% of the world’s data is unstructured. Thus deriving information from unstructured data is an essential part of data analysis. Text mining is the process of deriving valuable insights from unstructured text data, and sentiment anal...
How to change a column in an R data frame with some conditions?
Sometimes, the column value of a particular column has some relation with another column and we might need to change the value of that particular column based on some conditions. We need to make this change to check how the change in the values of a column can make an impact on the relationship between the two columns ...
[ { "code": null, "e": 1485, "s": 1062, "text": "Sometimes, the column value of a particular column has some relation with another column and we might need to change the value of that particular column based on some conditions. We need to make this change to check how the change in the values of a col...
MySQL LIKE IN()?
You can implement MySQL Like IN() with the help of Regular Expression (regexp) as well. The syntax is as follows − select *from yourTableName where yourColumName regexp ‘value1|value2|value3......|valueN’; To understand the above logic, you need to create a table. Let us first create a table − mysql> create table INDem...
[ { "code": null, "e": 1177, "s": 1062, "text": "You can implement MySQL Like IN() with the help of Regular Expression (regexp) as well. The syntax is as follows −" }, { "code": null, "e": 1268, "s": 1177, "text": "select *from yourTableName where yourColumName regexp ‘value1|value...
Fortran - do while Loop Construct
It repeats a statement or a group of statements while a given condition is true. It tests the condition before executing the loop body. do while (logical expr) statements end do program factorial implicit none ! define variables integer :: nfact = 1 integer :: n = 1 ! compute factorials ...
[ { "code": null, "e": 2282, "s": 2146, "text": "It repeats a statement or a group of statements while a given condition is true. It tests the condition before executing the loop body." }, { "code": null, "e": 2328, "s": 2282, "text": "do while (logical expr) \n statements\nend d...
HTML Entity Parser - GeeksforGeeks
23 Jul, 2020 Given a string str which has various HTML Entities in it, the task is to replace these entities with their corresponding special character. HTML entity parser is the parser that takes HTML code as input and replaces all the entities of the special characters by the characters itself. The special characters...
[ { "code": null, "e": 24295, "s": 24267, "text": "\n23 Jul, 2020" }, { "code": null, "e": 24435, "s": 24295, "text": "Given a string str which has various HTML Entities in it, the task is to replace these entities with their corresponding special character." }, { "code": n...
5 Different methods to find length of a string in C++ - GeeksforGeeks
16 Jan, 2020 The string is a sequence of characters or an array of characters. The declaration and definition of the string using an array of chars is similar to declaration and definition of an array of any other data type. Important points: The constructor of string class will set it to the C-style string, which ends...
[ { "code": null, "e": 24394, "s": 24366, "text": "\n16 Jan, 2020" }, { "code": null, "e": 24606, "s": 24394, "text": "The string is a sequence of characters or an array of characters. The declaration and definition of the string using an array of chars is similar to declaration an...
D3.js linkHorizontal() Method - GeeksforGeeks
14 Sep, 2020 The d3.linkHorizontal() method returns a new link generator with Horizontal tangents. It is typically used when the root is on the top/bottom edge with the children going down/up. Syntax: var link = d3.linkHorizontal() .x(function(d) { return d.x; }) .y(function(d) { return d.y; }); Parameters: T...
[ { "code": null, "e": 24252, "s": 24224, "text": "\n14 Sep, 2020" }, { "code": null, "e": 24432, "s": 24252, "text": "The d3.linkHorizontal() method returns a new link generator with Horizontal tangents. It is typically used when the root is on the top/bottom edge with the childre...
Python MongoDB - Find
You can read/retrieve stored documents from MongoDB using the find() method. This method retrieves and displays all the documents in MongoDB in a non-structured way. Following is the syntax of the find() method. >db.CollectionName.find() Assume we have inserted 3 documents into a database named testDB in a collection ...
[ { "code": null, "e": 3371, "s": 3205, "text": "You can read/retrieve stored documents from MongoDB using the find() method. This method retrieves and displays all the documents in MongoDB in a non-structured way." }, { "code": null, "e": 3417, "s": 3371, "text": "Following is the...
Concatenation of Zig-Zag String in n Rows | Practice | GeeksforGeeks
Given a string and number of rows ‘n’. Print the string formed by concatenating n rows when the input string is written in row-wise Zig-Zag fashion. Example 1: Input: str = "ABCDEFGH" n = 2 Output: "ACEGBDFH" Explanation: Let us write input string in Zig-Zag fashion in 2 rows. A C E G B D F H Now con...
[ { "code": null, "e": 375, "s": 226, "text": "Given a string and number of rows ‘n’. Print the string formed by concatenating n rows when the input string is written in row-wise Zig-Zag fashion." }, { "code": null, "e": 386, "s": 375, "text": "Example 1:" }, { "code": null...
MomentJS - Is Same or After
This method checks if the moment is same or after another moment. It returns true or false. moment().isSameOrAfter(Moment|String|Number|Date|Array); moment().isSameOrAfter(Moment|String|Number|Date|Array, String); var issameorafter = moment('2017-10-10').isSameOrAfter('2017-10-09'); We can use the units with isSameOrA...
[ { "code": null, "e": 2052, "s": 1960, "text": "This method checks if the moment is same or after another moment. It returns true or false." }, { "code": null, "e": 2175, "s": 2052, "text": "moment().isSameOrAfter(Moment|String|Number|Date|Array);\nmoment().isSameOrAfter(Moment|St...
How to change the spacing between ticks in Matplotlib?
To set ticks on a fixed position or change the spacing between ticks in matplotlib, we can take the following steps − Create a figure and add a set of subplots. Create a figure and add a set of subplots. To set the ticks on a fixed position, create two lists with some values. To set the ticks on a fixed position, creat...
[ { "code": null, "e": 1180, "s": 1062, "text": "To set ticks on a fixed position or change the spacing between ticks in matplotlib, we can take the following steps −" }, { "code": null, "e": 1223, "s": 1180, "text": "Create a figure and add a set of subplots." }, { "code":...
HTTP headers | Server-Timing - GeeksforGeeks
27 Sep, 2021 The HTTP Server-Timing header is a response-type header. This header is used to communicate between two or more metrics and descriptions for a given request-response cycle from the user agent. The HTTP Server-Timing header is useful to any back-end server timing metrics like read or write in any databases,...
[ { "code": null, "e": 24525, "s": 24497, "text": "\n27 Sep, 2021" }, { "code": null, "e": 25079, "s": 24525, "text": "The HTTP Server-Timing header is a response-type header. This header is used to communicate between two or more metrics and descriptions for a given request-respon...
Computer Networks | Set 8 - GeeksforGeeks
27 Mar, 2017 Following questions have been asked in GATE CS 2008 exam. 1) What is the maximum size of data that the application layer can pass on to the TCP layer below?(A) Any size(B) 2^16 bytes-size of TCP header(C) 2^16 bytes(D) 1500 bytes Answer (A)Application layer can send any size of data. There is no limit defi...
[ { "code": null, "e": 36594, "s": 36566, "text": "\n27 Mar, 2017" }, { "code": null, "e": 36652, "s": 36594, "text": "Following questions have been asked in GATE CS 2008 exam." }, { "code": null, "e": 36824, "s": 36652, "text": "1) What is the maximum size of d...
What is Java String literal?
Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings. You can also create a String directly as − String greeting = "Hello world!"; A string literal sho...
[ { "code": null, "e": 1284, "s": 1062, "text": "Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings." }, { "code": null, ...
What is an optimistic concurrency control in DBMS?
All data items are updated at the end of the transaction, at the end, if any data item is found inconsistent with respect to the value in, then the transaction is rolled back. Check for conflicts at the end of the transaction. No checking while the transaction is executing. Checks are all made at once, so low transacti...
[ { "code": null, "e": 1238, "s": 1062, "text": "All data items are updated at the end of the transaction, at the end, if any data item is found inconsistent with respect to the value in, then the transaction is rolled back." }, { "code": null, "e": 1509, "s": 1238, "text": "Check ...
3 lesser-known pipe operators in Tidyverse | by Abhinav Malasi | Towards Data Science
Apart from hosting the main pipe operator %>% used by the Tidyverse community, the magrittr package in Tidyverse holds a few other pipe operators. The %>% pipe is widely used for data manipulations and is automatically loaded with Tidyverse. The pipe operator is used to execute multiple operations that are in sequence ...
[ { "code": null, "e": 414, "s": 172, "text": "Apart from hosting the main pipe operator %>% used by the Tidyverse community, the magrittr package in Tidyverse holds a few other pipe operators. The %>% pipe is widely used for data manipulations and is automatically loaded with Tidyverse." }, { ...
Bootstrap .btn-sm class
To create a small button in Bootstrap, use the .btn-sm class. You can try to run the following code to implement the btn-sm class Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <meta name = "viewport" content = "width=device-width, initial-scale = 1"> <link rel = "styleshe...
[ { "code": null, "e": 1124, "s": 1062, "text": "To create a small button in Bootstrap, use the .btn-sm class." }, { "code": null, "e": 1192, "s": 1124, "text": "You can try to run the following code to implement the btn-sm class" }, { "code": null, "e": 1202, "s": ...
Reading the CSV file into Dataframes in R - GeeksforGeeks
09 May, 2021 In this article, we will learn how to import or read a CSV file into a dataframe in R Programming Language. Data set in use: In order to import or read the given CSV file into our data frame, we first need to check our current working directory, and make sure that the CSV file is in the same directory as ...
[ { "code": null, "e": 24923, "s": 24892, "text": " \n09 May, 2021\n" }, { "code": null, "e": 25031, "s": 24923, "text": "In this article, we will learn how to import or read a CSV file into a dataframe in R Programming Language." }, { "code": null, "e": 25048, "s":...
Python Tools/Utilities
The standard library comes with a number of modules that can be used both as modules and as command-line utilities. The dis module is the Python disassembler. It converts byte codes to a format that is slightly more appropriate for human consumption. You can run the disassembler from the command line. It compiles the g...
[ { "code": null, "e": 2360, "s": 2244, "text": "The standard library comes with a number of modules that can be used both as modules and as command-line utilities." }, { "code": null, "e": 2495, "s": 2360, "text": "The dis module is the Python disassembler. It converts byte codes ...
Normal Equation of Linear Regression | by Aerin Kim | Towards Data Science
Kyle is interviewing Cartman for a data scientist position. Cartman is a graduate student studying CS at Stanford. Kyle: Ok, let’s start with an easy question. Derive the linear regression from scratch. We have about 30 data points of housing price (y) and the size of houses (x). Cartman: Sure! Kyle: Good. Now, how wil...
[ { "code": null, "e": 286, "s": 171, "text": "Kyle is interviewing Cartman for a data scientist position. Cartman is a graduate student studying CS at Stanford." }, { "code": null, "e": 452, "s": 286, "text": "Kyle: Ok, let’s start with an easy question. Derive the linear regressi...
Shortest Path between Cities | Practice | GeeksforGeeks
Geek lives in a special city where houses are arranged in a hierarchial manner. Starting from house number 1, each house leads to two more houses. 1 leads to 2 and 3. 2 leads to 4 and 5. 3 leads to 6 and 7. and so on. Given the house numbers on two houses x and y, find the length of the shortest path between them....
[ { "code": null, "e": 560, "s": 238, "text": "Geek lives in a special city where houses are arranged in a hierarchial manner. Starting from house number 1, each house leads to two more houses. \n1 leads to 2 and 3. \n2 leads to 4 and 5. \n3 leads to 6 and 7. and so on. \nGiven the house numbers on t...
Difference between HTML and React Event Handling - GeeksforGeeks
30 Jun, 2021 Event handling in HTML and React are different from one another in terms of syntax and some rules. The reason behind this is that React works on the concept of virtual DOM, on the other hand, the HTML has access to the Real DOM all the time. We are going to see how we can add the events in HTML and how Rea...
[ { "code": null, "e": 24872, "s": 24844, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25209, "s": 24872, "text": "Event handling in HTML and React are different from one another in terms of syntax and some rules. The reason behind this is that React works on the concept of vir...
How to create a progress bar in HTML?
Use the <progress> tag to create a progress bar in HTML. The HTML <progress> tag specifies a completion progress of a task. It is displayed as a progress bar. The value of progress bar can be manipulated by JavaScript. The following are the attributes − You can try to run the following code to learn how to create a pro...
[ { "code": null, "e": 1281, "s": 1062, "text": "Use the <progress> tag to create a progress bar in HTML. The HTML <progress> tag specifies a completion progress of a task. It is displayed as a progress bar. The value of progress bar can be manipulated by JavaScript." }, { "code": null, "e...
Groovy - for-in statement
The for-in statement is used to iterate through a set of values. The for-in statement is generally used in the following way. for(variable in range) { statement #1 statement #2 ... } The following diagram shows the diagrammatic explanation of this loop. Following is an example of a for-in statement − clas...
[ { "code": null, "e": 2364, "s": 2238, "text": "The for-in statement is used to iterate through a set of values. The for-in statement is generally used in the following way." }, { "code": null, "e": 2435, "s": 2364, "text": "for(variable in range) { \n statement #1 \n statemen...
How to group data by time intervals in Python Pandas? | by Ankit Goel | Towards Data Science
If you have ever dealt with Time-Series data analysis, you would have come across these problems for sure — Combining data into certain intervals like based on each day, a week, or a month.Aggregating data in the time interval like if you are dealing with price data then problems like total amount added in an hour, or ...
[ { "code": null, "e": 155, "s": 47, "text": "If you have ever dealt with Time-Series data analysis, you would have come across these problems for sure —" }, { "code": null, "e": 450, "s": 155, "text": "Combining data into certain intervals like based on each day, a week, or a mont...
Discovering your Music Taste with Python and Spotify API | by 👩🏻‍💻 Kessie Zhang | Towards Data Science
It’s almost the end of 2020! If you have been using Spotify for years, you probably know at the end of each year, Spotify will provide premium users personalized insights, such as your favorite songs and artists, and how much time you spent on the services, etc. As a data scientist, I wanted to take a look at all the s...
[ { "code": null, "e": 634, "s": 171, "text": "It’s almost the end of 2020! If you have been using Spotify for years, you probably know at the end of each year, Spotify will provide premium users personalized insights, such as your favorite songs and artists, and how much time you spent on the service...
How can we change the resolution of a video in OpenCV using C++?
We used 'set()' class of OpenCV. Using 'set()' class, we can set the height and width of the frames. The following lines are setting the height and width of the video in our program. set(CAP_PROP_FRAME_WIDTH, 320); set(CAP_PROP_FRAME_HEIGHT, 240); The first line is setting the width of the frames into 320 pixel and the...
[ { "code": null, "e": 1245, "s": 1062, "text": "We used 'set()' class of OpenCV. Using 'set()' class, we can set the height and width of the frames. The following lines are setting the height and width of the video in our program." }, { "code": null, "e": 1277, "s": 1245, "text": ...
Loading Well Log Data From DLIS using Python | by Andy McDonald | Towards Data Science
There are a number of different formats that well log and petrophysical data can be stored in. In the earlier articles and notebooks of this series, we have mainly focused on loading data from CSV files (here) and LAS files (here and here). Even though LAS files are one of the common formats, they have a flat structure...
[ { "code": null, "e": 875, "s": 172, "text": "There are a number of different formats that well log and petrophysical data can be stored in. In the earlier articles and notebooks of this series, we have mainly focused on loading data from CSV files (here) and LAS files (here and here). Even though LA...
Bits manipulation (Important tactics) in C++
Let’s first recall the about bits and the bitwise operator is short. Bit is a binary digit. It is the smallest unit of data that is understandable by the computer. In can have only one of the two values 0 (denotes OFF) and 1 (denotes ON). Bitwise operators are the operators that work a bit level in the program. These o...
[ { "code": null, "e": 1131, "s": 1062, "text": "Let’s first recall the about bits and the bitwise operator is short." }, { "code": null, "e": 1301, "s": 1131, "text": "Bit is a binary digit. It is the smallest unit of data that is understandable by the computer. In can have only o...
norm() function in C++ with Examples
In this article we will be discussing the working, syntax and examples of norm() function in C++ STL. norm() function is an inbuilt function in C++ STL, which is defined in <complex> header file. norm() function is used to get the norm value of a complex number. Norm value of a complex number is the squared magnitude o...
[ { "code": null, "e": 1164, "s": 1062, "text": "In this article we will be discussing the working, syntax and examples of norm() function in C++ STL." }, { "code": null, "e": 1325, "s": 1164, "text": "norm() function is an inbuilt function in C++ STL, which is defined in <complex>...
Find sum of all elements in a matrix except the elements in row and-or column of given cell in Python
Suppose we have a 2D matrix and a set of cell indexes. Cell indices are represented as (i, j) where i is row and j is column, now, for every given cell index (i, j), we have to find the sums of all matrix elements excluding the elements present in ith row and/or jth column. So, if the input is like cell indices = [(0, ...
[ { "code": null, "e": 1337, "s": 1062, "text": "Suppose we have a 2D matrix and a set of cell indexes. Cell indices are represented as (i, j) where i is row and j is column, now, for every given cell index (i, j), we have to find the sums of all matrix elements excluding the elements present in ith r...
SQL Tryit Editor v1.6
CREATE TABLE Persons ( ID int NOT NULL, LastName varchar(255) NOT NULL, FirstName varchar(255) NOT NULL, Age int ); ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of ...
[ { "code": null, "e": 23, "s": 0, "text": "CREATE TABLE Persons (" }, { "code": null, "e": 44, "s": 23, "text": " ID int NOT NULL," }, { "code": null, "e": 80, "s": 44, "text": " LastName varchar(255) NOT NULL," }, { "code": null, "e": 117, ...
Difference between Tree Set and Hash Set in Java
Hash set and tree set both belong to the collection framework. HashSet is the implementation of the Set interface whereas Tree set implements sorted set. Tree set is backed by TreeMap while HashSet is backed by a hashmap. class TreeSetExmaple { public static void main(String[] args){ TreeSet<String> treeset = ...
[ { "code": null, "e": 1284, "s": 1062, "text": "Hash set and tree set both belong to the collection framework. HashSet is the implementation of the Set interface whereas Tree set implements sorted set. Tree set is backed by TreeMap while HashSet is backed by a hashmap." }, { "code": null, ...
Recursion in array to find odd numbers and push to new variable JavaScript
We are required to write a recursive function, say pushRecursively(), which takes in an array of numbers and returns an object containing odd and even properties where odd is an array of odd numbers from input array and even an array of even numbers from input array. This has to be done using recursion and no type of l...
[ { "code": null, "e": 1409, "s": 1062, "text": "We are required to write a recursive function, say pushRecursively(), which takes in an array of\nnumbers and returns an object containing odd and even properties where odd is an array of odd\nnumbers from input array and even an array of even numbers f...
How to declare boolean variables in JavaScript?
A boolean variable in JavaScript has two values True or False. You can try to run the following code to learn how to work with Boolean variables − <!DOCTYPE html> <html> <body> <p>35 > 20</p> <button onclick="myValue()">Click for result</button> <p id="test"></p> <script> function my...
[ { "code": null, "e": 1125, "s": 1062, "text": "A boolean variable in JavaScript has two values True or False." }, { "code": null, "e": 1209, "s": 1125, "text": "You can try to run the following code to learn how to work with Boolean variables −" }, { "code": null, "e"...
R - Databases
The data is Relational database systems are stored in a normalized format. So, to carry out statistical computing we will need very advanced and complex Sql queries. But R can connect easily to many relational databases like MySql, Oracle, Sql server etc. and fetch records from them as a data frame. Once the data is av...
[ { "code": null, "e": 2865, "s": 2402, "text": "The data is Relational database systems are stored in a normalized format. So, to carry out statistical computing we will need very advanced and complex Sql queries. But R can connect easily to many relational databases like MySql, Oracle, Sql server et...
How to add a method to a JavaScript object?
Adding a method to a javascript object is easier than adding a method to an object constructor. We need to assign the method to the existing property to ensure task completion. In the following example, initially, the object type is created and later on, the properties of the object were created. Once the creation of p...
[ { "code": null, "e": 1239, "s": 1062, "text": "Adding a method to a javascript object is easier than adding a method to an object constructor. We need to assign the method to the existing property to ensure task completion." }, { "code": null, "e": 1515, "s": 1239, "text": "In th...
How can we show/hide the table header of a JTable in Java?
A JTable is a subclass of JComponent class for displaying complex data structures. A JTable can follow the Model View Controller (MVC) design pattern for displaying the data in rows and columns. The DefaultTableModel class is a subclass of AbstractTableModel and it can be used to add the rows and columns to a JTable dy...
[ { "code": null, "e": 1666, "s": 1062, "text": "A JTable is a subclass of JComponent class for displaying complex data structures. A JTable can follow the Model View Controller (MVC) design pattern for displaying the data in rows and columns. The DefaultTableModel class is a subclass of AbstractTable...
Removing minimize/maximize buttons in Tkinter
When we run our tkinter application, it initially displays a window that has an interface to display all the widgets. Eventually, we can remove the maximizing and minimizing property of the displayed window by using the resizable(boolean) method. It takes two Boolean values that refer to the status of width and height ...
[ { "code": null, "e": 1506, "s": 1062, "text": "When we run our tkinter application, it initially displays a window that has an interface to display all the widgets. Eventually, we can remove the maximizing and minimizing property of the displayed window by using the resizable(boolean) method. It tak...
How to join two strings to convert to a single string in Python?
To join 2 strings in Python, we can use the concatenation operator, '+'. For example: str1 = "Hello" str2 = "World" str3 = str1 + str2 print str3 This will give us the output: HelloWorld We can also use str.join(seq) to join multiple strings together. For example: s = "-"; seq = ("a", "b", "c"); # This is sequence of s...
[ { "code": null, "e": 1148, "s": 1062, "text": "To join 2 strings in Python, we can use the concatenation operator, '+'. For example:" }, { "code": null, "e": 1208, "s": 1148, "text": "str1 = \"Hello\"\nstr2 = \"World\"\nstr3 = str1 + str2\nprint str3" }, { "code": null, ...
Creating Classes in Python
The class statement creates a new class definition. The name of the class immediately follows the keyword class followed by a colon as follows − class ClassName: 'Optional class documentation string' class_suite The class has a documentation string, which can be accessed via ClassName.__doc__. The class_suite consists ...
[ { "code": null, "e": 1207, "s": 1062, "text": "The class statement creates a new class definition. The name of the class immediately follows the keyword class followed by a colon as follows −" }, { "code": null, "e": 1274, "s": 1207, "text": "class ClassName:\n'Optional class doc...
Data Science with Medium Story Stats in Python | by Will Koehrsen | Towards Data Science
Medium is a great place to write: no distracting features, a large — yet civil — readership, and, best of all, no advertisements. However, one aspect where it falls short is in the statistics you can see for your articles. Sure, you can go to the stats page, but all you get to see is some plain numbers and a bar chart ...
[ { "code": null, "e": 626, "s": 172, "text": "Medium is a great place to write: no distracting features, a large — yet civil — readership, and, best of all, no advertisements. However, one aspect where it falls short is in the statistics you can see for your articles. Sure, you can go to the stats pa...
Android - Event Handling
Events are a useful way to collect data about a user's interaction with interactive components of Applications. Like button presses or screen touch etc. The Android framework maintains an event queue as first-in, first-out (FIFO) basis. You can capture these events in your program and take appropriate action as per req...
[ { "code": null, "e": 3938, "s": 3607, "text": "Events are a useful way to collect data about a user's interaction with interactive components of Applications. Like button presses or screen touch etc. The Android framework maintains an event queue as first-in, first-out (FIFO) basis. You can capture ...
CakePHP - File upload
To work on file upload we are going to use the form helper. Here, is an example for file upload. Make Changes in the config/routes.php file, as shown in the following program. <?php use Cake\Http\Middleware\CsrfProtectionMiddleware; use Cake\Routing\Route\DashedRoute; use Cake\Routing\RouteBuilder; $routes->setRouteCla...
[ { "code": null, "e": 2339, "s": 2242, "text": "To work on file upload we are going to use the form helper. Here, is an example for file upload." }, { "code": null, "e": 2418, "s": 2339, "text": "Make Changes in the config/routes.php file, as shown in the following program." }, ...
How to use Node.js REPL ? - GeeksforGeeks
15 Feb, 2022 Node.Js REPL or Read-Evaluate-Print Loop is an interactive shell for the Node.js environment which means we can write any valid Javascript code in it. This is used to test, evaluate, experiment, or debug code much easier and accessible way. It basically acts as the Browser’s Web dev tools’ Console for Java...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n15 Feb, 2022" }, { "code": null, "e": 26584, "s": 26267, "text": "Node.Js REPL or Read-Evaluate-Print Loop is an interactive shell for the Node.js environment which means we can write any valid Javascript code in it. This is used...
Node Jimp | rotate - GeeksforGeeks
19 Feb, 2021 Introduction The rotate() function is an inbuilt function in Nodejs | Jimp which rotates the image clockwise and the dimensions of the image remain same.Syntax: rotate(r, mode, cb) Parameter: r – This parameter stores the rotation angle for the image. mode – This is optional parameter which stores the ...
[ { "code": null, "e": 25603, "s": 25575, "text": "\n19 Feb, 2021" }, { "code": null, "e": 25766, "s": 25603, "text": "Introduction The rotate() function is an inbuilt function in Nodejs | Jimp which rotates the image clockwise and the dimensions of the image remain same.Syntax: "...
Python - Smallest K values in Dictionary - GeeksforGeeks
17 Dec, 2019 Many times while working with Python dictionary, we can have a particular problem to find the K minima of values in numerous keys. This problem is quite common while working with web development domain. Let’s discuss several ways in which this task can be performed. Method #1 : itemgetter() + items() + sor...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n17 Dec, 2019" }, { "code": null, "e": 25822, "s": 25555, "text": "Many times while working with Python dictionary, we can have a particular problem to find the K minima of values in numerous keys. This problem is quite common whi...
D3.js | d3.entries() Function - GeeksforGeeks
03 May, 2021 Disclaimer: in version 6 of D3.js function d3.entries got deprecated. Object.entries should be used instead. The d3.entries function in D3.js is used to return an array containing the property names and property values of the specified object.Syntax: d3.entries(object) Parameters: the function accepts a ...
[ { "code": null, "e": 25917, "s": 25889, "text": "\n03 May, 2021" }, { "code": null, "e": 26026, "s": 25917, "text": "Disclaimer: in version 6 of D3.js function d3.entries got deprecated. Object.entries should be used instead." }, { "code": null, "e": 26170, "s": 2...
Choropleth Maps using Plotly in Python - GeeksforGeeks
05 Nov, 2021 Plotly is a Python library that is very popular among data scientists to create interactive data visualizations. One of the visualizations available in Plotly is Choropleth Maps. Choropleth maps are used to plot maps with shaded or patterned areas which are proportional to a statistical variable. They are...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n05 Nov, 2021" }, { "code": null, "e": 25940, "s": 25537, "text": "Plotly is a Python library that is very popular among data scientists to create interactive data visualizations. One of the visualizations available in Plotly is C...
Check if Array forms an increasing-decreasing sequence or vice versa - GeeksforGeeks
01 Apr, 2022 Given an array arr[] of N integers, the task is to find if the array can be divided into 2 sub-array such that the first sub-array is strictly increasing and the second sub-array is strictly decreasing or vice versa. If the given array can be divided then print “Yes” else print “No”. Examples: Input: arr[...
[ { "code": null, "e": 26791, "s": 26763, "text": "\n01 Apr, 2022" }, { "code": null, "e": 27076, "s": 26791, "text": "Given an array arr[] of N integers, the task is to find if the array can be divided into 2 sub-array such that the first sub-array is strictly increasing and the s...
How to randomly select rows of an array in Python with NumPy ? - GeeksforGeeks
25 Feb, 2021 In this article, we will see two different methods on how to randomly select rows of an array in Python with NumPy. Let’s see different methods by which we can select random rows of an array: Method 1: We will be using the function shuffle(). The shuffle() function shuffles the rows of an array randomly a...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n25 Feb, 2021" }, { "code": null, "e": 25730, "s": 25537, "text": " In this article, we will see two different methods on how to randomly select rows of an array in Python with NumPy. Let’s see different methods by which we can se...
Koko Eating Bananas - GeeksforGeeks
27 Oct, 2021 Given N piles of bananas, the ith pile has piles[i] bananas and H hours time until guards return (N < H). Find the minimum (S) bananas to eat per hour such that Koko can eat all the bananas within H hours. Each hour, Koko chooses some pile of bananas and eats S bananas from that pile. If the pile has less ...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n27 Oct, 2021" }, { "code": null, "e": 26471, "s": 26067, "text": "Given N piles of bananas, the ith pile has piles[i] bananas and H hours time until guards return (N < H). Find the minimum (S) bananas to eat per hour such that Ko...
std::generate in C++ - GeeksforGeeks
21 Jul, 2017 std::generate, as the name suggests is an STL algorithm, which is used to generate numbers based upon a generator function, and then, it assigns those values to the elements in the container in the range [first, last). The generator function has to be defined by the user, and it is called successively for ...
[ { "code": null, "e": 25597, "s": 25569, "text": "\n21 Jul, 2017" }, { "code": null, "e": 25816, "s": 25597, "text": "std::generate, as the name suggests is an STL algorithm, which is used to generate numbers based upon a generator function, and then, it assigns those values to th...
Find the sum of infinite series 1^2.x^0 + 2^2.x^1 + 3^2.x^2 + 4^2.x^3 +....... - GeeksforGeeks
22 Mar, 2021 Given an infinite series and a value x, the task is to find its sum. Below is the infinite series 1^2*x^0 + 2^2*x^1 + 3^2*x^2 + 4^2*x^3 +....... upto infinity, where x belongs to (-1, 1) Examples: Input: x = 0.5 Output: 12 Input: x = 0.9 Output: 1900 Approach:Though the given series is not an Arithm...
[ { "code": null, "e": 25961, "s": 25933, "text": "\n22 Mar, 2021" }, { "code": null, "e": 26061, "s": 25961, "text": "Given an infinite series and a value x, the task is to find its sum. Below is the infinite series " }, { "code": null, "e": 26150, "s": 26061, ...
Minimum number of Appends needed to make a string palindrome - GeeksforGeeks
02 Dec, 2021 Given a string s we need to tell minimum characters to be appended (insertion at the end) to make a string palindrome. Examples: Input : s = "abede" Output : 2 We can make string palindrome as "abedeba" by adding ba at the end of the string. Input : s = "aabb" Output : 2 We can make string palindrome as...
[ { "code": null, "e": 26373, "s": 26345, "text": "\n02 Dec, 2021" }, { "code": null, "e": 26493, "s": 26373, "text": "Given a string s we need to tell minimum characters to be appended (insertion at the end) to make a string palindrome. " }, { "code": null, "e": 26504,...
How to remove non-alphanumeric characters in PHP? - GeeksforGeeks
10 Oct, 2018 Non-alphanumeric characters can be remove by using preg_replace() function. This function perform regular expression search and replace. The function preg_replace() searches for string specified by pattern and replaces pattern with replacement if found. Examples: Input : !@GeeksforGeeks2018? Output : Geeks...
[ { "code": null, "e": 26333, "s": 26305, "text": "\n10 Oct, 2018" }, { "code": null, "e": 26587, "s": 26333, "text": "Non-alphanumeric characters can be remove by using preg_replace() function. This function perform regular expression search and replace. The function preg_replace(...
Maximum element between two nodes of BST - GeeksforGeeks
19 Apr, 2022 Given an array of N elements and two integers A, B which belong to the given array. Create a Binary Search Tree by inserting elements from arr[0] to arr[n-1]. The task is to find the maximum element in the path from A to B.Examples : Input : arr[] = { 18, 36, 9, 6, 12, 10, 1, 8 }, a = 1, ...
[ { "code": null, "e": 26047, "s": 26019, "text": "\n19 Apr, 2022" }, { "code": null, "e": 26283, "s": 26047, "text": "Given an array of N elements and two integers A, B which belong to the given array. Create a Binary Search Tree by inserting elements from arr[0] to arr[n-1]. The ...
Program to calculate Height and Depth of a node in a Binary Tree - GeeksforGeeks
30 Jun, 2021 Given a Binary Tree consisting of N nodes and a integer K, the task is to find the depth and height of the node with value K in the Binary Tree. The depth of a node is the number of edges present in path from the root node of a tree to that node.The height of a node is the number of edges present in the l...
[ { "code": null, "e": 26249, "s": 26221, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26395, "s": 26249, "text": "Given a Binary Tree consisting of N nodes and a integer K, the task is to find the depth and height of the node with value K in the Binary Tree. " }, { "co...
Check for Presence of Common Elements between Objects in R Programming - is.element() Function - GeeksforGeeks
15 Jun, 2020 is.element() function in R Language is used to check if elements of first Objects are present in second Object or not. It returns TRUE for each equal value. Syntax: is.element(x, y) Parameters:x and y: Objects with sequence of items Example 1: # R program to illustrate # the use of is.element() function ...
[ { "code": null, "e": 26273, "s": 26245, "text": "\n15 Jun, 2020" }, { "code": null, "e": 26430, "s": 26273, "text": "is.element() function in R Language is used to check if elements of first Objects are present in second Object or not. It returns TRUE for each equal value." }, ...
PostgreSQL - UUID Data Type - GeeksforGeeks
22 Feb, 2021 UUID is an abbreviation for Universal Unique Identifier defined by RFC 4122 and has a size of 128-bit. It is created using internal algorithms that always generate a unique value. PostgreSQL has its own UUID data type and provides modules to generate them. UUID is generally used in distributed systems as i...
[ { "code": null, "e": 25167, "s": 25139, "text": "\n22 Feb, 2021" }, { "code": null, "e": 25347, "s": 25167, "text": "UUID is an abbreviation for Universal Unique Identifier defined by RFC 4122 and has a size of 128-bit. It is created using internal algorithms that always generate...
Python Tkinter | Create LabelFrame and add widgets to it - GeeksforGeeks
02 Apr, 2019 Tkinter is a Python module which is used to create GUI (Graphical User Interface) applications. It is a widely used module which comes along with the Python. It consists of various types of widgets which can be used to make GUI more user-friendly and attractive as well as functionality can be increased. La...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n02 Apr, 2019" }, { "code": null, "e": 25842, "s": 25537, "text": "Tkinter is a Python module which is used to create GUI (Graphical User Interface) applications. It is a widely used module which comes along with the Python. It co...
CLR Parser (with Examples) - GeeksforGeeks
05 Jan, 2022 LR parsers :It is an efficient bottom up syntax analysis technique that can be used to parse large classes of context-free grammar is called LR(k) parsing. L stands for left to right scanningR stands for rightmost derivation in reverse0 stands for no. of input symbols of lookaheadFor more reference ,kin...
[ { "code": null, "e": 25665, "s": 25637, "text": "\n05 Jan, 2022" }, { "code": null, "e": 26025, "s": 25665, "text": "LR parsers :It is an efficient bottom up syntax analysis technique that can be used to parse large classes of context-free grammar is called LR(k) parsing. L sta...
FuzzyWuzzy: Fuzzy String Matching in Python | Towards Data Science
If you have dealt with text data before, you know that its issues are the hardest to deal with. There is just no one-size-fits-all solution to text problems and for each dataset, you have to come up with new ways to clean your data. In one of my previous articles, I talked about the worst-case scenario of such problems...
[ { "code": null, "e": 369, "s": 47, "text": "If you have dealt with text data before, you know that its issues are the hardest to deal with. There is just no one-size-fits-all solution to text problems and for each dataset, you have to come up with new ways to clean your data. In one of my previous a...
7 forecasting techniques you’ll never use, but should know them anyway | by Mahbubul Alam | Towards Data Science
The time series forecasting toolbox is like the Swiss army knife — many options to choose from. These options often leave data scientists overwhelmed, puzzled, and sometimes outright confused. Last time I checked, there are at least 25 different techniques. But fortunately, they are really not much different from one a...
[ { "code": null, "e": 240, "s": 47, "text": "The time series forecasting toolbox is like the Swiss army knife — many options to choose from. These options often leave data scientists overwhelmed, puzzled, and sometimes outright confused." }, { "code": null, "e": 515, "s": 240, "te...
Sqrt, sqrtl, and sqrtf in C++ programming
This article demonstrates the usage of math class essentials functions sqrt(), sqrtl(), and sqrtf() to calculate the square root of double, long, and float type variables with precision respectively. The Math class of C++ offers a wide range of functions to calculate mathematical calculations including sin, cos, square...
[ { "code": null, "e": 1550, "s": 1062, "text": "This article demonstrates the usage of math class essentials functions sqrt(), sqrtl(), and sqrtf() to calculate the square root of double, long, and float type variables with precision respectively. The Math class of C++ offers a wide range of function...
MFC - Timer
A timer is a non-spatial object that uses recurring lapses of time from a computer or from your application. To work, every lapse of period, the control sends a message to the operating system. Unlike most other controls, the MFC timer has neither a button to represent it nor a class. To create a timer, you simply call...
[ { "code": null, "e": 2527, "s": 2067, "text": "A timer is a non-spatial object that uses recurring lapses of time from a computer or from your application. To work, every lapse of period, the control sends a message to the operating system. Unlike most other controls, the MFC timer has neither a but...
How to concatenate variable in a string in jQuery?
You can easily concatenate variable in a string in jQuery, using the jQuery html() method. Try to run the following code to learn how to use variable in a string with jQuery − Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(...
[ { "code": null, "e": 1238, "s": 1062, "text": "You can easily concatenate variable in a string in jQuery, using the jQuery html() method. Try to run the following code to learn how to use variable in a string with jQuery −" }, { "code": null, "e": 1248, "s": 1238, "text": "Live D...
How to Build a Data Science Portfolio Website using Python | by Frank Andrade | Towards Data Science
As a data scientist, you need to have a portfolio website that helps you showcase your projects and profile in one place. You might already have a Github and LinkedIn page, but don’t expect a potential employer to look through all your code and posts to know more about you. Building a portfolio website can be as easy a...
[ { "code": null, "e": 447, "s": 172, "text": "As a data scientist, you need to have a portfolio website that helps you showcase your projects and profile in one place. You might already have a Github and LinkedIn page, but don’t expect a potential employer to look through all your code and posts to k...
How can we print all the capital letters of a given string in Java?
The Character class is a subclass of Object class and it wraps a value of the primitive type char in an object. An object of type Character class contains a single field whose type is char. We can print all the uppercase letters by iterating the characters of a string in a loop and check individual characters are upper...
[ { "code": null, "e": 1252, "s": 1062, "text": "The Character class is a subclass of Object class and it wraps a value of the primitive type char in an object. An object of type Character class contains a single field whose type is char." }, { "code": null, "e": 1477, "s": 1252, "...
DLL - Quick Guide
Dynamic linking is a mechanism that links applications to libraries at run time. The libraries remain in their own files and are not copied into the executable files of the applications. DLLs link to an application when the application is run, rather than when it is created. DLLs may contain links to other DLLs. Many t...
[ { "code": null, "e": 1966, "s": 1652, "text": "Dynamic linking is a mechanism that links applications to libraries at run time. The libraries remain in their own files and are not copied into the executable files of the applications. DLLs link to an application when the application is run, rather th...
Getting the remainder value after division in Julia - mod() Method - GeeksforGeeks
21 Apr, 2020 The mod() is an inbuilt function in julia which is used to return remainder when the specified dividend is divided by divisor. Syntax: mod(x, y) Parameters: x: Specified dividend. y: Specified divisor. Returns: It returns remainder when the specified dividend is divided by divisor. Example 1: # Julia progr...
[ { "code": null, "e": 24153, "s": 24125, "text": "\n21 Apr, 2020" }, { "code": null, "e": 24280, "s": 24153, "text": "The mod() is an inbuilt function in julia which is used to return remainder when the specified dividend is divided by divisor." }, { "code": null, "e":...
Find the first repeated character in a string using C++.
Suppose we have a string; we have to find the first character that is repeated. So is the string is “Hello Friends”, the first repeated character will be l. As there are two l’s one after another. To solve this, we will use the hashing technique. Create one hash table, scan each character one by one, if the character i...
[ { "code": null, "e": 1259, "s": 1062, "text": "Suppose we have a string; we have to find the first character that is repeated. So is the string is “Hello Friends”, the first repeated character will be l. As there are two l’s one after another." }, { "code": null, "e": 1482, "s": 1259...
__exit__ in Python - GeeksforGeeks
06 Dec, 2019 Context manager is used for managing resources used by the program. After completion of usage, we have to release memory and terminate connections between files. If they are not released then it will lead to resource leakage and may cause the system to either slow down or crash. Even if we do not release r...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n06 Dec, 2019" }, { "code": null, "e": 24681, "s": 24316, "text": "Context manager is used for managing resources used by the program. After completion of usage, we have to release memory and terminate connections between files. I...