title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Effortless Exploratory Data Analysis (EDA) | by Raj Sangani | Towards Data Science | Before we jump to model building, understanding the data at hand is essential. Analysing the data alone can give us valuable insights to solve our problems. Moreover understanding data is very useful to determine which features would help our model, which features can be done away with , how can we deal with missing va... | [
{
"code": null,
"e": 633,
"s": 172,
"text": "Before we jump to model building, understanding the data at hand is essential. Analysing the data alone can give us valuable insights to solve our problems. Moreover understanding data is very useful to determine which features would help our model, which... |
Binary Search on Singly Linked List in C++ | A singly linked list is a linked list (a data structure that stores a node’s value and the memory location of the next node) which can go only one way.
A binary search is a search algorithm based on divide and rule. That finds the middle element of the structure and compares and uses recursive calls to the same algorit... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "A singly linked list is a linked list (a data structure that stores a node’s value and the memory location of the next node) which can go only one way."
},
{
"code": null,
"e": 1401,
"s": 1214,
"text": "A binary search is a search al... |
Raising an Exceptions in Python | You can raise exceptions in several ways by using the raise statement. The general syntax for the raise statement is as follows.
raise [Exception [, args [, traceback]]]
Here, Exception is the type of exception (for example, NameError) and argument is a value for the exception argument. The argument is optional; if not... | [
{
"code": null,
"e": 1191,
"s": 1062,
"text": "You can raise exceptions in several ways by using the raise statement. The general syntax for the raise statement is as follows."
},
{
"code": null,
"e": 1232,
"s": 1191,
"text": "raise [Exception [, args [, traceback]]]"
},
{
... |
How to run matplotlib in Tkinter? | One of the well-known use-cases of Python is in Machine Learning and Data Science. In order to visualize and plot a dataset, we use the Matplotlib library. To plot a matplotlib graph in a Tkinter application, we have to import the library by initializing "from matplotlib.pyplot as plt". The plot can be drawn either by ... | [
{
"code": null,
"e": 1447,
"s": 1062,
"text": "One of the well-known use-cases of Python is in Machine Learning and Data Science. In order to visualize and plot a dataset, we use the Matplotlib library. To plot a matplotlib graph in a Tkinter application, we have to import the library by initializin... |
colorsys module in Python | This module allows bidirectional conversions of color values between colors expressed in the RGB (Red Green Blue) and other color spaces. The three other color spaces it uses are YIQ (Luminance (Y) In-phase Quadrature), HLS (Hue Lightness Saturation) and HSV (Hue Saturation Value). All the coordinates can be between 0 ... | [
{
"code": null,
"e": 1438,
"s": 1062,
"text": "This module allows bidirectional conversions of color values between colors expressed in the RGB (Red Green Blue) and other color spaces. The three other color spaces it uses are YIQ (Luminance (Y) In-phase Quadrature), HLS (Hue Lightness Saturation) an... |
Write a C# program to check if a number is divisible by 2 | To check if a number is divisible by2 or not, you need to first find the remainder.
If the remainder of the number when it is divided by 2 is 0, then it would be divisible by 2.
Let’s say our number is 10, we will check it using the following if-else −
// checking if the number is divisible by 2 or not
if (num % 2 == 0... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "To check if a number is divisible by2 or not, you need to first find the remainder."
},
{
"code": null,
"e": 1240,
"s": 1146,
"text": "If the remainder of the number when it is divided by 2 is 0, then it would be divisible by 2."
}... |
How to show two figures using Matplotlib? | We can use the method, plt.figure(), to create the figures, and then, set their titles by passing strings as arguments.
Create a new figure, or activate an existing figure, with the window title “Welcome to figure 1”.
Create a new figure, or activate an existing figure, with the window title “Welcome to figure 1”.
Draw... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "We can use the method, plt.figure(), to create the figures, and then, set their titles by passing strings as arguments."
},
{
"code": null,
"e": 1280,
"s": 1182,
"text": "Create a new figure, or activate an existing figure, with the ... |
Virtual Memory in Operating System - GeeksforGeeks | 21 Sep, 2021
Virtual Memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of the main memory. The addresses a program may use to reference memory are distinguished from the addresses the memory system uses to identify physical storage sites, and program-generated addre... | [
{
"code": null,
"e": 28044,
"s": 28016,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 28426,
"s": 28044,
"text": "Virtual Memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of the main memory. The addresses a program may use... |
Bootstrap - Code | Bootstrap allows you to display code with two different key ways −
The first is the <code> tag. If you are going to be displaying code inline, you should use the <code> tag.
The first is the <code> tag. If you are going to be displaying code inline, you should use the <code> tag.
Second is the <pre> tag. If the code ne... | [
{
"code": null,
"e": 3398,
"s": 3331,
"text": "Bootstrap allows you to display code with two different key ways −"
},
{
"code": null,
"e": 3505,
"s": 3398,
"text": "The first is the <code> tag. If you are going to be displaying code inline, you should use the <code> tag."
},
... |
How to create a scrollable textView Android app? | This example demonstrates how do I create a scrollable textView in android app.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<Relati... | [
{
"code": null,
"e": 1142,
"s": 1062,
"text": "This example demonstrates how do I create a scrollable textView in android app."
},
{
"code": null,
"e": 1271,
"s": 1142,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detail... |
Tryit Editor v3.7 | Tryit: box-shadow with blur effect | [] |
C++ Program for Cycle Sort - GeeksforGeeks | 03 Sep, 2021
Cycle sort is an in-place sorting Algorithm, unstable sorting algorithm, a comparison sort that is theoretically optimal in terms of the total number of writes to the original array.
It is optimal in terms of number of memory writes. It minimizes the number of memory writes to sort (Each value is either w... | [
{
"code": null,
"e": 24241,
"s": 24213,
"text": "\n03 Sep, 2021"
},
{
"code": null,
"e": 24425,
"s": 24241,
"text": "Cycle sort is an in-place sorting Algorithm, unstable sorting algorithm, a comparison sort that is theoretically optimal in terms of the total number of writes to ... |
Command line arguments example in C | It is possible to pass some values from the command line to your C programs when they are executed. These values are called command line arguments and many times they are important for your program especially when you want to control your program from outside instead of hard-coding those values inside the code.
The com... | [
{
"code": null,
"e": 1375,
"s": 1062,
"text": "It is possible to pass some values from the command line to your C programs when they are executed. These values are called command line arguments and many times they are important for your program especially when you want to control your program from o... |
Program to find Nth term of the Van Eck's Sequence - GeeksforGeeks | 13 May, 2022
Given a positive integer N, the task is to print Nth term of the Van Eck’s sequence.In mathematics, Van Eck’s sequence is an integer sequence which is defined recursively as follows:
Let the first term be 0 i.e a0 = 0.
Then for n >= 0, if there exists an m < n such that
am = an
take the largest such m an... | [
{
"code": null,
"e": 25963,
"s": 25935,
"text": "\n13 May, 2022"
},
{
"code": null,
"e": 26148,
"s": 25963,
"text": "Given a positive integer N, the task is to print Nth term of the Van Eck’s sequence.In mathematics, Van Eck’s sequence is an integer sequence which is defined recu... |
turtle.distance() function in Python - GeeksforGeeks | 26 Nov, 2021
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This method is used to return the distance from the turtle to (x,y) in turtle step units. ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 25754,
"s": 25537,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it... |
Python - Change Datatype of Tuple Values - GeeksforGeeks | 26 May, 2020
Sometimes, while working with set of records, we can have a problem in which we need to perform a data type change of values of tuples, which are in its 2nd position, i.e value position. This kind of problem can occur in all domains that include data manipulations. Let’s discuss certain ways in which this ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 May, 2020"
},
{
"code": null,
"e": 25867,
"s": 25537,
"text": "Sometimes, while working with set of records, we can have a problem in which we need to perform a data type change of values of tuples, which are in its 2nd positi... |
Strings in Dart - GeeksforGeeks | 10 Jun, 2021
A Dart string is a sequence of UTF-16 code units. With the same rule as that of Python, you can use either single or double quotes to create a string. The string starts with the datatype Var :
var string = "I love GeeksforGeeks";
var string1 = 'GeeksforGeeks is a great platform for upgrading skills';
Both... | [
{
"code": null,
"e": 25285,
"s": 25257,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 25479,
"s": 25285,
"text": "A Dart string is a sequence of UTF-16 code units. With the same rule as that of Python, you can use either single or double quotes to create a string. The string s... |
Get Bank details from IFSC Code Using Python - GeeksforGeeks | 11 Oct, 2020
The Indian Financial System Code (IFSC) is an 11-digit alpha-numeric code used to uniquely classify bank branches within the National Electronic Fund Transfer (NEFT) network by the Central Bank.
In this article, we are going to write python scripts to get details of the Bank from the given IFSC code.
Modul... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 25732,
"s": 25537,
"text": "The Indian Financial System Code (IFSC) is an 11-digit alpha-numeric code used to uniquely classify bank branches within the National Electronic Fund Transfer (NEF... |
Remove a character from a string to make it a palindrome - GeeksforGeeks | 07 Mar, 2022
Given a string, we need to check whether it is possible to make this string a palindrome after removing exactly one character from this.
Examples:
Input : str = “abcba”
Output : Yes
we can remove character ‘c’ to make string palindrome
Input : str = “abcbea”
Output : Yes
we can remove character ‘e’ t... | [
{
"code": null,
"e": 26109,
"s": 26081,
"text": "\n07 Mar, 2022"
},
{
"code": null,
"e": 26247,
"s": 26109,
"text": "Given a string, we need to check whether it is possible to make this string a palindrome after removing exactly one character from this. "
},
{
"code": nul... |
C# | String.ToUpperInvariant Method - GeeksforGeeks | 21 Jun, 2021
String.ToUpperInvariant Method is used to get a copy of this String object converted to uppercase using the casing rules of the invariant culture. Here “invariant culture” represents a culture that is culture-insensitive.Syntax:
public string ToUpperInvariant ();
Return Value: The return type of this meth... | [
{
"code": null,
"e": 25507,
"s": 25479,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 25737,
"s": 25507,
"text": "String.ToUpperInvariant Method is used to get a copy of this String object converted to uppercase using the casing rules of the invariant culture. Here “invariant ... |
HTML | <video> src Attribute - GeeksforGeeks | 28 Jun, 2019
The HTML <video> src Attribute is used to specify the URL of the video file. This attribute uses Ogg file on Firefox, Opera and Chrome browsers and MPEG4 file on Internet Explorer and Safari browsers. This attribute is new in HTML5.
Syntax:
<video src="URL">
Attribute Values: It contains a single value URL... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n28 Jun, 2019"
},
{
"code": null,
"e": 26372,
"s": 26139,
"text": "The HTML <video> src Attribute is used to specify the URL of the video file. This attribute uses Ogg file on Firefox, Opera and Chrome browsers and MPEG4 file on I... |
Find substrings that contain all vowels - GeeksforGeeks | 19 Mar, 2022
We have been given a string in lowercase alphabets. We need to print substrings that contain all the vowels at least one time and there are no consonants (non-vowel characters) present in the substrings.
Examples:
Input : str = aeoibddaeoiud
Output : aeoiu
Input : str = aeoibsddaeiouudb
Output : aeiou, ... | [
{
"code": null,
"e": 26439,
"s": 26411,
"text": "\n19 Mar, 2022"
},
{
"code": null,
"e": 26643,
"s": 26439,
"text": "We have been given a string in lowercase alphabets. We need to print substrings that contain all the vowels at least one time and there are no consonants (non-vowe... |
Python - Copy Files From Subfolders to the Main folder - GeeksforGeeks | 15 Oct, 2021
In this article, we will discuss how to copy a file from the subfolder to the main folder. The directory tree that will be used for explanation in this article is as shown below:
D:\projects\base
|
|__subfolder:
| \__file.txt
|
|__main.py
|
Here we have a folder named “base” in which we have a fo... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n15 Oct, 2021"
},
{
"code": null,
"e": 25716,
"s": 25537,
"text": "In this article, we will discuss how to copy a file from the subfolder to the main folder. The directory tree that will be used for explanation in this article is ... |
PHP | Strings - GeeksforGeeks | 05 May, 2021
Strings can be seen as a stream of characters. For example, ‘G’ is a character and ‘GeeksforGeeks’ is a string. We have learned about the basics of string data type in PHP in PHP | Data types and Variables.
In this article, we will discuss strings in detail. Everything inside quotes, single (‘ ‘) and doub... | [
{
"code": null,
"e": 42163,
"s": 42135,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 42370,
"s": 42163,
"text": "Strings can be seen as a stream of characters. For example, ‘G’ is a character and ‘GeeksforGeeks’ is a string. We have learned about the basics of string data typ... |
getpass() and getuser() in Python (Password without echo) - GeeksforGeeks | 28 Jun, 2021
getpass() prompts the user for a password without echoing. The getpass module provides a secure way to handle the password prompts where programs interact with the users via the terminal.This module provides two functions :
getpass()
getpass()
getpass.getpass(prompt='Password: ', stream=None)
The getp... | [
{
"code": null,
"e": 25985,
"s": 25957,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 26211,
"s": 25985,
"text": "getpass() prompts the user for a password without echoing. The getpass module provides a secure way to handle the password prompts where programs interact with the... |
Getting square root of a number in Julia - sqrt() and isqrt() Methods - GeeksforGeeks | 26 Mar, 2020
The sqrt() is an inbuilt function in julia which is used to return the square root of the specified number and throws DomainError for negative Real parameter. It also accept complex negative parameter.
Syntax: sqrt(x)
Parameters:
x: Specified values.
Returns: It returns the square root of the specified num... | [
{
"code": null,
"e": 25789,
"s": 25761,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 25991,
"s": 25789,
"text": "The sqrt() is an inbuilt function in julia which is used to return the square root of the specified number and throws DomainError for negative Real parameter. It a... |
Python | Interconversion between Dictionary and Bytes | 19 Jul, 2019
Interconversion between data is quite popular and this particular article discusses about how interconversion of dictionary into bytes and vice versa can be obtained. Let’s look at the method that can help us achieve this particular task.
Method : Using encode() + dumps() + decode() + loads()The encode and... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jul, 2019"
},
{
"code": null,
"e": 267,
"s": 28,
"text": "Interconversion between data is quite popular and this particular article discusses about how interconversion of dictionary into bytes and vice versa can be obtained. Let’s lo... |
Represent a given set of points by the best possible straight line | 22 Apr, 2021
Find the value of m and c such that a straight line y = mx + c, best represents the equation of a given set of points (x, y), (x, y), (x, y), ......., (x, y), given n >=2.
Examples:
Input : n = 5
x = 1, x = 2, x = 3,
x = 4, x = 5
y = 14, y = 27, y = 40,
y = 55, y = 68
Output : m = 13.6
c = 0... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 224,
"s": 52,
"text": "Find the value of m and c such that a straight line y = mx + c, best represents the equation of a given set of points (x, y), (x, y), (x, y), ......., (x, y), given n >=2."
... |
Design Turing Machine to reverse String consisting of a’s and b’s | 26 Oct, 2020
Prerequisite : Turing Machine
Task :Our task is to design a Turing machine to reverse a string consisting of a’s and b’s.
Examples :
Input-1 : aabb
Output-1 : bbaa
Input-2 : abab
Output-2 : baba
Approach :The basic idea is to read the input from Right to Left and replace Blank(B) with the alphabet and rep... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Oct, 2020"
},
{
"code": null,
"e": 58,
"s": 28,
"text": "Prerequisite : Turing Machine"
},
{
"code": null,
"e": 150,
"s": 58,
"text": "Task :Our task is to design a Turing machine to reverse a string consisting of... |
File.Create(String) Method in C# with Examples | 17 Jun, 2021
File.Create(String) is an inbuilt File class method which is used to overwrites an existing file else create a new file if the specified file is not existing.
Syntax:
public static System.IO.FileStream Create (string path);
Parameter: This function accepts a parameter which is illustrated below:
path: T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 187,
"s": 28,
"text": "File.Create(String) is an inbuilt File class method which is used to overwrites an existing file else create a new file if the specified file is not existing."
},
{
"c... |
Tensorflow.js tf.conv2d() Function | 31 May, 2021
Tensorflow.js is a javascript library developed by Google to run and train machine learning models in the browser or in Node.js.
The tf.conv2d() function is used to compute 2d convolutions over the given input. In a deep neural network, we use this convolution layer which creates a convolution kernel whic... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 158,
"s": 28,
"text": "Tensorflow.js is a javascript library developed by Google to run and train machine learning models in the browser or in Node.js. "
},
{
"code": null,
"e": 401,
... |
Get Live Weather Desktop Notifications Using Python | 29 Dec, 2020
We know weather updates are how much important in our day-to-day life. So, We are introducing the logic and script with some easiest way to understand for everyone. Let’s see a simple Python script to show the live update for Weather information.
In this script, we are using some libraries
bs4: Beautiful ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 302,
"s": 54,
"text": "We know weather updates are how much important in our day-to-day life. So, We are introducing the logic and script with some easiest way to understand for everyone. Let’s see... |
How to Install Golang Debugger? | 09 Nov, 2021
Installing a golang debugger is a powerful step for detecting or analyzing and removing existing and potential errors (bugs) in any software type code which can even cause it to behave unusually or it may cause a crash.
To prevent our software /system from these incorrect operations and unusual working we ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 248,
"s": 28,
"text": "Installing a golang debugger is a powerful step for detecting or analyzing and removing existing and potential errors (bugs) in any software type code which can even cause it ... |
Python Numerize Library | 07 Feb, 2022
Numerize is that library of python which is used to show large numbers into its readable format. It basically converts numerical format into the compact short format. There is no need to show how many zeroes are behind the number. It itself checks the numeric digits behind the coefficient and then provides... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Feb, 2022"
},
{
"code": null,
"e": 383,
"s": 28,
"text": "Numerize is that library of python which is used to show large numbers into its readable format. It basically converts numerical format into the compact short format. There is... |
Split a string into maximum number of unique substrings | 18 Jul, 2021
Given string str, the task is to split the string into the maximum number of unique substrings possible and print their count.
Examples:
Input: str = “ababccc”Output: 5Explanation:Split the given string into the substrings “a”, “b”, “ab”, “c” and “cc”.Therefore, the maximum count of unique substrings is 5... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 179,
"s": 52,
"text": "Given string str, the task is to split the string into the maximum number of unique substrings possible and print their count."
},
{
"code": null,
"e": 190,
"... |
Java variables and data types | A variable provides us with named storage that our programs can manipulate. You must declare all variables before they can be used. Following is the basic form of a variable declaration -
data type variable [ = value][, variable [ = value] ...] ;
data type is one of Java's data types and the variable is the name of the... | [
{
"code": null,
"e": 1375,
"s": 1187,
"text": "A variable provides us with named storage that our programs can manipulate. You must declare all variables before they can be used. Following is the basic form of a variable declaration -"
},
{
"code": null,
"e": 1434,
"s": 1375,
"te... |
time.Time.Zone() Function in Golang with Examples | 21 Apr, 2020
In Go language, time packages supplies functionality for determining as well as viewing time. The Time.Zone() function in Go language is used to determine the time zone that is in work at time “t”. Moreover, this function is defined under the time package. Here, you need to import the “time” package in ord... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 362,
"s": 28,
"text": "In Go language, time packages supplies functionality for determining as well as viewing time. The Time.Zone() function in Go language is used to determine the time zone that i... |
Three ways to run Linear Mixed Effects Models in Python Jupyter Notebooks | by Jin Hyun Cheong, PhD | Towards Data Science | One of the reasons I could not fully switch out of R to Python for data analyses was that linear mixed effects models were only available in R. Linear mixed effects models are a strong statistical method that is useful when you are dealing with longitudinal, hierarchical, or clustered data. Simply put, if your data has... | [
{
"code": null,
"e": 783,
"s": 172,
"text": "One of the reasons I could not fully switch out of R to Python for data analyses was that linear mixed effects models were only available in R. Linear mixed effects models are a strong statistical method that is useful when you are dealing with longitudin... |
HSQLDB - Regular Expressions | HSQLDB supports some special symbols for pattern matching operation based on regular expressions and the REGEXP operator.
Following is the table of pattern, which can be used along with REGEXP operator.
Let us try different example queries to meet our requirements. Take a look at the following given queries.
Try this Q... | [
{
"code": null,
"e": 2104,
"s": 1982,
"text": "HSQLDB supports some special symbols for pattern matching operation based on regular expressions and the REGEXP operator."
},
{
"code": null,
"e": 2185,
"s": 2104,
"text": "Following is the table of pattern, which can be used along w... |
Portfolio Risk Management Using Monte Carlo Simulations in Python | Towards Data Science | VaR is an acronym of ‘Value at Risk’, and is a tool which is used by many firms and banks to establish the level of financial risk within its firm. The VaR is calculated for an investments of a company’s investments or perhaps for checking the riks levels of a portfolio managed by the wealth management branch of a bank... | [
{
"code": null,
"e": 513,
"s": 172,
"text": "VaR is an acronym of ‘Value at Risk’, and is a tool which is used by many firms and banks to establish the level of financial risk within its firm. The VaR is calculated for an investments of a company’s investments or perhaps for checking the riks levels... |
Write an Efficient C Program to Reverse Bits of a Number in C++ | In this problem, we are given an unsigned integer n. Our task is to create a program that returns the number which is generated by reversing all the bits of the number.
Let’s take an example to understand the problem,
n = 1
2147483648
binary of 1 is 000...0001, the reverse is 100...0000.
To solve this problem, we simpl... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "In this problem, we are given an unsigned integer n. Our task is to create a program that returns the number which is generated by reversing all the bits of the number."
},
{
"code": null,
"e": 1280,
"s": 1231,
"text": "Let’s take an... |
Different Ways to View Contents of Database File in Android Studio - GeeksforGeeks | 06 Apr, 2021
Data is a group of information and it can be any kind of information – text, numbers, image, video. An organized collection of this data is called a Database. It is made so that the data can be accessed and managed easily. Data can be organized into tables, rows, columns as that make it easier to handle th... | [
{
"code": null,
"e": 24403,
"s": 24375,
"text": "\n06 Apr, 2021"
},
{
"code": null,
"e": 25416,
"s": 24403,
"text": "Data is a group of information and it can be any kind of information – text, numbers, image, video. An organized collection of this data is called a Database. It i... |
Grid Searching From Scratch using Python - GeeksforGeeks | 26 Nov, 2020
Grid searching is a method to find the best possible combination of hyper-parameters at which the model achieves the highest accuracy. Before applying Grid Searching on any algorithm, Data is used to divided into training and validation set, a validation set is used to validate the models. A model with all... | [
{
"code": null,
"e": 23953,
"s": 23925,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 24366,
"s": 23953,
"text": "Grid searching is a method to find the best possible combination of hyper-parameters at which the model achieves the highest accuracy. Before applying Grid Searchi... |
How to join or concatenate two lists in C#? | To concatenate two lists, use AddRange() method.
Set the first list −
var products1 = new List < string > ();
products1.Add("Belts");
products1.Add("Tshirt");
products1.Add("Trousers");
Set the second list −
var products2 = new List < string > ();
products2.Add("Footwear");
products2.Add("Electronics");
To concatenate ... | [
{
"code": null,
"e": 1111,
"s": 1062,
"text": "To concatenate two lists, use AddRange() method."
},
{
"code": null,
"e": 1132,
"s": 1111,
"text": "Set the first list −"
},
{
"code": null,
"e": 1248,
"s": 1132,
"text": "var products1 = new List < string > ();\n... |
TensorFlow 2: How to use AutoEncoder for Interpolation | by Rahul Bhadani | Towards Data Science | Autoencoders are another Neural Network used to reproduce the inputs in a compressed fashion. Autoencoder has a special property in which the number of input neurons is the same as the number of output neurons.
Look at the above image. The goal of Autoencoder is to create a representation of the input at the output lay... | [
{
"code": null,
"e": 382,
"s": 171,
"text": "Autoencoders are another Neural Network used to reproduce the inputs in a compressed fashion. Autoencoder has a special property in which the number of input neurons is the same as the number of output neurons."
},
{
"code": null,
"e": 908,
... |
GATE | GATE-CS-2007 | Question 85 - GeeksforGeeks | 14 Sep, 2021
Consider the following two statements:
P: Every regular grammar is LL(1)
Q: Every regular set has a LR(1) grammar
Which of the following is TRUE?(A) Both P and Q are true(B) P is true and Q is false(C) P is false and Q is true(D) Both P and Q are falseAnswer: (C)Explanation:
A regular grammar can also be a... | [
{
"code": null,
"e": 24041,
"s": 24013,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 24080,
"s": 24041,
"text": "Consider the following two statements:"
},
{
"code": null,
"e": 24155,
"s": 24080,
"text": "P: Every regular grammar is LL(1)\nQ: Every regular... |
ReactJS Reactstrap Nav Component - GeeksforGeeks | 29 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 Nav component allows the user to provide a list of various forms of navigation menus. We can use the following approach in ReactJS to use the... | [
{
"code": null,
"e": 26667,
"s": 26639,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 27009,
"s": 26667,
"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. T... |
p5.js | rectMode() Function - GeeksforGeeks | 29 May, 2020
The rectMode() function in p5.js is used to change the way in which the parameters given to the rect() function are interpreted. This modifies the location from where the rectangle is drawn.
This function can be given four modes:
CORNER: This mode interprets the first two parameters as the upper-left corne... | [
{
"code": null,
"e": 44937,
"s": 44909,
"text": "\n29 May, 2020"
},
{
"code": null,
"e": 45128,
"s": 44937,
"text": "The rectMode() function in p5.js is used to change the way in which the parameters given to the rect() function are interpreted. This modifies the location from wh... |
Writing to CSV files in R - GeeksforGeeks | 26 Mar, 2021
For Data Analysis sometimes creating CSV data file is required and do some operations on it as per our requirement. So, In this article we are going to learn that how to write data to CSV File using R Programming Language.
To write to csv file write.csv() function is used.
Syntax: write.csv(data, path)
Par... | [
{
"code": null,
"e": 24761,
"s": 24733,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 24984,
"s": 24761,
"text": "For Data Analysis sometimes creating CSV data file is required and do some operations on it as per our requirement. So, In this article we are going to learn that ... |
C# | Check if every List element matches the predicate conditions - GeeksforGeeks | 01 Feb, 2019
List<T>.TrueForAll(Predicate<T>) is used to check whether every element in the List<T> matches the conditions defined by the specified predicate or not.
Syntax:
public bool TrueForAll (Predicate<T> match);
Parameter:
match: It is the Predicate<T> delegate which defines the conditions to check against the e... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 25700,
"s": 25547,
"text": "List<T>.TrueForAll(Predicate<T>) is used to check whether every element in the List<T> matches the conditions defined by the specified predicate or not."
},
{
... |
Using Currency Format in JFormattedTextField | Following example showcase how to create and use JFormattedTextField to specify a Currency format on Text Fields in Swing based application.
We are using the following APIs.
JFormattedTextField − To create a formatted text field.
JFormattedTextField − To create a formatted text field.
NumberFormat − To provide Percenta... | [
{
"code": null,
"e": 2180,
"s": 2039,
"text": "Following example showcase how to create and use JFormattedTextField to specify a Currency format on Text Fields in Swing based application."
},
{
"code": null,
"e": 2213,
"s": 2180,
"text": "We are using the following APIs."
},
... |
PyQt5 - Create circular Push Button - GeeksforGeeks | 22 Apr, 2020
In this article we will see how to create circular push button. By default, when we create a push button it is in rectangular form although we can also change it size to square.
In order to create circular button we have to do following steps:
1. Create a push button.2. Change its size to make it square.3.... | [
{
"code": null,
"e": 24786,
"s": 24758,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 24964,
"s": 24786,
"text": "In this article we will see how to create circular push button. By default, when we create a push button it is in rectangular form although we can also change it s... |
Implementing TabNet in PyTorch. Deep Learning has taken over vision... | by Samrat Thapa | Towards Data Science | Deep Learning has taken over vision, natural language processing, speech recognition, and many other fields achieving astonishing results and even superhuman performance in some. However, the use of deep learning to model tabular data has been relatively limited.
For tabular data, the most common approach is the use of... | [
{
"code": null,
"e": 436,
"s": 172,
"text": "Deep Learning has taken over vision, natural language processing, speech recognition, and many other fields achieving astonishing results and even superhuman performance in some. However, the use of deep learning to model tabular data has been relatively ... |
Transformer for Language Modeling | Towards Data Science | Recent trends in Natural Language Processing have been building upon one of the biggest breakthroughs in the history of the field: the Transformer. The Transformer is a model architecture researched mainly by Google Brain and Google Research. It was initially shown to achieve state-of-the-art in the translation task bu... | [
{
"code": null,
"e": 810,
"s": 172,
"text": "Recent trends in Natural Language Processing have been building upon one of the biggest breakthroughs in the history of the field: the Transformer. The Transformer is a model architecture researched mainly by Google Brain and Google Research. It was initi... |
How to remove characters except digits from string in Python? | We have a variety of ways to achieve this. We can filter out non digit characters using for ... if statement. For example:
>>> s = "H3ll0 P30P13"
>>> ''.join(i for i in s if i.isdigit())
'303013'
We can also use filter and a lambda function to filter out the characters. For example:
>>> s = "H3ll0 P30P13"
>>> filter(la... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "We have a variety of ways to achieve this. We can filter out non digit characters using for ... if statement. For example:"
},
{
"code": null,
"e": 1258,
"s": 1185,
"text": ">>> s = \"H3ll0 P30P13\"\n>>> ''.join(i for i in s if i.isd... |
Environment & Package Management. Beginner’s Guide To Anaconda | by Ujjwal Dalmia | Towards Data Science | A good handle on Package and Environment management ensures that we continue to avail the benefits of the latest package functionalities while ensuring that projects running on older package releases do not break down. This tutorial is a beginner’s guide to learn both package and environment management using Conda that... | [
{
"code": null,
"e": 681,
"s": 171,
"text": "A good handle on Package and Environment management ensures that we continue to avail the benefits of the latest package functionalities while ensuring that projects running on older package releases do not break down. This tutorial is a beginner’s guide ... |
Creating Baseline Machine Learning Models | by Himanshu Sharma | Towards Data Science | Creating a Machine Learning model includes a lot of preprocessing where we manipulate features and target variables to make data ready for a machine learning model. This preprocessing includes checking the data for any missing values, cleaning the junk values, and also visualizing the data for exploratory data analysis... | [
{
"code": null,
"e": 494,
"s": 172,
"text": "Creating a Machine Learning model includes a lot of preprocessing where we manipulate features and target variables to make data ready for a machine learning model. This preprocessing includes checking the data for any missing values, cleaning the junk va... |
Find the column name with the largest value for each row in an R data frame. | To find the column name that has the largest value for each row in an R data frame, we can use colnames function along with apply function.
For Example, if we have a data frame called df then we can find column name that has the largest value for each row by using the command as follows −
df$Largest_Column<-colnames(df... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "To find the column name that has the largest value for each row in an R data frame, we can use colnames function along with apply function."
},
{
"code": null,
"e": 1352,
"s": 1202,
"text": "For Example, if we have a data frame calle... |
What are user defined data types in C#? | The User defined data types in C# are structures and enumeration.
In C#, a structure is a value type data type. It helps you to make a single variable hold related data of various data types. The struct keyword is used for creating a structure.
The C# structures have the following features −
Structures can have methods... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "The User defined data types in C# are structures and enumeration."
},
{
"code": null,
"e": 1307,
"s": 1128,
"text": "In C#, a structure is a value type data type. It helps you to make a single variable hold related data of various da... |
C++ Program to Implement Sorted Array | A sorted array is an array in which each of the elements are sorted in some order such as numerical, alphabetical etc. There are many algorithms to sort a numerical array such as bubble sort, insertion sort, selection sort, merge sort, quick sort, heap sort etc. More details about sorting the array using selection sort... | [
{
"code": null,
"e": 1400,
"s": 1062,
"text": "A sorted array is an array in which each of the elements are sorted in some order such as numerical, alphabetical etc. There are many algorithms to sort a numerical array such as bubble sort, insertion sort, selection sort, merge sort, quick sort, heap ... |
Deleting from temporary table in SAP HANA | The temporary tables are session specific. So you would require to use truncate instead of delete as follows
truncate table #temptable;
Also, could you please check your release? In the recent releases, delete also works fine. Here is an example:
Drop table #temptable;
Create local temporary table #temptable(id integer... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "The temporary tables are session specific. So you would require to use truncate instead of delete as follows"
},
{
"code": null,
"e": 1198,
"s": 1171,
"text": "truncate table #temptable;"
},
{
"code": null,
"e": 1309,
... |
Automating AWS Server Shut-Down for Deep Learning | by Harrison Jansma | Towards Data Science | Lately, I have been working with an AWS EC2 server for a machine learning project. Every article I have come across has said the same thing... “Don't forget to shutdown your EC2 instance”. Reading this gives me anxiety. Just the thought of leaving a GPU on to burn a hole in my pocket makes me irrationally sweaty.
So I ... | [
{
"code": null,
"e": 487,
"s": 172,
"text": "Lately, I have been working with an AWS EC2 server for a machine learning project. Every article I have come across has said the same thing... “Don't forget to shutdown your EC2 instance”. Reading this gives me anxiety. Just the thought of leaving a GPU o... |
ASP.NET - Security | Implementing security in a site has the following aspects:
Authentication : It is the process of ensuring the user's identity and authenticity. ASP.NET allows four types of authentications:
Windows Authentication
Forms Authentication
Passport Authentication
Custom Authentication
Authentication : It is the process of... | [
{
"code": null,
"e": 2406,
"s": 2347,
"text": "Implementing security in a site has the following aspects:"
},
{
"code": null,
"e": 2630,
"s": 2406,
"text": "Authentication : It is the process of ensuring the user's identity and authenticity. ASP.NET allows four types of authentic... |
ASP.NET WP - Working with Files | In this chapter, we will cover how you can work with text files in your website. You can use text files as a simple way to store data for your website.
Text files can be in different formats, such as *.txt, *.xml, or *.csv.
Text files can be in different formats, such as *.txt, *.xml, or *.csv.
You can use the File.Wri... | [
{
"code": null,
"e": 2437,
"s": 2285,
"text": "In this chapter, we will cover how you can work with text files in your website. You can use text files as a simple way to store data for your website."
},
{
"code": null,
"e": 2509,
"s": 2437,
"text": "Text files can be in different... |
Autonomous Driving Dataset Visualization with Python and VizViewer | by Jose Rojas | Towards Data Science | As part of a recently published paper and Kaggle competition, Lyft has made public a dataset for building autonomous driving path prediction algorithms. The dataset includes a semantic map, ego vehicle data, and dynamic observational data for moving objects in the vehicle's vicinity. The challenge presented by Lyft wit... | [
{
"code": null,
"e": 714,
"s": 172,
"text": "As part of a recently published paper and Kaggle competition, Lyft has made public a dataset for building autonomous driving path prediction algorithms. The dataset includes a semantic map, ego vehicle data, and dynamic observational data for moving objec... |
How to disable a MenuItem in Java? | To disable a MenuItem, use the setEnabled() method and set it to FALSE. Let’s say we have the following MenuBar −
JMenuBar menuBar = new JMenuBar();
Now, create a Menu −
JMenu fileMenu = new JMenu("File");
fileMenu.setMnemonic(KeyEvent.VK_F);
menuBar.add(fileMenu);
We will now create two MenuItems inside the above Menu... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "To disable a MenuItem, use the setEnabled() method and set it to FALSE. Let’s say we have the following MenuBar −"
},
{
"code": null,
"e": 1211,
"s": 1176,
"text": "JMenuBar menuBar = new JMenuBar();"
},
{
"code": null,
"... |
Count of all possible N length balanced Binary Strings - GeeksforGeeks | 10 Dec, 2021
Given a number N, the task is to find the total number of balanced binary strings possible of length N. A binary string is said to be balanced if:
The number of 0s and 1s are equal in each binary string
The count of 0s in any prefix of binary strings is always greater than or equal to the count of 1s
For E... | [
{
"code": null,
"e": 24597,
"s": 24569,
"text": "\n10 Dec, 2021"
},
{
"code": null,
"e": 24744,
"s": 24597,
"text": "Given a number N, the task is to find the total number of balanced binary strings possible of length N. A binary string is said to be balanced if:"
},
{
"c... |
Create a two line legend in a Bokeh Plot - GeeksforGeeks | 27 May, 2021
In this article, we will be learning about how to create a two line legend in the bokeh plot. Legends are one of the most essential parts of a bokeh plot. They help us to differentiate between different glyphs used in a plot. Other than that if we need to plot different lines of different colors in the sam... | [
{
"code": null,
"e": 24217,
"s": 24189,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 24650,
"s": 24217,
"text": "In this article, we will be learning about how to create a two line legend in the bokeh plot. Legends are one of the most essential parts of a bokeh plot. They hel... |
Product of Complex Numbers using three Multiplication Operation | 29 Nov, 2021
Given four integers a, b, c, and d which represents two complex numbers of the form (a + bi) and (c + di), the task is to find the product of the given complex numbers using only three multiplication operations.Examples:
Input: a = 2, b = 3, c = 4 and d = 5 Output: -7 + 22i Explanation: Product is given b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Nov, 2021"
},
{
"code": null,
"e": 250,
"s": 28,
"text": "Given four integers a, b, c, and d which represents two complex numbers of the form (a + bi) and (c + di), the task is to find the product of the given complex numbers using o... |
Python Program to print element with maximum vowels from a List | 08 Dec, 2020
Given a list containing string elements, the task is to write a Python program to print string with maximum vowels.
Input : test_list = [“gfg”, “best”, “for”, “geeks”] Output : geeks Explanation : geeks has 2 e’s which is a maximum number of vowels compared to other strings.
Input : test_list = [“gfg”, “be... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Dec, 2020"
},
{
"code": null,
"e": 144,
"s": 28,
"text": "Given a list containing string elements, the task is to write a Python program to print string with maximum vowels."
},
{
"code": null,
"e": 304,
"s": 144,
... |
Setting the Position of the Image in PDF Document using Java | 17 Jun, 2021
To set the Position of the Image in a PDF document using Java multiple external dependencies need to download first. Setting the Position of the Image in a PDF, use the iText library. These are the steps that should be followed to Set the Position of the Image in a PDF using java.
1. Creating a PdfWriter o... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 310,
"s": 28,
"text": "To set the Position of the Image in a PDF document using Java multiple external dependencies need to download first. Setting the Position of the Image in a PDF, use the iText ... |
Scala | REPL | 09 Apr, 2019
Scala REPL is an interactive command line interpreter shell, where REPL stands for Read-Evaluate-Print-Loop. It works like it stands for only. It first Read expression provided as input on Scala command line and then it Evaluate given expression and Print expression’s outcome on screen and then it is again... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Apr, 2019"
},
{
"code": null,
"e": 632,
"s": 28,
"text": "Scala REPL is an interactive command line interpreter shell, where REPL stands for Read-Evaluate-Print-Loop. It works like it stands for only. It first Read expression provide... |
Scheduling Python Scripts on Linux | 31 Aug, 2021
Sometimes we need to do a task every day, and we can do these repetitive tasks every day by ourselves, or we can use the art of programming to automate these repetitive tasks by scheduling the task. And today in this article we are going to learn how to schedule a python script on Linux to do the repetitiv... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 344,
"s": 28,
"text": "Sometimes we need to do a task every day, and we can do these repetitive tasks every day by ourselves, or we can use the art of programming to automate these repetitive tasks ... |
Listview.builder in Flutter | 17 Jun, 2022
ListView is a very important widget in a flutter. It is used to create the list of children But when we want to create a list recursively without writing code again and again then ListView.builder is used instead of ListView. ListView.builder creates a scrollable, linear array of widgets.
ListView.builder... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 345,
"s": 54,
"text": "ListView is a very important widget in a flutter. It is used to create the list of children But when we want to create a list recursively without writing code again and again... |
How to display HTML tags as plain text using PHP | 28 Nov, 2018
HTML tags begin with the less-than character and end with greater-than character, the text inside the tag formatted and presented according to the tag used. Every tag has special meaning to the browser but there are cases when to show plain HTML code in webpage.There are various methods in PHP to show the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 569,
"s": 28,
"text": "HTML tags begin with the less-than character and end with greater-than character, the text inside the tag formatted and presented according to the tag used. Every tag has spec... |
Data Structures | Stack | Question 4 | 09 Feb, 2013
Consider the following pseudocode that uses a stack
declare a stack of characterswhile ( there are more characters in the word to read ){ read a character push the character on the stack}while ( the stack is not empty ){ pop a character off the stack write the character to the screen}
What is outpu... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n09 Feb, 2013"
},
{
"code": null,
"e": 105,
"s": 53,
"text": "Consider the following pseudocode that uses a stack"
},
{
"code": "declare a stack of characterswhile ( there are more characters in the word to read ){ read a char... |
Python | os.getuid() and os.setuid() method | 25 Jun, 2019
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality.
All functions in os module raise OSError in the case of invalid or inaccessible file nam... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 247,
"s": 28,
"text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin... |
Convert CSV to HTML Table in Python | 01 Jun, 2021
CSV file is a Comma Separated Value file that uses a comma to separate values. It is basically used for exchanging data between different applications. In this, individual rows are separated by a newline. Fields of data in each row are delimited with a comma.Example :
Name, Salary, Age, No.of years emplo... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 325,
"s": 54,
"text": "CSV file is a Comma Separated Value file that uses a comma to separate values. It is basically used for exchanging data between different applications. In this, individual ro... |
How to convert PDF file to Excel file using Python? | 28 Jan, 2021
In this article, we will see how to convert a PDF to Excel or CSV File Using Python. It can be done with various methods, here are we are going to use some methods.
Method 1: Using pdftables_api
Here will use the pdftables_api Module for converting the PDF file into any other format. It’s a simple web-bas... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jan, 2021"
},
{
"code": null,
"e": 217,
"s": 52,
"text": "In this article, we will see how to convert a PDF to Excel or CSV File Using Python. It can be done with various methods, here are we are going to use some methods."
},
{... |
\varsigma - Tex Command | \varsigma - Used to create varsigma symbol.
{ \varsigma}
\varsigma command draws varsigma symbol.
\varsigma
ς
\varsigma
ς
\varsigma
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
... | [
{
"code": null,
"e": 8030,
"s": 7986,
"text": "\\varsigma - Used to create varsigma symbol."
},
{
"code": null,
"e": 8043,
"s": 8030,
"text": "{ \\varsigma}"
},
{
"code": null,
"e": 8084,
"s": 8043,
"text": "\\varsigma command draws varsigma symbol."
},
{
... |
How to Create a Single Legend for All Subplots in Matplotlib? | 23 Dec, 2020
The subplot() function in matplotlib helps to create a grid of subplots within a single figure. In a figure, subplots are created and ordered row-wise from the top left. A legend in the Matplotlib library basically describes the graph elements. The legend() can be customized and adjusted anywhere inside or... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Dec, 2020"
},
{
"code": null,
"e": 551,
"s": 52,
"text": "The subplot() function in matplotlib helps to create a grid of subplots within a single figure. In a figure, subplots are created and ordered row-wise from the top left. A le... |
Python | Speech recognition on large audio files | 23 Jul, 2019
Speech recognition is the process of converting audio into text. This is commonly used in voice assistants like Alexa, Siri, etc. Python provides an API called SpeechRecognition to allow us to convert audio into text for further processing. In this article, we will look at converting large or long audio fi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jul, 2019"
},
{
"code": null,
"e": 392,
"s": 28,
"text": "Speech recognition is the process of converting audio into text. This is commonly used in voice assistants like Alexa, Siri, etc. Python provides an API called SpeechRecogniti... |
Ruby | Time usec function | 06 Jan, 2020
Time#usec() is a Time class method which returns the number of microseconds for time.
Syntax: Time.usec()
Parameter: Time values
Return: the number of microseconds for time.
Example #1 :
# Ruby code for Time.usec() method # loading libraryrequire 'time' # declaring time a = Time.new(2019) # declaring ti... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jan, 2020"
},
{
"code": null,
"e": 114,
"s": 28,
"text": "Time#usec() is a Time class method which returns the number of microseconds for time."
},
{
"code": null,
"e": 134,
"s": 114,
"text": "Syntax: Time.usec()"... |
How to get form data using POST method in PHP ? | 02 Jun, 2020
PHP provides a way to read raw POST data of an HTML Form using php:// which is used for accessing PHP’s input and output streams. In this article, we will use the mentioned way in three different ways. We will use php://input, which is a read-only PHP stream.
We will create a basic HTML form page where we ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Jun, 2020"
},
{
"code": null,
"e": 288,
"s": 28,
"text": "PHP provides a way to read raw POST data of an HTML Form using php:// which is used for accessing PHP’s input and output streams. In this article, we will use the mentioned wa... |
Print nodes having maximum and minimum degrees | 18 Aug, 2021
Given an undirected graph having N nodes, the task is to print the nodes having minimum and maximum degree.Examples:
Input:
1-----2
| |
3-----4
Output:
Nodes with maximum degree : 1 2 3 4
Nodes with minimum degree : 1 2 3 4
Every node has a degree of 2.
Input:
1
/ \
2 3
/
4
Output:
Nod... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 173,
"s": 54,
"text": "Given an undirected graph having N nodes, the task is to print the nodes having minimum and maximum degree.Examples: "
},
{
"code": null,
"e": 424,
"s": 173,... |
Complete the sequence generated by a polynomial | 27 Jul, 2021
Given a sequence with some of its term, we need to calculate next K term of this sequence. It is given that sequence is generated by some polynomial, however complex that polynomial can be. Notice polynomial is an expression of the following form: P(x) = a0 + a1 x +a2 x^2 + a3 x^3 ........ + an x^nThe give... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Jul, 2021"
},
{
"code": null,
"e": 544,
"s": 52,
"text": "Given a sequence with some of its term, we need to calculate next K term of this sequence. It is given that sequence is generated by some polynomial, however complex that pol... |
Tailwind CSS vs Bootstrap | 02 Nov, 2021
Tailwind CSS was initially developed by Adam Wathan, and the first version was released back on the 1st of November, 2017. Tailwind CSS is a utility-first CSS framework for building custom user interfaces rapidly and efficiently. It is an inline styling used to achieve a sleek interface without writing cod... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Nov, 2021"
},
{
"code": null,
"e": 730,
"s": 28,
"text": "Tailwind CSS was initially developed by Adam Wathan, and the first version was released back on the 1st of November, 2017. Tailwind CSS is a utility-first CSS framework for bu... |
Python | Pandas dataframe.bfill() | 13 Feb, 2020
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas dataframe.bfill() is used to backward fill the missing values in the dataset. It will ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Feb, 2020"
},
{
"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... |
Minimum Index Sum for Common Elements of Two Lists | 14 Mar, 2022
Ram and Shyam want to choose a website to learn programming and they both have a list of favorite websites represented by strings.You need to help them find out their common interest with the least index sum. If there is a choice tie between answers, print all of them with no order requirement. Assume ther... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Mar, 2022"
},
{
"code": null,
"e": 388,
"s": 54,
"text": "Ram and Shyam want to choose a website to learn programming and they both have a list of favorite websites represented by strings.You need to help them find out their common ... |
numpy.dtype.kind() function – Python | 18 Jun, 2020
numpy.dtype.kind() function determine the character code by identifying the general kind of data.
Syntax : numpy.dtype.kind(type)
Parameters :type : [dtype] The input data-type.Return : Return the character code by identifying the general kind of data.
Code #1 :
# Python program explaining# numpy.dtype.kin... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 126,
"s": 28,
"text": "numpy.dtype.kind() function determine the character code by identifying the general kind of data."
},
{
"code": null,
"e": 158,
"s": 126,
"text": "Syntax :... |
JavaScript Ternary Operator | 11 Feb, 2021
Below is the example of the Ternary Operator.
Example:Program 1:<script> function gfg() { //JavaScript to illustrate //Conditional operator let PMarks = 40 let result = (PMarks > 39)? "Pass":"Fail"; document.write(result); } gfg(); </script>
<script> f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Feb, 2021"
},
{
"code": null,
"e": 98,
"s": 52,
"text": "Below is the example of the Ternary Operator."
},
{
"code": null,
"e": 344,
"s": 98,
"text": "Example:Program 1:<script> function gfg() { //Java... |
AWK - Increment and Decrement Operators | AWK supports the following increment and decrement operators −
It is represented by ++. It increments the value of an operand by 1. This operator first increments the value of the operand, then returns the incremented value. For instance, in the following example, this operator sets the value of both the operands, a an... | [
{
"code": null,
"e": 1920,
"s": 1857,
"text": "AWK supports the following increment and decrement operators −"
},
{
"code": null,
"e": 2189,
"s": 1920,
"text": "It is represented by ++. It increments the value of an operand by 1. This operator first increments the value of the op... |
Decision Trees and Random Forests for Classification and Regression pt.1 | by Haihan Lan | Towards Data Science | Want to use something more interpertable, something that trains faster and performs pretty much just as well as the old Logistic Regression or even Neural Networks? You should consider Decision Trees for classification and regression. Part 2 on Random Forests here.
Much faster to train versus simple neural networks for... | [
{
"code": null,
"e": 438,
"s": 172,
"text": "Want to use something more interpertable, something that trains faster and performs pretty much just as well as the old Logistic Regression or even Neural Networks? You should consider Decision Trees for classification and regression. Part 2 on Random For... |
Geek and Subset Sum | Practice | GeeksforGeeks | Given an array arr of positive integers of size N and an integer K, the task is to find the sum of all subsets of size K.
Input:
1. The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows.
2. The first line of each test case contains two integ... | [
{
"code": null,
"e": 348,
"s": 226,
"text": "Given an array arr of positive integers of size N and an integer K, the task is to find the sum of all subsets of size K."
},
{
"code": null,
"e": 613,
"s": 348,
"text": "Input: \n1. The first line of the input contains a single intege... |
Data Scientist vs Data Engineer Salary | Towards Data Science | IntroductionData ScientistData EngineerSummaryReferences
Introduction
Data Scientist
Data Engineer
Summary
References
Note:
This article is the third, a part of a continuing series on reported salaries between popular data/tech roles. I will link the other two at the end of this article.
This article aims not to compar... | [
{
"code": null,
"e": 229,
"s": 172,
"text": "IntroductionData ScientistData EngineerSummaryReferences"
},
{
"code": null,
"e": 242,
"s": 229,
"text": "Introduction"
},
{
"code": null,
"e": 257,
"s": 242,
"text": "Data Scientist"
},
{
"code": null,
... |
Android - Environment Setup | You will be glad to know that you can start your Android application development on either of the following operating systems −
Microsoft Windows XP or later version.
Microsoft Windows XP or later version.
Mac OS X 10.5.8 or later version with Intel chip.
Mac OS X 10.5.8 or later version with Intel chip.
Linux includin... | [
{
"code": null,
"e": 3735,
"s": 3607,
"text": "You will be glad to know that you can start your Android application development on either of the following operating systems −"
},
{
"code": null,
"e": 3774,
"s": 3735,
"text": "Microsoft Windows XP or later version."
},
{
"... |
Minimum move to end operations to make all strings equal | 13 Jun, 2022
Given n strings that are permutations of each other. We need to make all strings same with an operation that takes front character of any string and moves it to the end.Examples:
Input : n = 2
arr[] = {"molzv", "lzvmo"}
Output : 2
Explanation: In first string, we remove
first element("m") from fi... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 235,
"s": 54,
"text": "Given n strings that are permutations of each other. We need to make all strings same with an operation that takes front character of any string and moves it to the end.Examp... |
Draw Clock Design using Turtle in Python | 26 Jul, 2021
Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc.
Following steps are used :
Import turtle.
Create Screen object ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Jul, 2021"
},
{
"code": null,
"e": 297,
"s": 53,
"text": "Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To ... |
Design a Tribute Page using HTML & CSS | 06 Oct, 2021
A tribute page is basically an overview of someone whom we admire in our life. In this article, we are creating a tribute webpage of Late A.P.J. Abdul Kalam Sir using HTML and CSS. We will add an image of him at the center (below the title) and create a box beneath that image. Inside that box, we will writ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 530,
"s": 52,
"text": "A tribute page is basically an overview of someone whom we admire in our life. In this article, we are creating a tribute webpage of Late A.P.J. Abdul Kalam Sir using HTML an... |
Nested Dictionary to Multiindex Dataframe | 24 Feb, 2021
Pandas DataFrame is a two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). A Data frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. Pandas DataFrame consists of three principal component... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Feb, 2021"
},
{
"code": null,
"e": 466,
"s": 28,
"text": "Pandas DataFrame is a two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). A Data frame is a two-dimensional da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.