title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Making publication-quality figures in Python (Part I): Fig and Axes | by Guangyuan(Frank) Li | Towards Data Science | In this whole series, I will share with you how I usually make publication-quality figures in Python. I want to really convey the ideas of how to gain full control of every element in a python plot. By the end of this tutorial, you will be able to fully understand the philosophy of making figures in Python.
Since it wi... | [
{
"code": null,
"e": 355,
"s": 46,
"text": "In this whole series, I will share with you how I usually make publication-quality figures in Python. I want to really convey the ideas of how to gain full control of every element in a python plot. By the end of this tutorial, you will be able to fully un... |
Manufacturing data analytics with Python: A hands-on example | by Tirthajyoti Sarkar | Towards Data Science | Before transitioning into the career of Data Science (DS) and Machine Learning (ML), I spent more than a decade as a Semiconductor Technologist and designer in the tech industry of Silicon Valley. I was part of the organizations that had massive manufacturing footprints — front-end wafer fabs, back-end assembly facilit... | [
{
"code": null,
"e": 502,
"s": 172,
"text": "Before transitioning into the career of Data Science (DS) and Machine Learning (ML), I spent more than a decade as a Semiconductor Technologist and designer in the tech industry of Silicon Valley. I was part of the organizations that had massive manufactu... |
Odious number - GeeksforGeeks | 08 Apr, 2021
Odious number is a nonnegative number that has an odd number of 1s in its binary expansion. The first few odious numbers are therefore 1, 2, 4, 7, 8, 11, 13, 14, 16, 19... Given a number check if its a odious number or not. Examples :
Input : 16
Output : Odious Number
Explanation: Binary expansion of 16 ... | [
{
"code": null,
"e": 24621,
"s": 24593,
"text": "\n08 Apr, 2021"
},
{
"code": null,
"e": 24858,
"s": 24621,
"text": "Odious number is a nonnegative number that has an odd number of 1s in its binary expansion. The first few odious numbers are therefore 1, 2, 4, 7, 8, 11, 13, 14, 1... |
Scala String getBytes() method with example - GeeksforGeeks | 03 Oct, 2019
The getBytes() method is utilized to encode a stated string into a series of bytes and then it stores it into a new byte array. Moreover, here platforms default charset is utilized.
Method Definition: byte getBytes()Return Type: It returns a new byte array storing series of bytes.
Example #1:
// Scala prog... | [
{
"code": null,
"e": 23695,
"s": 23667,
"text": "\n03 Oct, 2019"
},
{
"code": null,
"e": 23877,
"s": 23695,
"text": "The getBytes() method is utilized to encode a stated string into a series of bytes and then it stores it into a new byte array. Moreover, here platforms default ch... |
Python - Network Interface | When we have multiple interfaces in a machine we need to keep track of their names, status etc. In Python we can list the interfaces and their status.
In the below example we use the python module netifaces which gives the details of the interfaces and their status. The methods used are very simple and straight forwar... | [
{
"code": null,
"e": 2478,
"s": 2326,
"text": "When we have multiple interfaces in a machine we need to keep track of their names, status etc. In Python we can list the interfaces and their status. "
},
{
"code": null,
"e": 2649,
"s": 2478,
"text": "In the below example we use th... |
SharePoint - App Model | In this chapter, we will be covering the SharePoint deployment App models. Since, SharePoint is moving towards the cloud, the following deployment models are available to use Apps for SharePoint −
SharePoint-hosted
Autohosted
The SharePoint-hosted deployment type represents a way to deploy client-side, lightweight apps... | [
{
"code": null,
"e": 2512,
"s": 2315,
"text": "In this chapter, we will be covering the SharePoint deployment App models. Since, SharePoint is moving towards the cloud, the following deployment models are available to use Apps for SharePoint −"
},
{
"code": null,
"e": 2530,
"s": 2512... |
SAS - Box Plots | A Boxplot is graphical representation of groups of numerical data through their quartiles. Box plots may also have lines extending vertically from the boxes (whiskers) indicating variability outside the upper and lower quartiles. The bottom and top of the box are always the first and third quartiles, and the band insid... | [
{
"code": null,
"e": 3061,
"s": 2583,
"text": "A Boxplot is graphical representation of groups of numerical data through their quartiles. Box plots may also have lines extending vertically from the boxes (whiskers) indicating variability outside the upper and lower quartiles. The bottom and top of t... |
The 4 Recommendation Engines That Can Predict Your Movie Tastes | by James Le | Towards Data Science | “What movie should I watch this evening?”
Have you ever had to answer this question at least once when you came home from work? As for me — yes, and more than once. From Netflix to Hulu, the need to build robust movie recommendation systems is extremely important given the huge demand for personalized content of modern... | [
{
"code": null,
"e": 213,
"s": 171,
"text": "“What movie should I watch this evening?”"
},
{
"code": null,
"e": 503,
"s": 213,
"text": "Have you ever had to answer this question at least once when you came home from work? As for me — yes, and more than once. From Netflix to Hulu,... |
chdir() in C language with Examples - GeeksforGeeks | 04 Jan, 2019
The chdir command is a system function (system call) which is used to change the current working directory. On some systems, this command is used as an alias for the shell command cd. chdir changes the current working directory of the calling process to the directory specified in path.
Syntax:
int chdir(co... | [
{
"code": null,
"e": 24436,
"s": 24408,
"text": "\n04 Jan, 2019"
},
{
"code": null,
"e": 24723,
"s": 24436,
"text": "The chdir command is a system function (system call) which is used to change the current working directory. On some systems, this command is used as an alias for t... |
SQL Query to Alter Column Size in MySQL | 31 Aug, 2021
Sometimes you may need to change column size or change field length in MySQL. In this article, we will look at how to change column size in MySQL. You can use these commands to increase column size in MySQL or decrease it.
SQL ALTER TABLE Statement:
The ALTER TABLE statement is used to add, delete, or modi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 251,
"s": 28,
"text": "Sometimes you may need to change column size or change field length in MySQL. In this article, we will look at how to change column size in MySQL. You can use these commands t... |
How to Find LCM using Python? | LCM (Least common multiple) of two (or more) numbers is a number which is the smallest number that is divisible by both (or all).
First we find the larger number of two given numbers. Starting from it we try and find the first number that is divisible by both, which is LCM
x=12
y=20
if x > y:
greater = x
else: ... | [
{
"code": null,
"e": 1318,
"s": 1187,
"text": " LCM (Least common multiple) of two (or more) numbers is a number which is the smallest number that is divisible by both (or all)."
},
{
"code": null,
"e": 1462,
"s": 1318,
"text": "First we find the larger number of two given number... |
Collecting data with Scrapy | 08 Sep, 2021
Prerequisites:
Scrapy
SQLite3
Scrapy is a web scraping library that is used to scrape, parse and collect web data. Now once our spider has scraped the data then it decides whether to:
Keep the data.
Drop the data or items.
stop and store the processed data items.
Hence for all these functions, we are hav... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 44,
"s": 28,
"text": "Prerequisites: "
},
{
"code": null,
"e": 52,
"s": 44,
"text": "Scrapy "
},
{
"code": null,
"e": 60,
"s": 52,
"text": "SQLite3"
},
{
... |
SQL | Case Statement | 21 Mar, 2018
Control statements form the heart of most languages since they control the execution of other sets of statements. These are found in SQL too, and should be exploited for uses such as query filtering and query optimization through careful selection of tuples that match our requirement. In this post, we expl... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Mar, 2018"
},
{
"code": null,
"e": 532,
"s": 52,
"text": "Control statements form the heart of most languages since they control the execution of other sets of statements. These are found in SQL too, and should be exploited for uses... |
Raise a matrix to a fractional power in R | 21 Apr, 2021
Matrices can be raised to integral as well as non-integral powers in R Programming Language. The computation of power of a matrix involves simultaneous multiplication of matrix as many times as the power integer is specified. However, in the case of fractional powers, we need to use the in-built R function... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 366,
"s": 28,
"text": "Matrices can be raised to integral as well as non-integral powers in R Programming Language. The computation of power of a matrix involves simultaneous multiplication of matri... |
Introduction to Mocha | 30 Sep, 2020
Mocha is a testing framework for Javascript running on Node.js. The frameworks make it easier to test asynchronous Javascript concepts in the browser. Mocha is widely used for testing Javascript codes before deploying them onto the server.
Installation of the module:
Install Nodejs onto your system as moch... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Sep, 2020"
},
{
"code": null,
"e": 268,
"s": 28,
"text": "Mocha is a testing framework for Javascript running on Node.js. The frameworks make it easier to test asynchronous Javascript concepts in the browser. Mocha is widely used for... |
Program to Convert Hexadecimal to Octal | 27 Jun, 2022
Given a Hexadecimal number, the task is to convert it into an Octal number.Examples:
Input: Hexadecimal = 1AC
Output: Binary = 0654
Explanation:
Equivalent binary value of 1: 0001
Equivalent binary value of A: 1010
Equivalent binary value of C: 1100
Grouping in terms of 3: 000 110 101 100... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Jun, 2022"
},
{
"code": null,
"e": 114,
"s": 28,
"text": "Given a Hexadecimal number, the task is to convert it into an Octal number.Examples: "
},
{
"code": null,
"e": 534,
"s": 114,
"text": "Input: Hexadecimal =... |
How to save Matplotlib Animation? | 03 Mar, 2021
In this article, we will learn How to save Matplotlib Animation. The animated graphs made with the help of matplotlib can be saved as videos in Python. As we can create captivating animations using the matplotlib library. If you want to learn to create animations, here is a link to the article to create an... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 515,
"s": 28,
"text": "In this article, we will learn How to save Matplotlib Animation. The animated graphs made with the help of matplotlib can be saved as videos in Python. As we can create captiv... |
Intersection of two arrays | Practice | GeeksforGeeks | Given two arrays a[] and b[] respectively of size n and m, the task is to print the count of elements in the intersection (or common elements) of the two arrays.
For this question, the intersection of two arrays can be defined as the set containing distinct common elements between the two arrays.
Example 1:
Input:
n =... | [
{
"code": null,
"e": 400,
"s": 238,
"text": "Given two arrays a[] and b[] respectively of size n and m, the task is to print the count of elements in the intersection (or common elements) of the two arrays."
},
{
"code": null,
"e": 537,
"s": 400,
"text": "For this question, the i... |
tf-idf Model for Page Ranking | 26 May, 2022
tf-idf stands for Term frequency-inverse document frequency. The tf-idf weight is a weight often used in information retrieval and text mining. Variations of the tf-idf weighting scheme are often used by search engines in scoring and ranking a document’s relevance given a query. This weight is a statistica... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 May, 2022"
},
{
"code": null,
"e": 617,
"s": 54,
"text": "tf-idf stands for Term frequency-inverse document frequency. The tf-idf weight is a weight often used in information retrieval and text mining. Variations of the tf-idf weigh... |
Path length having maximum number of bends | 30 Mar, 2022
Given a binary tree, find the path length having maximum number of bends. Note: Here, bend indicates switching from left to right or vice versa while traversing in the tree. For example, consider below paths (L means moving leftwards, R means moving rightwards): LLRRRR – 1 Bend RLLLRR – 2 Bends LRLRLR – 5 ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Mar, 2022"
},
{
"code": null,
"e": 433,
"s": 54,
"text": "Given a binary tree, find the path length having maximum number of bends. Note: Here, bend indicates switching from left to right or vice versa while traversing in the tree. ... |
std::string::back() in C++ with Examples | 28 May, 2019
This function returns a direct reference to the last character of the string. This shall only be used on non-empty strings.This can be used to access the last character of the string as well as to append a character at the end of the string. Length of the string remains unchanged after appending a characte... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 May, 2019"
},
{
"code": null,
"e": 392,
"s": 28,
"text": "This function returns a direct reference to the last character of the string. This shall only be used on non-empty strings.This can be used to access the last character of the... |
Make all numbers of an array equal | 23 Jun, 2022
Given an array arr[], the task is to make all the array elements equal with the given operation. In a single operation, any element of the array can be either multiplied by 2 or by 3. If its possible to make all the array elements equal with the given operation then print Yes else print No.
Examples:
Inpu... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 345,
"s": 53,
"text": "Given an array arr[], the task is to make all the array elements equal with the given operation. In a single operation, any element of the array can be either multiplied by 2... |
Python | Replace multiple characters at once | 01 Jul, 2019
The replacement of one character with another is a common problem that every python programmer would have worked with in the past. But sometimes, we require a simple one line solution which can perform this particular task. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using n... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Jul, 2019"
},
{
"code": null,
"e": 340,
"s": 52,
"text": "The replacement of one character with another is a common problem that every python programmer would have worked with in the past. But sometimes, we require a simple one line... |
VBA - LBound Function | The LBound Function returns the smallest subscript of the specified array. Hence, LBound of an array is ZERO.
LBound(ArrayName[,dimension])
ArrayName − A required parameter. This parameter corresponds to the name of the array.
ArrayName − A required parameter. This parameter corresponds to the name of the array.
Dimen... | [
{
"code": null,
"e": 2045,
"s": 1935,
"text": "The LBound Function returns the smallest subscript of the specified array. Hence, LBound of an array is ZERO."
},
{
"code": null,
"e": 2076,
"s": 2045,
"text": "LBound(ArrayName[,dimension])\n"
},
{
"code": null,
"e": 216... |
How do I verify that a string only contains letters, numbers, underscores and dashes in Python? | You can use regular expressions to achieve this task. In order to verify that the string only contains letters, numbers, underscores and dashes, we can use the following regex: "^[A-Za-z0-9_-]*$".
import re
print(bool(re.match("^[A-Za-z0-9_-]*$", 'aValidString123--__')))
print(bool(re.match("^[A-Za-z0-9_-]*$", 'inv@li... | [
{
"code": null,
"e": 1260,
"s": 1062,
"text": "You can use regular expressions to achieve this task. In order to verify that the string only contains letters, numbers, underscores and dashes, we can use the following regex: \"^[A-Za-z0-9_-]*$\". "
},
{
"code": null,
"e": 1388,
"s": 1... |
Requests - Handling Redirection | This chapter will take a look at how the Request library handles the url redirection case.
import requests
getdata = requests.get('http://google.com/')
print(getdata.status_code)
print(getdata.history)
The url: http://google.com will be redirected using status code 301(Moved Permanently) to https://www.google.com/.... | [
{
"code": null,
"e": 2279,
"s": 2188,
"text": "This chapter will take a look at how the Request library handles the url redirection case."
},
{
"code": null,
"e": 2394,
"s": 2279,
"text": "import requests\ngetdata = requests.get('http://google.com/')\nprint(getdata.status_code)\n... |
Dramatically Improve Your Exploratory Data Analysis (EDA) | by Francis Adrian Viernes | Towards Data Science | Exploratory data analysis (EDA) is the process of exploring data and investigating its structure to discover patterns and spot anomalies from said patterns.
EDA would then involve summarizing the data with the use of statistics and visualization methods to spot non-numerical patterns.
Ideally, EDA should bring out insi... | [
{
"code": null,
"e": 329,
"s": 172,
"text": "Exploratory data analysis (EDA) is the process of exploring data and investigating its structure to discover patterns and spot anomalies from said patterns."
},
{
"code": null,
"e": 458,
"s": 329,
"text": "EDA would then involve summar... |
Android - JSON Parser | JSON stands for JavaScript Object Notation.It is an independent data exchange format and is the best alternative for XML. This chapter explains how to parse the JSON file and extract necessary information from it.
Android provides four different classes to manipulate JSON data. These classes are JSONArray,JSONObject,JS... | [
{
"code": null,
"e": 3821,
"s": 3607,
"text": "JSON stands for JavaScript Object Notation.It is an independent data exchange format and is the best alternative for XML. This chapter explains how to parse the JSON file and extract necessary information from it."
},
{
"code": null,
"e": 39... |
Python Support for bzip2 compression (bz2) | The bzip2 is an open source algorithm for compression and decompression of files. Python’s bz2 module provides functionality to implement bzip2 algorithm programmatically.
The open() function is the primary interface to this module.
This function opens a bzip2 compressed file and returns a file object. The file can be ... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "The bzip2 is an open source algorithm for compression and decompression of files. Python’s bz2 module provides functionality to implement bzip2 algorithm programmatically."
},
{
"code": null,
"e": 1295,
"s": 1234,
"text": "The open()... |
SAP ABAP - Native SQL Overview | The term ‘Native SQL’ refers to all statements that can be statically transferred to the Native SQL interface of the database interface. Native SQL statements do not fall within the language scope of ABAP and do not follow the ABAP syntax. ABAP merely contains statements for isolating program sections in which Native S... | [
{
"code": null,
"e": 3247,
"s": 2898,
"text": "The term ‘Native SQL’ refers to all statements that can be statically transferred to the Native SQL interface of the database interface. Native SQL statements do not fall within the language scope of ABAP and do not follow the ABAP syntax. ABAP merely c... |
Java Examples - Multiple Exceptions (Array out of bound) | How to handle multiple exceptions while array is out of bound ?
This example shows how to handle multiple exception methods by using System.err.println() method of System class.
public class Main {
public static void main (String args[]) {
int array[] = {20,20,40};
int num1 = 15, num2 = 10;
int res... | [
{
"code": null,
"e": 2132,
"s": 2068,
"text": "How to handle multiple exceptions while array is out of bound ?"
},
{
"code": null,
"e": 2246,
"s": 2132,
"text": "This example shows how to handle multiple exception methods by using System.err.println() method of System class."
}... |
How to try Docker EE UCP for free? | by Engy Fouda | Towards Data Science | Everyone is moving to microservices and dockerizing monolithic applications. Newbies to docker who would like to familiarize themselves with Docker can use the Docker Playground. It is free!
I always recommend my students use Google Chrome as the browser. Usually, it won’t ask for entering your Docker Hub ID and passwo... | [
{
"code": null,
"e": 363,
"s": 172,
"text": "Everyone is moving to microservices and dockerizing monolithic applications. Newbies to docker who would like to familiarize themselves with Docker can use the Docker Playground. It is free!"
},
{
"code": null,
"e": 560,
"s": 363,
"tex... |
HTML | <bgsound> tag | 27 Aug, 2019
The HTML <bgsound> tag is used to play the soundtrack in the background, when you leave the page behind and open a new tab this tag will continuously play the track in the background.This tag is not for other browsers except the Internet Explorer. It does not display any graphical interface just played the... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Aug, 2019"
},
{
"code": null,
"e": 386,
"s": 53,
"text": "The HTML <bgsound> tag is used to play the soundtrack in the background, when you leave the page behind and open a new tab this tag will continuously play the track in the ba... |
Python | Remove given character from Strings list | 29 Nov, 2019
Sometimes, while working with Python list, we can have a problem in which we need to remove a particular character from each string from list. This kind of application can come in many domains. Let’s discuss certain ways to solve this problem.
Method #1 : Using replace() + enumerate() + loopThis is brute f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Nov, 2019"
},
{
"code": null,
"e": 272,
"s": 28,
"text": "Sometimes, while working with Python list, we can have a problem in which we need to remove a particular character from each string from list. This kind of application can com... |
IPL Score Prediction using Deep Learning | 04 Jul, 2021
Since the dawn of the IPL in 2008, it has attracted viewers all around the globe. A high level of uncertainty and last moment nail biters has urged fans to watch the matches. Within a short period, IPL has become the highest revenue-generating league of cricket. In a cricket match, we often see the scoreli... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n04 Jul, 2021"
},
{
"code": null,
"e": 788,
"s": 54,
"text": "Since the dawn of the IPL in 2008, it has attracted viewers all around the globe. A high level of uncertainty and last moment nail biters has urged fans to watch the matches.... |
YACC program to check whether given string is Palindrome or not | 15 Oct, 2019
Problem: Write a YACC program to check whether given string is Palindrome or not.
Explanation:Yacc (for “yet another compiler compiler.”) is the standard parser generator for the Unix operating system. An open source program, yacc generates code for the parser in the C programming language. The acronym is ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Oct, 2019"
},
{
"code": null,
"e": 136,
"s": 54,
"text": "Problem: Write a YACC program to check whether given string is Palindrome or not."
},
{
"code": null,
"e": 433,
"s": 136,
"text": "Explanation:Yacc (for “... |
jQuery | css() Method | 11 Aug, 2021
The JQuery library supports almost all the selectors that are included in the Cascading Style Sheet (CSS). The css() method in JQuery is used to change the style property of the selected element. The css() in JQuery can be used in different ways.css() method can used to check the present value of the prope... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 389,
"s": 52,
"text": "The JQuery library supports almost all the selectors that are included in the Cascading Style Sheet (CSS). The css() method in JQuery is used to change the style property of ... |
How to Scrape Websites with Beautifulsoup and Python ? | 25 Jun, 2021
Have you ever wondered how much data is created on the internet every day, and what if you want to work with those data? Unfortunately, this data is not properly organized like some CSV or JSON file but fortunately, we can use web scraping to scrape the data from the internet and can use it according to ou... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2021"
},
{
"code": null,
"e": 425,
"s": 28,
"text": "Have you ever wondered how much data is created on the internet every day, and what if you want to work with those data? Unfortunately, this data is not properly organized lik... |
Syntax Directed Translation in Compiler Design | 26 May, 2022
Parser uses a CFG(Context-free-Grammar) to validate the input string and produce output for the next phase of the compiler. Output could be either a parse tree or an abstract syntax tree. Now to interleave semantic analysis with the syntax analysis phase of the compiler, we use Syntax Directed Translation.... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 May, 2022"
},
{
"code": null,
"e": 361,
"s": 52,
"text": "Parser uses a CFG(Context-free-Grammar) to validate the input string and produce output for the next phase of the compiler. Output could be either a parse tree or an abstract... |
JavaScript | Convert bytes to human-readable string | 07 Jun, 2019
Given the size of a file(in Bytes), The task is to convert it into human-readable form using JavaScript. Here are few methods discussed.
Example 1: This example converts the file Size(in Bytes) into human-readable form. It shows the values in decimal and for less than 1024 Bytes, it remains in Bytes.
<!DOC... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jun, 2019"
},
{
"code": null,
"e": 165,
"s": 28,
"text": "Given the size of a file(in Bytes), The task is to convert it into human-readable form using JavaScript. Here are few methods discussed."
},
{
"code": null,
"e": 3... |
jQuery UI Sortable receive Event | 10 Jan, 2022
jQuery UI is a web-based technology and consists of various GUI widgets, visual effects, and themes. These features can be implemented using the jQuery JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web application... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jan, 2022"
},
{
"code": null,
"e": 375,
"s": 28,
"text": "jQuery UI is a web-based technology and consists of various GUI widgets, visual effects, and themes. These features can be implemented using the jQuery JavaScript Library. jQu... |
Scikit Learn - Quick Guide | In this chapter, we will understand what is Scikit-Learn or Sklearn, origin of Scikit-Learn and some other related topics such as communities and contributors responsible for development and maintenance of Scikit-Learn, its prerequisites, installation and its features.
Scikit-learn (Sklearn) is the most useful and robu... | [
{
"code": null,
"e": 2625,
"s": 2355,
"text": "In this chapter, we will understand what is Scikit-Learn or Sklearn, origin of Scikit-Learn and some other related topics such as communities and contributors responsible for development and maintenance of Scikit-Learn, its prerequisites, installation a... |
How to Pass the Query String Parameters to AWS Lambda Function or HTTP Endpoint? | 03 Feb, 2022
In this article, we will explore the process of passing query string parameters from a client to the Backend Lambda or HTTP endpoint API gateway. As we know there are two types of integrations for Lambda and HTTP endpoints. The first kind is Proxy integration and second kind is Non-proxy integration. While... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Feb, 2022"
},
{
"code": null,
"e": 521,
"s": 28,
"text": "In this article, we will explore the process of passing query string parameters from a client to the Backend Lambda or HTTP endpoint API gateway. As we know there are two type... |
How to set input type date in dd-mm-yyyy format using HTML ? | 28 Jul, 2021
To set and get the input type date in dd-mm-yyyy format we will use <input> type attribute. The <input> type attribute is used to define a date picker or control field. In this attribute, you can set the range from which day-month-year to which day-month-year date can be selected from. If min and max value... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 467,
"s": 54,
"text": "To set and get the input type date in dd-mm-yyyy format we will use <input> type attribute. The <input> type attribute is used to define a date picker or control field. In th... |
Java Program to Retrieve Contents of a Table Using JDBC connection | 25 Apr, 2022
It can be of two types namely structural and non-structural database. The structural database is the one which can be stored in row and columns. A nonstructural database can not be stored in form of rows and columns for which new concepts are introduced which would not be discussing here. Most of the real-... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Apr, 2022"
},
{
"code": null,
"e": 879,
"s": 54,
"text": "It can be of two types namely structural and non-structural database. The structural database is the one which can be stored in row and columns. A nonstructural database can ... |
Program for Stirling Interpolation Formula | 26 Apr, 2022
Given n number of floating values x, and their corresponding functional values f(x), estimate the value of the mathematical function for any intermediate value of the independent variable x, i.e., at x = a. Examples:
Input : n = 5
x = 0, x = 0.5, x = 1.0, x = 1.5, x = 2.0 f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Apr, 2022"
},
{
"code": null,
"e": 271,
"s": 52,
"text": "Given n number of floating values x, and their corresponding functional values f(x), estimate the value of the mathematical function for any intermediate value of the indepen... |
__tostring element in Lua Programming | The _tostring element in Lua receives an argument of any type and converts it to a string in a reasonable format.
If the metatable of e has a "__tostring" field, then tostring calls the corresponding value with e as argument, and uses the result of the call as its result.
The __tostring element method is a part of the ... | [
{
"code": null,
"e": 1301,
"s": 1187,
"text": "The _tostring element in Lua receives an argument of any type and converts it to a string in a reasonable format."
},
{
"code": null,
"e": 1460,
"s": 1301,
"text": "If the metatable of e has a \"__tostring\" field, then tostring call... |
Python | Difference between two dates (in minutes) using datetime.timedelta() method | 08 Sep, 2020
To find the difference between two dates in Python, one can use the timedelta class which is present in the datetime library. The timedelta class stores the difference between two datetime objects. To find the difference between two dates in form of minutes, the attribute seconds of timedelta object can be... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Sep, 2020"
},
{
"code": null,
"e": 534,
"s": 54,
"text": "To find the difference between two dates in Python, one can use the timedelta class which is present in the datetime library. The timedelta class stores the difference betwee... |
Security Testing - Injection | Injection technique consists of injecting a SQL query or a command using the input fields of the application.
A successful SQL injection can read, modify sensitive data from the database, and can also delete data from a database. It also enables the hacker to perform administrative operations on the database such as sh... | [
{
"code": null,
"e": 2684,
"s": 2574,
"text": "Injection technique consists of injecting a SQL query or a command using the input fields of the application."
},
{
"code": null,
"e": 2930,
"s": 2684,
"text": "A successful SQL injection can read, modify sensitive data from the data... |
DFS traversal of a tree using recursion | 16 May, 2022
Given a Binary tree, Traverse it using DFS using recursion.Unlike linear data structures (Array, Linked List, Queues, Stacks, etc) which have only one logical way to traverse them, trees can be traversed in different ways. Generally, there are 2 widely used ways for traversing trees:
DFS or Depth First Sea... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 May, 2022"
},
{
"code": null,
"e": 337,
"s": 52,
"text": "Given a Binary tree, Traverse it using DFS using recursion.Unlike linear data structures (Array, Linked List, Queues, Stacks, etc) which have only one logical way to traverse... |
Introduction to Object Oriented Programming in JavaScript | 06 Jul, 2022
As JavaScript is widely used in Web Development, in this article we will explore some of the Object Oriented mechanisms supported by JavaScript to get the most out of it. Some of the common interview questions in JavaScript on OOPS include,- “How is Object-Oriented Programming implemented in JavaScript? Ho... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 456,
"s": 52,
"text": "As JavaScript is widely used in Web Development, in this article we will explore some of the Object Oriented mechanisms supported by JavaScript to get the most out of it. Som... |
SQL | INSERT INTO Statement | 28 Jun, 2020
The INSERT INTO statement of SQL is used to insert a new row in a table. There are two ways of using INSERT INTO statement for inserting rows:
Only values: First method is to specify only the value of data to be inserted without the column names.INSERT INTO table_name VALUES (value1, value2, value3,...);ta... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2020"
},
{
"code": null,
"e": 195,
"s": 52,
"text": "The INSERT INTO statement of SQL is used to insert a new row in a table. There are two ways of using INSERT INTO statement for inserting rows:"
},
{
"code": null,
... |
Turing Machine for language { www | w ∈ {a, b} } | 04 Aug, 2020
Prerequisite – Turing MachineDesign a Turing Machine for a string which contains exactly 3 repetitions of w consecutively.
Approach Used :First, we will find the position of separation of the first w from the second w.Now, we will match the first and second w. If both get, matched then the second w string ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n04 Aug, 2020"
},
{
"code": null,
"e": 177,
"s": 54,
"text": "Prerequisite – Turing MachineDesign a Turing Machine for a string which contains exactly 3 repetitions of w consecutively."
},
{
"code": null,
"e": 397,
"s": ... |
Space optimization using bit manipulations | 30 Jun, 2022
There are many situations where we use integer values as index in array to see presence or absence, we can use bit manipulations to optimize space in such problems.Let us consider below problem as an example.Given two numbers say a and b, mark the multiples of 2 and 5 between a and b using less than O(|b –... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 407,
"s": 54,
"text": "There are many situations where we use integer values as index in array to see presence or absence, we can use bit manipulations to optimize space in such problems.Let us con... |
Sorting of Arrays in Julia | 27 May, 2021
The process of arranging the given data in a particular order or manner depends on the output. It is storing of data in sorted order. Sorting can be done in two ways i.e in ascending and descending order. Sorting can be performed using sorting algorithm or sorting functions. So, in sorting the program sear... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 562,
"s": 28,
"text": "The process of arranging the given data in a particular order or manner depends on the output. It is storing of data in sorted order. Sorting can be done in two ways i.e in as... |
Program to Convert Set to List in Java | 08 Sep, 2021
Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can accommodate only one null element.
The List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 236,
"s": 54,
"text": "Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can accommodate only one null e... |
How to Retrieve Data from Firebase Realtime Database in Android ListView? | 15 Jan, 2021
Firebase Realtime Database provides us a feature to give Real-time updates to your data inside your app within milli-seconds. With the help of Firebase, you can provide Real-time updates to your users. In this article, we will take a look at the implementation of the Firebase Realtime Database for our List... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Jan, 2021"
},
{
"code": null,
"e": 530,
"s": 28,
"text": "Firebase Realtime Database provides us a feature to give Real-time updates to your data inside your app within milli-seconds. With the help of Firebase, you can provide Real-t... |
Types of References in Java | 06 Dec, 2019
In Java there are four types of references differentiated on the way by which they are garbage collected.
Strong ReferencesWeak ReferencesSoft ReferencesPhantom References
Strong References
Weak References
Soft References
Phantom References
Prerequisite: Garbage Collection
Strong References: This is the de... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 160,
"s": 54,
"text": "In Java there are four types of references differentiated on the way by which they are garbage collected."
},
{
"code": null,
"e": 226,
"s": 160,
"text": ... |
How to remove rows that contain all zeros in R dataframe? | 27 Mar, 2021
In this article, let’s discuss how to rows that contain all zeroes in R dataframe.
Approach:
Create dataframe
Get the sum of each row
Simply remove those rows that have zero-sum. Based on the sum we are getting we will add it to the new dataframe. if the sum is greater than zero then we will add it otherwi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Mar, 2021"
},
{
"code": null,
"e": 111,
"s": 28,
"text": "In this article, let’s discuss how to rows that contain all zeroes in R dataframe."
},
{
"code": null,
"e": 121,
"s": 111,
"text": "Approach:"
},
{
... |
File Handling in Java with CRUD operations | 08 Mar, 2021
So far the operations using Java programs are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the programs are written to store the information fetched from the program. One such way is to store the fetched information in a file.
What is File Handling in Java?
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Mar, 2021"
},
{
"code": null,
"e": 328,
"s": 52,
"text": "So far the operations using Java programs are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the programs are written to store ... |
SQL | Conversion Function | 22 Feb, 2019
In some cases, the Server uses data of one type where it expects data of a different data type. This can happen when the Server can automatically convert the data to the expected data type. This data type conversion can be done implicitly by the Server, or explicitly by the user.
In this type of conversion... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Feb, 2019"
},
{
"code": null,
"e": 333,
"s": 52,
"text": "In some cases, the Server uses data of one type where it expects data of a different data type. This can happen when the Server can automatically convert the data to the expe... |
Python | Pandas Series.combine() | 30 Sep, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas Series.combine() is a series mathematical operation method. This is used to combine tw... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Sep, 2019"
},
{
"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... |
Wide char and library functions in C++ | 13 May, 2022
Wide char is similar to char data type, except that wide char take up twice the space and can take on much larger values as a result. char can take 256 values which corresponds to entries in the ASCII table. On the other hand, wide char can take on 65536 values which corresponds to UNICODE values which is ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 May, 2022"
},
{
"code": null,
"e": 492,
"s": 54,
"text": "Wide char is similar to char data type, except that wide char take up twice the space and can take on much larger values as a result. char can take 256 values which correspon... |
Rearrange an array so that arr[i] becomes arr[arr[i]] with O(1) extra space | 23 Jun, 2022
Given an array arr[] of size n where every element is in range from 0 to n-1. Rearrange the given array so that arr[i] becomes arr[arr[i]]. This should be done with O(1) extra space
Examples:
Input: arr[] = {3, 2, 0, 1}
Output: arr[] = {1, 0, 3, 2}
Explanation:
In the given array
arr[arr[0]] is 1 so ar... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 234,
"s": 52,
"text": "Given an array arr[] of size n where every element is in range from 0 to n-1. Rearrange the given array so that arr[i] becomes arr[arr[i]]. This should be done with O(1) extr... |
Inheritance in GoLang | 22 Jun, 2020
Inheritance means inheriting the properties of the superclass into the base class and is one of the most important concepts in Object-Oriented Programming. Since Golang does not support classes, so inheritance takes place through struct embedding. We cannot directly extend structs but rather use a concept ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 486,
"s": 53,
"text": "Inheritance means inheriting the properties of the superclass into the base class and is one of the most important concepts in Object-Oriented Programming. Since Golang does ... |
Go Operators | 13 Jun, 2022
Operators are the foundation of any programming language. Thus the functionality of the Go language is incomplete without the use of operators. Operators allow us to perform different kinds of operations on operands. In the Go language, operators Can be categorized based on their different functionality:
A... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 334,
"s": 28,
"text": "Operators are the foundation of any programming language. Thus the functionality of the Go language is incomplete without the use of operators. Operators allow us to perform d... |
How to delete an element from the Set by passing its value in C++ | 27 Jan, 2022
Given a Set, the task is to remove the last element from this Set in C++.Examples:
Input: set = [10 20 30 70 80 90 100 40 50 60],
valueOfElementToBeDeleted = 100
Output: 10 20 30 40 50 60 70 80 90
Input: set = [1 2 3 4 5],
valueOfElementToBeDeleted = 3
Output: 1 2 4 5
Sets ar... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 138,
"s": 53,
"text": "Given a Set, the task is to remove the last element from this Set in C++.Examples: "
},
{
"code": null,
"e": 353,
"s": 138,
"text": "Input: set = [10 20 ... |
Program to find parity in C++ | In this tutorial, we will be discussing a program to find parity.
For this we will be provided with a number. Our task is to find its parity i.e count of whether the number of ones are odd or even.
Live Demo
# include<bits/stdc++.h>
# define bool int
using namespace std;
//finding the parity of given number
bool getPa... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to find parity."
},
{
"code": null,
"e": 1260,
"s": 1128,
"text": "For this we will be provided with a number. Our task is to find its parity i.e count of whether the number of ones a... |
A Simple Way to Analyze Student Performance Data with Python | by Lucio Daza | Towards Data Science | Data analysis and data visualization are essential components of data science. Actually, before the machine learning era, all data science was about the interpretation and visualization of data with different tools and making conclusions about the nature of data. Nowadays, these tasks are still present. They just becam... | [
{
"code": null,
"e": 1180,
"s": 172,
"text": "Data analysis and data visualization are essential components of data science. Actually, before the machine learning era, all data science was about the interpretation and visualization of data with different tools and making conclusions about the nature... |
Microsoft Azure - PowerShell | PowerShell is a framework or you can say an interface built by Azure team that lets the user to automate and manage Windows Azure services. It is a command line tool that uses the scripts or cmdlets to perform tasks such as creating and managing storage accounts or Virtual Machines that can easily be done using the pre... | [
{
"code": null,
"e": 3343,
"s": 3009,
"text": "PowerShell is a framework or you can say an interface built by Azure team that lets the user to automate and manage Windows Azure services. It is a command line tool that uses the scripts or cmdlets to perform tasks such as creating and managing storage... |
Processing a Slowly Changing Dimension Type 2 Using PySpark in AWS | by Ryan Quigley | Towards Data Science | With the emergence of new technologies that make data processing lightening fast, and cloud ecosystems which allow for flexibility, cost savings, security, and convenience, there appear to be some data modeling philosophies that are being used less frequently. One of these approaches is the star schema data architectur... | [
{
"code": null,
"e": 495,
"s": 172,
"text": "With the emergence of new technologies that make data processing lightening fast, and cloud ecosystems which allow for flexibility, cost savings, security, and convenience, there appear to be some data modeling philosophies that are being used less freque... |
How to Run Jupyter Notebook on Docker | by Shinichi Okada | Towards Data Science | Table of ContentsIntroduction 1. Installing Docker Desktop 2. Docker help 3. Running Jupyter Docker Stacks 4. Formatting Docker ps 5. Entering the Docker container and using bash 6. Stopping and removing containers and images 7. Connecting the local directory to a Docker container 8. Inspecting a container 9. Getting s... | [
{
"code": null,
"e": 563,
"s": 172,
"text": "Table of ContentsIntroduction 1. Installing Docker Desktop 2. Docker help 3. Running Jupyter Docker Stacks 4. Formatting Docker ps 5. Entering the Docker container and using bash 6. Stopping and removing containers and images 7. Connecting the local direc... |
Swap two nibbles in a byte | Practice | GeeksforGeeks | Given a number N, swap the two nibbles in it and find the resulting number.
Example 1:
Input:
N = 100
Output:
70
Explanation:
100 in binary is 01100100,
two nibbles are (0110) and (0100)
If we swap the two nibbles, we get
01000110 which is 70 in decimal
Example 2:
Input:
N = 129
Output:
24
Explanation:
129 in bin... | [
{
"code": null,
"e": 317,
"s": 238,
"text": "Given a number N, swap the two nibbles in it and find the resulting number. \n "
},
{
"code": null,
"e": 328,
"s": 317,
"text": "Example 1:"
},
{
"code": null,
"e": 498,
"s": 328,
"text": "Input:\nN = 100\nOutput:\n... |
Cassandra - Alter Keyspace | ALTER KEYSPACE can be used to alter properties such as the number of replicas and the durable_writes of a KeySpace. Given below is the syntax of this command.
ALTER KEYSPACE <identifier> WITH <properties>
i.e.
ALTER KEYSPACE “KeySpace Name”
WITH replication = {'class': ‘Strategy name’, 'replication_factor' : ‘No.Of r... | [
{
"code": null,
"e": 2446,
"s": 2287,
"text": "ALTER KEYSPACE can be used to alter properties such as the number of replicas and the durable_writes of a KeySpace. Given below is the syntax of this command."
},
{
"code": null,
"e": 2493,
"s": 2446,
"text": "ALTER KEYSPACE <identif... |
How to find the absolute distance between columns of an R data frame? | The absolute distance can be found by calculating the difference between column values. And if we want the distance to be absolute then we would be need to use abs function. For example, suppose we have a data frame df that contain columns x and y then the absolute distance can be found by using dfAbsoluteDistance<−abs... | [
{
"code": null,
"e": 1394,
"s": 1062,
"text": "The absolute distance can be found by calculating the difference between column values. And if we want the distance to be absolute then we would be need to use abs function. For example, suppose we have a data frame df that contain columns x and y then ... |
C - Useful Concepts | C - Programming HOME
C - Basic Introduction
C - Program Structure
C - Reserved Keywords
C - Basic Datatypes
C - Variable Types
C - Storage Classes
C - Using Constants
C - Operator Types
C - Control Statements
C - Input and Output
C - Pointing to Data
C - Using Functions
C - Play with Strings
C - Structured Datatypes
C ... | [
{
"code": null,
"e": 1475,
"s": 1454,
"text": "C - Programming HOME"
},
{
"code": null,
"e": 1498,
"s": 1475,
"text": "C - Basic Introduction"
},
{
"code": null,
"e": 1520,
"s": 1498,
"text": "C - Program Structure"
},
{
"code": null,
"e": 1542,
... |
Find the Sum of fractions - JavaScript | We have an array of arrays like this −
const arr = [[12, 56], [3, 45], [23, 2], [2, 6], [2, 8]];
Note that while the array can have any number of elements, each subarray should strictly contain two numbers.
The two numbers in each subarray represents a fraction. For example, the fraction represented by the first subarr... | [
{
"code": null,
"e": 1101,
"s": 1062,
"text": "We have an array of arrays like this −"
},
{
"code": null,
"e": 1159,
"s": 1101,
"text": "const arr = [[12, 56], [3, 45], [23, 2], [2, 6], [2, 8]];"
},
{
"code": null,
"e": 1269,
"s": 1159,
"text": "Note that whil... |
Count of alphabets having ASCII value less than and greater than k in C++ | We are given a string of any length and the task is to calculate the count of alphabets having ASCII values less than or greater than or equals to the given integer value k.
Input − str = “TuTorials PoinT”, int k = 100
Output −
Count of alphabets having ASCII value less than k are − 6
Count of alphabets having ASCII va... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "We are given a string of any length and the task is to calculate the count of alphabets having ASCII values less than or greater than or equals to the given integer value k."
},
{
"code": null,
"e": 1281,
"s": 1236,
"text": "Input − ... |
Estimators, Loss Functions, Optimizers —Core of ML Algorithms | by Javaid Nabi | Towards Data Science | In order to understand how a machine learning algorithm learns from data to predict an outcome, it is essential to understand the underlying concepts involved in training an algorithm.
I assume you have basic machine learning understanding and also basic knowledge of probability and statistics. If not please go through... | [
{
"code": null,
"e": 357,
"s": 172,
"text": "In order to understand how a machine learning algorithm learns from data to predict an outcome, it is essential to understand the underlying concepts involved in training an algorithm."
},
{
"code": null,
"e": 670,
"s": 357,
"text": "I... |
CSS Float - GeeksforGeeks | 05 Nov, 2021
The float CSS property is used to position the elements to the left, right, of its container along with permitting the text and inline elements to wrap around it. The float property defines the flow of content in the page. The remaining elements will be part of the flow if the element is removed from the n... | [
{
"code": null,
"e": 27655,
"s": 27627,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 28142,
"s": 27655,
"text": "The float CSS property is used to position the elements to the left, right, of its container along with permitting the text and inline elements to wrap around it. ... |
Program to differentiate the given Polynomial - GeeksforGeeks | 27 Oct, 2020
Given polynomial string str, the task is to differentiate the given string and print the string after differentiating it. Note: The input format is such that there is a white space between a term and the ‘+’, ’-’ symbolExamples:
Input: str = “4X3 + 3X1 + 2X2” Output: “12X2 + 3X0 + 4X1” Explanation: The de... | [
{
"code": null,
"e": 24890,
"s": 24862,
"text": "\n27 Oct, 2020"
},
{
"code": null,
"e": 25120,
"s": 24890,
"text": "Given polynomial string str, the task is to differentiate the given string and print the string after differentiating it. Note: The input format is such that there... |
Logistic Regression in real-life: building a daily productivity classification model | Towards Data Science | Logistic regression is a machine learning classification model with quite a confusing name!
The name makes you think about Linear Regression, but it’s not used to predict an unbounded, continuous outcome. Instead, it is a statistical classification model, it gives you the likelihood that an observation belongs to a spe... | [
{
"code": null,
"e": 264,
"s": 172,
"text": "Logistic regression is a machine learning classification model with quite a confusing name!"
},
{
"code": null,
"e": 505,
"s": 264,
"text": "The name makes you think about Linear Regression, but it’s not used to predict an unbounded, c... |
random.vonmisesvariate() function in Python - GeeksforGeeks | 26 May, 2020
random module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these randomly generated numbers can be determined.
vonmisesvariate() is an inbuilt method of the random module. It is used to return a random floating p... | [
{
"code": null,
"e": 23411,
"s": 23383,
"text": "\n26 May, 2020"
},
{
"code": null,
"e": 23617,
"s": 23411,
"text": "random module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these ran... |
declare - Unix, Linux Command | declare - Declare variables and give them attributes.
declare [-afFrxi] [-p] [name[=value]]
If no names are given, then 'declare' will display the values of variables instead. Using + instead of - turns off the attribute instead. When used in a function, declare makes each name local, as with the local command. The typ... | [
{
"code": null,
"e": 10631,
"s": 10577,
"text": "declare - Declare variables and give them attributes."
},
{
"code": null,
"e": 10669,
"s": 10631,
"text": "declare [-afFrxi] [-p] [name[=value]]"
},
{
"code": null,
"e": 11587,
"s": 10669,
"text": "If no names a... |
ArrayDeque toArray() Method in Java - GeeksforGeeks | 10 Dec, 2018
The java.util.ArrayDeque.toArray() method is used to form an array of the same elements as that of the Deque. Basically, the method copies all the element from this deque to a new array.
Syntax:
Object[] arr = Array_Deque.toArray()
Parameters: The method does not take any parameters.
Return Value: The meth... | [
{
"code": null,
"e": 24070,
"s": 24042,
"text": "\n10 Dec, 2018"
},
{
"code": null,
"e": 24257,
"s": 24070,
"text": "The java.util.ArrayDeque.toArray() method is used to form an array of the same elements as that of the Deque. Basically, the method copies all the element from thi... |
How to find the coordinates of the cursor with JavaScript? | To find the coordinates of the cursor in JavaScript, use event.clientX and event.clientY. You can try to run the following code to get cursor coordinates in JavaScript.
<!DOCTYPE html>
<html>
<head>
<script>
function coordinatesFunc(event) {
document.write("Coordinate(X) = " + event.client... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "To find the coordinates of the cursor in JavaScript, use event.clientX and event.clientY. You can try to run the following code to get cursor coordinates in JavaScript."
},
{
"code": null,
"e": 1585,
"s": 1231,
"text": "<!DOCTYPE htm... |
Java implements Keyword | ❮ Java Keywords
An interface is an abstract "class" that is used to group related methods with "empty" bodies:
To access the interface methods, the interface must be "implemented"
(kinda like inherited) by another class with the implements
keyword (instead of extends). The body of the
interface method is provided b... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 113,
"s": 18,
"text": "An interface is an abstract \"class\" that is used to group related methods with \"empty\" bodies:"
},
{
"code": null,
"e": 346,
"s": 113,
"text": "To... |
Bootstrap class center-block | Use class center-block to set an element to center.
You can try to run the following code to implement the center-block class
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.m... | [
{
"code": null,
"e": 1114,
"s": 1062,
"text": "Use class center-block to set an element to center."
},
{
"code": null,
"e": 1188,
"s": 1114,
"text": "You can try to run the following code to implement the center-block class"
},
{
"code": null,
"e": 1198,
"s": 1188... |
Check if a number is a power of another number - GeeksforGeeks | 19 Apr, 2021
Given two positive numbers x and y, check if y is a power of x or not.Examples :
Input: x = 10, y = 1
Output: True
x^0 = 1
Input: x = 10, y = 1000
Output: True
x^3 = 1
Input: x = 10, y = 1001
Output: False
A simple solution is to repeatedly compute powers of x. If a power becomes equal to y, then ... | [
{
"code": null,
"e": 25258,
"s": 25230,
"text": "\n19 Apr, 2021"
},
{
"code": null,
"e": 25341,
"s": 25258,
"text": "Given two positive numbers x and y, check if y is a power of x or not.Examples : "
},
{
"code": null,
"e": 25471,
"s": 25341,
"text": "Input: ... |
SecureRandom nextBytes() method in Java with Examples | 04 Dec, 2018
The nextBytes() method of java.security.SecureRandom class is used to generate a user-specified number of random bytes.
If a call to setSeed had not occurred previously, the first call to this method forces this SecureRandom object to seed itself. This self-seeding will not occur if setSeed was previously ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 148,
"s": 28,
"text": "The nextBytes() method of java.security.SecureRandom class is used to generate a user-specified number of random bytes."
},
{
"code": null,
"e": 343,
"s": 148,... |
HTML datetime Attribute | 15 Jul, 2021
The <time> datetime Attribute in HTML is used to defines the machine-readable date/time of the <time> element. The date-time is inserted in the format YYYY-MM-DDThh:mm:ssTZD. Syntax:
<time datetime="YYYY-MM-DDThh:mm:ssTZD">
Attribute Values: This attribute contains single value YYYY-MM-DDThh:mm:ssTZD wh... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Jul, 2021"
},
{
"code": null,
"e": 213,
"s": 28,
"text": "The <time> datetime Attribute in HTML is used to defines the machine-readable date/time of the <time> element. The date-time is inserted in the format YYYY-MM-DDThh:mm:ssTZD. ... |
Program to find the Perimeter of a Regular Polygon | 18 Jun, 2022
Given the number of sides ‘n’ and the length of side ‘s’ of a regular polygon, the task is to find out the Perimeter of this polygon.
Examples:
Input: n = 7, s = 10
Output: Perimeter : 70
Since the sides are 7,
Hence the given polygon is Heptagon.
Therefore. Perimeter = 7*10 = 70
Input: n = 5, s = 2.5
Ou... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2022"
},
{
"code": null,
"e": 162,
"s": 28,
"text": "Given the number of sides ‘n’ and the length of side ‘s’ of a regular polygon, the task is to find out the Perimeter of this polygon."
},
{
"code": null,
"e": 173,... |
SimpleDateFormat parse() Method in Java with Examples | 12 Oct, 2021
The parse() Method of SimpleDateFormat class is used to parse the text from a string to produce the Date. The method parses the text starting at the index given by a start position.Syntax:
public Date parse(String the_text, ParsePosition position)
Parameters: The method takes two parameters:
the_text: ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 219,
"s": 28,
"text": "The parse() Method of SimpleDateFormat class is used to parse the text from a string to produce the Date. The method parses the text starting at the index given by a start pos... |
Create a meme generator by using ReactJS | 16 Dec, 2021
In this tutorial, we’ll make a meme generator using ReactJS. In the meme generator, we have two text fields in which we enter the first text and last text. After writing the text when we click the Gen button, it creates a meme with an image and the text written on it.
In this React app, we have only one co... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 322,
"s": 53,
"text": "In this tutorial, we’ll make a meme generator using ReactJS. In the meme generator, we have two text fields in which we enter the first text and last text. After writing the ... |
How to Convert String to Integer in Pandas DataFrame? | 16 Feb, 2022
Let’s see methods to convert string to an integer in Pandas DataFrame:
Method 1: Use of Series.astype() method.
Syntax: Series.astype(dtype, copy=True, errors=’raise’)
Parameters: This method will take following parameters:
dtype: Data type to convert the series into. (for example str, float, int).
copy: M... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Feb, 2022"
},
{
"code": null,
"e": 123,
"s": 52,
"text": "Let’s see methods to convert string to an integer in Pandas DataFrame:"
},
{
"code": null,
"e": 164,
"s": 123,
"text": "Method 1: Use of Series.astype() m... |
Scala Map size() method with example | 13 Aug, 2019
The size() is utilized to find the number of key-value pairs in the stated map.
Method Definition: def size: Int
Return Type: It returns the number of elements in the map.
Example #1:
// Scala program of size()// method // Creating objectobject GfG{ // Main method def main(args:Array[String]) ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Aug, 2019"
},
{
"code": null,
"e": 108,
"s": 28,
"text": "The size() is utilized to find the number of key-value pairs in the stated map."
},
{
"code": null,
"e": 141,
"s": 108,
"text": "Method Definition: def siz... |
ReactJS Reactstrap Tab Component | 22 Jul, 2021
Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Tab component allows the user to switch between components present in given different tabs. We can use the following approach in ReactJS to u... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 376,
"s": 28,
"text": "Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Tab compo... |
How to set indent the second line of paragraph using CSS ? | 23 Apr, 2020
There are several methods to indent the second line of the paragraph that can be achieved in many ways. Some of the methods to achieve this are described below with proper code and output. Now some styling can be done using CSS in various ways to indent the second line as per need.
Note: By default, when l... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Apr, 2020"
},
{
"code": null,
"e": 311,
"s": 28,
"text": "There are several methods to indent the second line of the paragraph that can be achieved in many ways. Some of the methods to achieve this are described below with proper cod... |
Python – Replace all numbers by K in given String | 05 Sep, 2020
Given a string containing numbers, replace each number by K.
Input : test_str = ‘G4G is 4 all No. 1 Geeks’, K = ‘#’Output : G#G is # all No. # GeeksExplanation : All numbers replaced by K.
Input : test_str = ‘G4G is 4 all No. Geeks’, K = ‘#’Output : G#G is # all No. GeeksExplanation : All numbers replaced ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 89,
"s": 28,
"text": "Given a string containing numbers, replace each number by K."
},
{
"code": null,
"e": 217,
"s": 89,
"text": "Input : test_str = ‘G4G is 4 all No. 1 Geeks’, ... |
Lodash _.has() Method | 09 Sep, 2020
The _.has() method is used to check whether the path is a direct property of object or not. It returns true if path exists, else it returns false.
Syntax:
_.has(object, path)
Parameters: This method accepts two parameters as mentioned above and described below:
object: This parameter holds the object to q... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Sep, 2020"
},
{
"code": null,
"e": 175,
"s": 28,
"text": "The _.has() method is used to check whether the path is a direct property of object or not. It returns true if path exists, else it returns false."
},
{
"code": null,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.