title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Matplotlib.pyplot.contourf() in Python | 21 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface.
The contourf() function in pyplot module of matplotlib library is used to plot contours. But contourf draw fille... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 223,
"s": 28,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MAT... |
How to change background color of table rows or individual cells in Bootstrap ? | 20 Aug, 2021
In this article, we will discuss setting the background color of the table rows & how to set the background color for an individual cell using Bootstrap. Bootstrap provides a series of classes that can be used to apply various styling to the tables such as changing the heading appearance, making the rows s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Aug, 2021"
},
{
"code": null,
"e": 462,
"s": 28,
"text": "In this article, we will discuss setting the background color of the table rows & how to set the background color for an individual cell using Bootstrap. Bootstrap provides a ... |
C# | HashSet Class | 20 Dec, 2018
A HashSet<T> is an unordered collection of the unique elements. It comes under System.Collections.Generic namespace. It is used in a situation where we want to prevent duplicates from being inserted in the collection. As far as performance is concerned, it is better in comparison to the list.
Characteristi... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Dec, 2018"
},
{
"code": null,
"e": 348,
"s": 54,
"text": "A HashSet<T> is an unordered collection of the unique elements. It comes under System.Collections.Generic namespace. It is used in a situation where we want to prevent duplic... |
Program to find minimum number of bricks required to make k towers of same height in Python | Suppose we have a list of tower heights, and a positive value k. We want to select k towers and make them all the same height by adding more bricks, but using as few bricks as possible. We have to find the minimum number of bricks are needed to pick k towers and make them the same height.
So, if the input is like heigh... | [
{
"code": null,
"e": 1477,
"s": 1187,
"text": "Suppose we have a list of tower heights, and a positive value k. We want to select k towers and make them all the same height by adding more bricks, but using as few bricks as possible. We have to find the minimum number of bricks are needed to pick k t... |
How to execute TypeScript file using command line? | 05 Feb, 2020
TypeScript is an open-source programming language. It is developed and maintained by Microsoft. TypeScript follows JavaScript syntactically but adds more features to it. It is a superset of JavaScript. In order to execute or run any typescript file, first you need to install node and using it install types... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Feb, 2020"
},
{
"code": null,
"e": 372,
"s": 28,
"text": "TypeScript is an open-source programming language. It is developed and maintained by Microsoft. TypeScript follows JavaScript syntactically but adds more features to it. It is... |
8 Examples to Query a NoSQL Database | by Soner Yıldırım | Towards Data Science | NoSQL refers to non-SQL or non-relational database design. It provides an organized way of storing data but not in tabular form (i.e. labelled rows and columns).
The common structures adapted by NoSQL databases to store data are key-value pairs, wide column, graph, or document. There are several NoSQL databases used in... | [
{
"code": null,
"e": 334,
"s": 172,
"text": "NoSQL refers to non-SQL or non-relational database design. It provides an organized way of storing data but not in tabular form (i.e. labelled rows and columns)."
},
{
"code": null,
"e": 597,
"s": 334,
"text": "The common structures ad... |
Fleury's Algorithm for printing Eulerian Path or Circuit - GeeksforGeeks | 04 Feb, 2022
Eulerian Path is a path in graph that visits every edge exactly once. Eulerian Circuit is an Eulerian Path which starts and ends on the same vertex.We strongly recommend to first read the following post on Euler Path and Circuit. https://www.geeksforgeeks.org/eulerian-path-and-circuit/In the above mentione... | [
{
"code": null,
"e": 25226,
"s": 25198,
"text": "\n04 Feb, 2022"
},
{
"code": null,
"e": 26235,
"s": 25226,
"text": "Eulerian Path is a path in graph that visits every edge exactly once. Eulerian Circuit is an Eulerian Path which starts and ends on the same vertex.We strongly rec... |
How to set the current working directory in Python? | You can change directory or cd in Python using the os module. It takes as input the relative/absolute path of the directory you want to switch to.
>>> import os
>>> os.chdir('my_folder') | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "You can change directory or cd in Python using the os module. It takes as input the relative/absolute path of the directory you want to switch to."
},
{
"code": null,
"e": 1249,
"s": 1209,
"text": ">>> import os\n>>> os.chdir('my_fol... |
Check if a String starts with any of the given prefixes in Java - GeeksforGeeks | 11 Dec, 2018
Given a String and an array of prefixes. The task is to check whether the given String starts with any of the given prefixes or not.
Example:
Input: String = “GeeksforGeeks”, Prefixes = {“Geeks”, “for”, “Gfor”}Output: true
Input: String = “GeeksforGeeks”, Prefixes = {“Freaks”, “for”, “Freak”}Output: false
... | [
{
"code": null,
"e": 24252,
"s": 24224,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 24385,
"s": 24252,
"text": "Given a String and an array of prefixes. The task is to check whether the given String starts with any of the given prefixes or not."
},
{
"code": null,
... |
How to convert JSON data into a Python object? | The following code converts a json object(string) into a python object(dictionary). We import the json module and use the json.loads() method to do this.
import json
json_string = '{"name":"Sonali", "age": 21, "designation":" Software developer"}'
print type (json_string)
def func(strng):
a =json.loads(strng)
p... | [
{
"code": null,
"e": 1216,
"s": 1062,
"text": "The following code converts a json object(string) into a python object(dictionary). We import the json module and use the json.loads() method to do this."
},
{
"code": null,
"e": 1425,
"s": 1216,
"text": "import json\njson_string = '... |
How do you sort an array in C# in ascending order? | Firstly, set the unsorted array.
int[] list = {98, 23, 97, 36, 77};
Sort the array using the Sort() method.
Array.Sort(list);
You can try to run the following code to to sort an array in ascending order.
Live Demo
using System;
namespace Demo {
public class MyApplication {
public static void Main(string[] arg... | [
{
"code": null,
"e": 1095,
"s": 1062,
"text": "Firstly, set the unsorted array."
},
{
"code": null,
"e": 1130,
"s": 1095,
"text": "int[] list = {98, 23, 97, 36, 77};"
},
{
"code": null,
"e": 1170,
"s": 1130,
"text": "Sort the array using the Sort() method."
... |
How to Convert a String to Hexadecimal and vice versa format in java? | The toHexString() method of the Integer class accepts an integer as a parameter and returns a hexadecimal string. Therefore, to convert a string to a hexadecimal String −
Get the desired String.
Get the desired String.
Create an empty StringBuffer object.
Create an empty StringBuffer object.
Convert it into a character... | [
{
"code": null,
"e": 1233,
"s": 1062,
"text": "The toHexString() method of the Integer class accepts an integer as a parameter and returns a hexadecimal string. Therefore, to convert a string to a hexadecimal String −"
},
{
"code": null,
"e": 1257,
"s": 1233,
"text": "Get the des... |
Predictive Maintenance: detect Faults from Sensors with CNN | by Marco Cerliani | Towards Data Science | In Machine Learning the topic of Predictive Maintenance is becoming more popular with the passage of time. The challenges are not easy and very heterogenous: it’s useful to have a good knowledge of the domain or to be in touch with people who know how the underlying system works. For these reasons when a data scientist... | [
{
"code": null,
"e": 654,
"s": 172,
"text": "In Machine Learning the topic of Predictive Maintenance is becoming more popular with the passage of time. The challenges are not easy and very heterogenous: it’s useful to have a good knowledge of the domain or to be in touch with people who know how the... |
What is the scope of an internal variable of a class in C#? | Internal variable is set using the internal access specifier.
internal double length;
internal double width;
Any member with internal access specifier can be accessed from any class or method defined within the application in which the member is defined.
Live Demo
using System;
namespace RectangleApplication {
clas... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "Internal variable is set using the internal access specifier."
},
{
"code": null,
"e": 1171,
"s": 1124,
"text": "internal double length;\ninternal double width;"
},
{
"code": null,
"e": 1317,
"s": 1171,
"text": "A... |
Google Guice - Quick Guide | Guice is an open source, Java-based dependency injection framework. It is quiet lightweight and is actively developed/managed by Google.
Every Java-based application has a few objects that work together to present what the end-user sees as a working application. When writing a complex Java application, application clas... | [
{
"code": null,
"e": 2239,
"s": 2102,
"text": "Guice is an open source, Java-based dependency injection framework. It is quiet lightweight and is actively developed/managed by Google."
},
{
"code": null,
"e": 2739,
"s": 2239,
"text": "Every Java-based application has a few object... |
TF-IDF Explained And Python Sklearn Implementation | by Marius Borcan | Towards Data Science | What is TF-IDF and how you can implement it in Python and Scikit-Learn.
TF-IDF is an information retrieval and information extraction subtask which aims to express the importance of a word to a document which is part of a colection of documents which we usually name a corpus. It is usually used by some search engines t... | [
{
"code": null,
"e": 243,
"s": 171,
"text": "What is TF-IDF and how you can implement it in Python and Scikit-Learn."
},
{
"code": null,
"e": 751,
"s": 243,
"text": "TF-IDF is an information retrieval and information extraction subtask which aims to express the importance of a wo... |
Binary Tree Preorder Traversal in Python | Suppose we have a binary tree. We have to return the preorder traversal of that tree. So if the tree is like −
Then the preorder traversal will be: [3,9,20,15,7]
To solve this, we will follow these steps −
make empty lists called res and st.
node := root
while node or st is not emptywhile node is not null, theninsert v... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "Suppose we have a binary tree. We have to return the preorder traversal of that tree. So if the tree is like −"
},
{
"code": null,
"e": 1224,
"s": 1173,
"text": "Then the preorder traversal will be: [3,9,20,15,7]"
},
{
"code"... |
How to use internal CSS (Style Sheet) in HTML? | CSS can be used in various ways in HTML. One of them is by using Internal CSS i.e. using a <style> tag. The <style> tag is used in the <head>...</head> tag. It defines CSS style for a single page.
You can try to run the following code to use internal CSS in HTML −
<!DOCTYPE html>
<html>
<head>
<style>
... | [
{
"code": null,
"e": 1259,
"s": 1062,
"text": "CSS can be used in various ways in HTML. One of them is by using Internal CSS i.e. using a <style> tag. The <style> tag is used in the <head>...</head> tag. It defines CSS style for a single page."
},
{
"code": null,
"e": 1327,
"s": 1259... |
Bitwise Right Shift Operators in Java - GeeksforGeeks | 24 Dec, 2021
In C/C++ there is only one right shift operator ‘>>’ which should be used only for positive integers or unsigned integers. Use of the right shift operator for negative numbers is not recommended in C/C++, and when used for negative numbers, the output is compiler dependent. Unlike C++, Java supports follow... | [
{
"code": null,
"e": 24533,
"s": 24505,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 24871,
"s": 24533,
"text": "In C/C++ there is only one right shift operator ‘>>’ which should be used only for positive integers or unsigned integers. Use of the right shift operator for nega... |
How to install Angry IP Scanner from PPA in Ubuntu/Linux Mint | Angry IP Scanner is an open-source and cross-platform network scanner. It is very faster and simple to use platform which scans IP addresses and ports. TCP/IP(Angry IP) network scanner allows users to easily scan IP addresses within any range of your choice via a user-friendly interface. Once Angry IP Scanner detects a... | [
{
"code": null,
"e": 1606,
"s": 1062,
"text": "Angry IP Scanner is an open-source and cross-platform network scanner. It is very faster and simple to use platform which scans IP addresses and ports. TCP/IP(Angry IP) network scanner allows users to easily scan IP addresses within any range of your ch... |
VBA - Hour Function | The Hour Function returns a number between 0 and 23 that represents the hour of the day for the specified time stamp.
Hour(time)
Add a button and add the following function.
Private Sub Constant_demo_Click()
msgbox("Line 1: " & Hour("3:13:45 PM"))
msgbox("Line 2: " & Hour("23:13:45"))
msgbox("Line 3: " & Hou... | [
{
"code": null,
"e": 2053,
"s": 1935,
"text": "The Hour Function returns a number between 0 and 23 that represents the hour of the day for the specified time stamp."
},
{
"code": null,
"e": 2066,
"s": 2053,
"text": "Hour(time) \n"
},
{
"code": null,
"e": 2111,
"s"... |
Doctor.ai, an AI-Powered Virtual Voice Assistant for Health Care | by Sixing Huang | Towards Data Science | By Sixing Huang, Derek Ding, Emil Pastor, Irwan Butar Butar, Shiny Zhu. Supported by Maruthi Prithivirajan, Joshua Yu and Daniel Ng from Neo4j.
I think a pinnacle of the future of health-care will be building the virtual medical coach to promote self-driving healthy humans. Acknowledging there’s no shortage of obstacle... | [
{
"code": null,
"e": 316,
"s": 172,
"text": "By Sixing Huang, Derek Ding, Emil Pastor, Irwan Butar Butar, Shiny Zhu. Supported by Maruthi Prithivirajan, Joshua Yu and Daniel Ng from Neo4j."
},
{
"code": null,
"e": 571,
"s": 316,
"text": "I think a pinnacle of the future of health... |
How to check if a string contains a certain word in C#? | Use the Contains() method to check if a string contains a word or not.
Set the string −
string s = "Together we can do so much!";
Now let’s say you need to find the word “much”
if (s.Contains("much") == true) {
Console.WriteLine("Word found!");
}
Let us see the complete code −
Live Demo
using System;
public class ... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "Use the Contains() method to check if a string contains a word or not."
},
{
"code": null,
"e": 1150,
"s": 1133,
"text": "Set the string −"
},
{
"code": null,
"e": 1192,
"s": 1150,
"text": "string s = \"Together w... |
How to initialize a string to an empty string in C#? | To initialize a string to an empty list −
string myStr = null;
Now, use the built-in method IsNullOrEmpty() to check whether the list is empty or not −
if (string.IsNullOrEmpty(myStr)) {
Console.WriteLine("String is empty or null!");
}
Let us see the complete code −
Live Demo
using System;
namespace Demo {
clas... | [
{
"code": null,
"e": 1104,
"s": 1062,
"text": "To initialize a string to an empty list −"
},
{
"code": null,
"e": 1125,
"s": 1104,
"text": "string myStr = null;"
},
{
"code": null,
"e": 1214,
"s": 1125,
"text": "Now, use the built-in method IsNullOrEmpty() to ... |
Complex Demodulation Phase and Amplitude Plot - GeeksforGeeks | 14 Aug, 2021
In the frequency analysis of time series models, a common model is a sinusoidal wave:
where, ∝ is the amplitude, phi is the phase shift and omega is the dominant frequency. The goal of the complex demodulation plot is to improve the frequency estimate.
The complex demodulation plots formed by two componen... | [
{
"code": null,
"e": 24344,
"s": 24316,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 24430,
"s": 24344,
"text": "In the frequency analysis of time series models, a common model is a sinusoidal wave:"
},
{
"code": null,
"e": 24597,
"s": 24430,
"text": "wher... |
Domino and Tromino Tiling in C++ | Suppose we have two types of shapes, Domino and Tromino. They can be rotated like below −
In a tiling, every square must be covered by a tile. Here two tilings are different if and only if there are two 4-directionally adjacent cells on the board such that exactly one of the tilings has both squares occupied by a tile.... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "Suppose we have two types of shapes, Domino and Tromino. They can be rotated like below −"
},
{
"code": null,
"e": 1383,
"s": 1152,
"text": "In a tiling, every square must be covered by a tile. Here two tilings are different if and o... |
Shell Scripts to Find How Many Users are Logged In - GeeksforGeeks | 11 May, 2021
Every operating system provides a feature of multiple user accounts. Linux-based operating systems have some commands or functionalities to check user accounts’ details and change them. This ability is mainly used by the admin account user that is the root user, to provide permissions and access to differe... | [
{
"code": null,
"e": 24015,
"s": 23987,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 24562,
"s": 24015,
"text": "Every operating system provides a feature of multiple user accounts. Linux-based operating systems have some commands or functionalities to check user accounts’ de... |
Hacking RSA Cipher | Hacking RSA cipher is possible with small prime numbers, but it is considered impossible if it is used with large numbers. The reasons which specify why it is difficult to hack RSA cipher are as follows −
Brute force attack would not work as there are too many possible keys to work through. Also, this consumes a lot of... | [
{
"code": null,
"e": 2497,
"s": 2292,
"text": "Hacking RSA cipher is possible with small prime numbers, but it is considered impossible if it is used with large numbers. The reasons which specify why it is difficult to hack RSA cipher are as follows −"
},
{
"code": null,
"e": 2619,
"... |
How to Encode and Decode Image in Base64 in Android? - GeeksforGeeks | 13 Jul, 2021
Here, we are going to make an application of the “Encoding-Decoding” of an image. By making this application we will be able to learn that how we can encode an image in Base64. We will also be decoding our image with help of a button.
Prerequisite:
Before proceeding with this application you should be awar... | [
{
"code": null,
"e": 25116,
"s": 25088,
"text": "\n13 Jul, 2021"
},
{
"code": null,
"e": 25351,
"s": 25116,
"text": "Here, we are going to make an application of the “Encoding-Decoding” of an image. By making this application we will be able to learn that how we can encode an ima... |
Visualizing House Price Distributions | by Anthony Agnone | Towards Data Science | I’m in the process of closing on my first home in Atlanta, GA, and have been heavily using various real estate websites like Zillow, Redfin, and Trulia. I’ve also been toying with Zillow’s API, although somewhat spotty in functionality and documentation. Despite its shortcomings, I was fully inspired once I read the po... | [
{
"code": null,
"e": 743,
"s": 172,
"text": "I’m in the process of closing on my first home in Atlanta, GA, and have been heavily using various real estate websites like Zillow, Redfin, and Trulia. I’ve also been toying with Zillow’s API, although somewhat spotty in functionality and documentation. ... |
Command line arguments in C/C++ - GeeksforGeeks | 28 Jun, 2021
The most important function of C/C++ is main() function. It is mostly defined with a return type of int and without parameters :
int main() { /* ... */ }
We can also give command-line arguments in C and C++. Command-line arguments are given after the name of the program in command-line shell of Operating... | [
{
"code": null,
"e": 24558,
"s": 24530,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24687,
"s": 24558,
"text": "The most important function of C/C++ is main() function. It is mostly defined with a return type of int and without parameters :"
},
{
"code": null,
"e... |
How to use prepared statement for select query in Java with MySQL? | You need to use executeQuery() for this. The syntax is as follows −
yourPreparedStatementObject=yourConnectionObject.prepareStatement(yourQueryName);
yourresultSetObject=yourPreparedStatementObject.executeQuery();
Create a table in the database ‘sample’. The query to create a table is as follows −
mysql> create table J... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "You need to use executeQuery() for this. The syntax is as follows −"
},
{
"code": null,
"e": 1276,
"s": 1130,
"text": "yourPreparedStatementObject=yourConnectionObject.prepareStatement(yourQueryName);\nyourresultSetObject=yourPrepare... |
Find time taken to execute the tasks in A based on the order of execution in B - GeeksforGeeks | 11 Jun, 2021
Given two queues A and B, each of size N, the task is to find the minimum time taken to execute the tasks in A based on the order of execution in B where:
If the task found at the front of queue B is at the front of queue A, then pop this task and execute it.If the task found at the front of queue B is no... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 24561,
"s": 24405,
"text": "Given two queues A and B, each of size N, the task is to find the minimum time taken to execute the tasks in A based on the order of execution in B where: "
},
... |
A Layman’s Guide to Building Your First Image Classification Model in R Using Keras | by Abhibhav Sharma | Towards Data Science | Applications of machine learning (ML) are now almost an integral part of our everyday life. From a speech-recognition based virtual assistant in our smartphones to super-intelligent automated drones, ML and artificial intelligence (AI) is revolutionizing the dynamics of human-machine interactions. AI algorithms, especi... | [
{
"code": null,
"e": 1881,
"s": 172,
"text": "Applications of machine learning (ML) are now almost an integral part of our everyday life. From a speech-recognition based virtual assistant in our smartphones to super-intelligent automated drones, ML and artificial intelligence (AI) is revolutionizing... |
How to Connect Python with SQL Database? - GeeksforGeeks | 30 Sep, 2021
Python is a high-level, general-purpose, and very popular programming language. Basically, it was designed with an emphasis on code readability, and programmers can express their concepts in fewer lines of code. We can also use Python with SQL. In this article, we will learn how to connect SQL with Python ... | [
{
"code": null,
"e": 25741,
"s": 25713,
"text": "\n30 Sep, 2021"
},
{
"code": null,
"e": 26275,
"s": 25741,
"text": "Python is a high-level, general-purpose, and very popular programming language. Basically, it was designed with an emphasis on code readability, and programmers ca... |
C++ Program to Find Largest Number Among Three Numbers | The largest number among three numbers can be found using if statement multiple times. This is given in a program as follows −
Live Demo
#include <iostream>
using namespace std;
int main() {
int a = 5 ,b = 1 ,c = 9;
if(a>b) {
if(a>c)
cout<<a<<" is largest number";
else
cout<<c<<" is large... | [
{
"code": null,
"e": 1189,
"s": 1062,
"text": "The largest number among three numbers can be found using if statement multiple times. This is given in a program as follows −"
},
{
"code": null,
"e": 1200,
"s": 1189,
"text": " Live Demo"
},
{
"code": null,
"e": 1524,
... |
Generate Parentheses | Practice | GeeksforGeeks | Given an integer N representing the number of pairs of parentheses, the task is to generate all combinations of well-formed(balanced) parentheses.
Example 1:
Input:
N = 3
Output:
((()))
(()())
(())()
()(())
()()()
Input:
N = 1
Output:
()
0
sarthakpandey200218 hours ago
SIMPLE C++ SOLUTION
void solve(string out,vect... | [
{
"code": null,
"e": 385,
"s": 238,
"text": "Given an integer N representing the number of pairs of parentheses, the task is to generate all combinations of well-formed(balanced) parentheses."
},
{
"code": null,
"e": 397,
"s": 385,
"text": "\nExample 1:"
},
{
"code": null... |
Gantt charts with Python’s Matplotlib | by Thiago Carvalho | Towards Data Science | With more than 100 years of history, this visualization continues to be very useful for project management.
Henry Gantt initially created the graph for analyzing completed projects. More specifically, he designed this visualization to measure productivity and identify underperforming employees. Through the years, it be... | [
{
"code": null,
"e": 280,
"s": 172,
"text": "With more than 100 years of history, this visualization continues to be very useful for project management."
},
{
"code": null,
"e": 573,
"s": 280,
"text": "Henry Gantt initially created the graph for analyzing completed projects. More... |
Count frequencies of all elements in array in Python
| In this tutorial, we are going to write a program that finds the frequency of all the elements in an array. We can find it in different ways let's explore two of them.
Initialize the array.
Initialize the array.
Initialize an empty dict.
Initialize an empty dict.
Iterate over the list.If the element is not in dict, the... | [
{
"code": null,
"e": 1230,
"s": 1062,
"text": "In this tutorial, we are going to write a program that finds the frequency of all the elements in an array. We can find it in different ways let's explore two of them."
},
{
"code": null,
"e": 1252,
"s": 1230,
"text": "Initialize the... |
Delete Row From Pandas DataFrames Based on Column Value | Towards Data Science | Deleting rows from pandas DataFrames based on specific conditions relevant to column values is among the most commonly performed tasks. In today’s short guide we are going to explore how to perform row deletion when
a row contains (i.e. is equal to) specific column value(s)
a particular column value of a row is not equ... | [
{
"code": null,
"e": 388,
"s": 172,
"text": "Deleting rows from pandas DataFrames based on specific conditions relevant to column values is among the most commonly performed tasks. In today’s short guide we are going to explore how to perform row deletion when"
},
{
"code": null,
"e": 44... |
Concat Method in C# | To concat lists in C#, ue the Concat method.
The following is the list −
var list1 = new List<int>{12, 40};
var list2 = new List<int>{98, 122, 199, 230};
Here is the Concat method −
var res = list1.Concat(list2);
The following is the example to work with Concat method −
Live Demo
using System.Collections.Generic;
usin... | [
{
"code": null,
"e": 1107,
"s": 1062,
"text": "To concat lists in C#, ue the Concat method."
},
{
"code": null,
"e": 1135,
"s": 1107,
"text": "The following is the list −"
},
{
"code": null,
"e": 1216,
"s": 1135,
"text": "var list1 = new List<int>{12, 40};\nva... |
5 Machine Learning Techniques for Sales Forecasting | by Molly Liebeskind | Towards Data Science | Forecasting sales is a common and essential use of machine learning (ML). Sales forecasts can be used to identify benchmarks and determine incremental impacts of new initiatives, plan resources in response to expected demand, and project future budgets. In this article, I will show how to implement 5 different ML model... | [
{
"code": null,
"e": 512,
"s": 172,
"text": "Forecasting sales is a common and essential use of machine learning (ML). Sales forecasts can be used to identify benchmarks and determine incremental impacts of new initiatives, plan resources in response to expected demand, and project future budgets. I... |
Mock AWS Athena for your ETL tests | by Stefano Francavilla | Towards Data Science | I spent some time last weekend thinking about strategies to improve our ETL pipeline unit and integration tests.
Just to quickly spice up an idea, a simplified component of the ETL process we have in place is something like the following:
where a series of AWS Eventbridge rules process and transform the data injected f... | [
{
"code": null,
"e": 160,
"s": 47,
"text": "I spent some time last weekend thinking about strategies to improve our ETL pipeline unit and integration tests."
},
{
"code": null,
"e": 286,
"s": 160,
"text": "Just to quickly spice up an idea, a simplified component of the ETL proces... |
Bayesian Marketing Mix Modeling in Python via PyMC3 | by Dr. Robert Kübler | Towards Data Science | In this article, I want to combine two concepts that I discussed in earlier posts: Bayesian modeling and marketing mix modeling. Since the chances are high that you are not familiar with both of these topics, let me give you a quick introduction and further readings. I will
motivate what marketing mix modeling is,what ... | [
{
"code": null,
"e": 447,
"s": 172,
"text": "In this article, I want to combine two concepts that I discussed in earlier posts: Bayesian modeling and marketing mix modeling. Since the chances are high that you are not familiar with both of these topics, let me give you a quick introduction and furth... |
Scala Set map() method with example - GeeksforGeeks | 18 Oct, 2019
The map() method is utilized to build a new set by applying a function to all elements of this set.
Method Definition: def map[B](f: (A) => B): immutable.Set[B]
Return Type: It returns a new set containing all the elements after applying the given function.
Example #1:
// Scala program of map() // method ... | [
{
"code": null,
"e": 23882,
"s": 23854,
"text": "\n18 Oct, 2019"
},
{
"code": null,
"e": 23982,
"s": 23882,
"text": "The map() method is utilized to build a new set by applying a function to all elements of this set."
},
{
"code": null,
"e": 24043,
"s": 23982,
... |
How to declare a global variable in Python? | A global variable is a variable that is declared outside the function but we need to use it inside the function.
Live Demo
def func():
print(a)
a=10
func()
10
Here, variable a is global. As it is declared outside the function and can be used inside the function as well. Hence the scope of variable a is global.
We w... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "A global variable is a variable that is declared outside the function but we need to use it inside the function."
},
{
"code": null,
"e": 1186,
"s": 1175,
"text": " Live Demo"
},
{
"code": null,
"e": 1222,
"s": 1186,
... |
Shifting Letters in C++ | Suppose we have a string S of lowercase letters, and an integer array shifts. The shift of a letter means the next letter in the alphabet, for z, it will be a. Now for each shifts[i] = x, we want to shift the first i+1 letters of S, x times. We have to find the final string after all such shifts to S are applied. So if... | [
{
"code": null,
"e": 1624,
"s": 1062,
"text": "Suppose we have a string S of lowercase letters, and an integer array shifts. The shift of a letter means the next letter in the alphabet, for z, it will be a. Now for each shifts[i] = x, we want to shift the first i+1 letters of S, x times. We have to ... |
Koa.js - Quick Guide | A web application framework provides you with a simple API to build websites, web apps, and backends. You need not worry about low level protocols, processes, etc.
Koa provides a minimal interface to build applications. It is a very small framework (600 LoC) which provides the required tools to build apps and is quite ... | [
{
"code": null,
"e": 2270,
"s": 2106,
"text": "A web application framework provides you with a simple API to build websites, web apps, and backends. You need not worry about low level protocols, processes, etc."
},
{
"code": null,
"e": 2612,
"s": 2270,
"text": "Koa provides a min... |
Algorithms | Graph Shortest Paths | Question 8 - GeeksforGeeks | 28 Jun, 2021
In a weighted graph, assume that the shortest path from a source ‘s’ to a destination ‘t’ is correctly calculated using a shortest path algorithm. Is the following statement true?If we increase weight of every edge by 1, the shortest path always remains same.(A) Yes(B) NoAnswer: (B)Explanation: See the fol... | [
{
"code": null,
"e": 25054,
"s": 25026,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25384,
"s": 25054,
"text": "In a weighted graph, assume that the shortest path from a source ‘s’ to a destination ‘t’ is correctly calculated using a shortest path algorithm. Is the following... |
Explain Polymorphism in PHP. | To begin with, Polymorphism is gotten from the Greek words Poly (which means many) and morphism (which meaning forms).
Polymorphism portrays an example in object-oriented programming where methods in various classes that do similar things should have a similar name. Polymorphism is essentially an OOP pattern that enabl... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "To begin with, Polymorphism is gotten from the Greek words Poly (which means many) and morphism (which meaning forms)."
},
{
"code": null,
"e": 1793,
"s": 1181,
"text": "Polymorphism portrays an example in object-oriented programming... |
Parallel Coordinates Plots with Plotly | by Darío Weitz | Towards Data Science | Data visualization is a tool for storytelling. It is common for a data scientist to have to find patterns or trends that are hidden in multidimensional datasets with multiple numerical variables. Parallel Plots or Parallel Coordinates Plots (PCPs) are data visualization charts appropriate for comparing numerous numeric... | [
{
"code": null,
"e": 602,
"s": 172,
"text": "Data visualization is a tool for storytelling. It is common for a data scientist to have to find patterns or trends that are hidden in multidimensional datasets with multiple numerical variables. Parallel Plots or Parallel Coordinates Plots (PCPs) are dat... |
How to get a horizontal scrollbar in Tkinter? | The Scrollbar widget in tkinter is one of the useful widgets that is used to pack the container elements and their contents with a scrollbar. With Scrollbars, we can view large sets of data very efficiently.
Generally, Tkinter allows to add vertical and horizontal scrollbars. To add a horizontal scrollbar in an applica... | [
{
"code": null,
"e": 1270,
"s": 1062,
"text": "The Scrollbar widget in tkinter is one of the useful widgets that is used to pack the container elements and their contents with a scrollbar. With Scrollbars, we can view large sets of data very efficiently."
},
{
"code": null,
"e": 1461,
... |
GATE | GATE-CS-2004 | Question 63 | 25 Oct, 2018
Direction for questions 63 to 64:Consider the following program segment for a hypothetical CPU having three user registers R1, R2 and R3.
Instruction Operation Instruction Size(in words)
MOV R1,5000; R1 ¬ Memory[5000] 2
MOV R2, (R1); R2 ¬ Memory[(R1)] 1
ADD R2, R3; R2... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Oct, 2018"
},
{
"code": null,
"e": 166,
"s": 28,
"text": "Direction for questions 63 to 64:Consider the following program segment for a hypothetical CPU having three user registers R1, R2 and R3."
},
{
"code": null,
"e": ... |
Riemann Sum | 24 Jun, 2021
Definite integrals are an important part of calculus. They are used to calculate the areas, volumes, etc of arbitrary shapes for which formulas are not defined. Analytically they are just indefinite integrals with limits on top of them, but graphically they represent the area under the curve. The limits de... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 696,
"s": 28,
"text": "Definite integrals are an important part of calculus. They are used to calculate the areas, volumes, etc of arbitrary shapes for which formulas are not defined. Analytically t... |
sector() function in C | 06 Dec, 2019
The header file graphics.h contains sector() function which draws and fills an elliptical pie slice with (x, y) as center, (s_angle, e_angle) as starting and ending angle and (x_radius, y_radius) as x and y radius of sector.Syntax :
void sector(int x, int y, int s_angle,
int e_angle, int x_radi... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 287,
"s": 54,
"text": "The header file graphics.h contains sector() function which draws and fills an elliptical pie slice with (x, y) as center, (s_angle, e_angle) as starting and ending angle and... |
WPF - Togglebutton | A Toggle Button is a control that can switch states, such as CheckBox and RadioButton. The hierarchical inheritance of ToggleButton class is as follows −
IsChecked
Gets or sets whether the ToggleButton is checked.
IsCheckedProperty
Identifies the IsChecked dependency property.
IsThreeState
Gets or sets a value that ind... | [
{
"code": null,
"e": 2308,
"s": 2154,
"text": "A Toggle Button is a control that can switch states, such as CheckBox and RadioButton. The hierarchical inheritance of ToggleButton class is as follows −"
},
{
"code": null,
"e": 2318,
"s": 2308,
"text": "IsChecked"
},
{
"cod... |
Inserting NULL as default in SQLAlchemy | 22 Jun, 2022
In this article, we will see how to insert NULL as default in SQLAlchemy in Python.
The default value can be provided using the default parameter while defining the table (creating the table). We will be using mySQL local database for the examples in this article. Feel free to use any database you may like... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 112,
"s": 28,
"text": "In this article, we will see how to insert NULL as default in SQLAlchemy in Python."
},
{
"code": null,
"e": 447,
"s": 112,
"text": "The default value can ... |
Node.js fs.read() Method | 08 Oct, 2021
Node.js is used for server-side scripting. Reading and writing files are the two most important operations that are performed in any application. Node.js offers a wide range of inbuilt functionalities to perform read and write operations. The fs package contains the functions required for file operations. ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 503,
"s": 28,
"text": "Node.js is used for server-side scripting. Reading and writing files are the two most important operations that are performed in any application. Node.js offers a wide range o... |
Maximum sub-tree sum in a Binary Tree such that the sub-tree is also a BST | 06 Aug, 2021
Given a binary tree, the task is to print the maximum sum of nodes of a sub-tree which is also a Binary Search Tree.Examples:
Input :
7
/ \
12 2
/ \ \
11 13 5
/ / \
2 1 38
Output:44
BST rooted under node 5 has the maximum sum
5
/ \... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 179,
"s": 52,
"text": "Given a binary tree, the task is to print the maximum sum of nodes of a sub-tree which is also a Binary Search Tree.Examples: "
},
{
"code": null,
"e": 606,
"... |
Reverse digits of an integer with overflow handled | 07 Jun, 2022
Write a program to reverse an integer assuming that the input is a 32-bit integer. If the reversed integer overflows, print -1 as the output. Let us see a simple approach to reverse digits of an integer.
C++
C
Java
Python3
C#
PHP
Javascript
// A simple C program to reverse digits of// an integer.#include... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jun, 2022"
},
{
"code": null,
"e": 260,
"s": 54,
"text": "Write a program to reverse an integer assuming that the input is a 32-bit integer. If the reversed integer overflows, print -1 as the output. Let us see a simple approach to ... |
short keyword in C# | 22 Jun, 2020
Keywords are the words in a language that are used for some internal process or represent some predefined actions. short is a keyword that is used to declare a variable which can store a signed integer value from the range -32, 768 to 32, 767. It is an alias of System.Int16.
Syntax:
short variable_name = v... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 304,
"s": 28,
"text": "Keywords are the words in a language that are used for some internal process or represent some predefined actions. short is a keyword that is used to declare a variable which ... |
Create a Stacked Bar Chart using Recharts in ReactJS | 30 Jul, 2021
Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help of React and D3 (Data-Driven Documents).
A stacked Bar Chart is the extension of a basic bar chart. It displays various discrete d... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 272,
"s": 54,
"text": "Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help... |
Printing all solutions in N-Queen Problem | 07 Jul, 2022
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, following is a solution for 4 Queen problem.
In previous post, we have discussed an approach that prints only one possible solution, so now in this post, the task is to print all... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 226,
"s": 52,
"text": "The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, following is a solution for 4 Queen problem. "... |
Find pairs with given sum in doubly linked list | 06 Jul, 2022
Given a sorted doubly linked list of positive distinct elements, the task is to find pairs in a doubly-linked list whose sum is equal to given value x, without using any extra space?
Example:
Input : head : 1 <-> 2 <-> 4 <-> 5 <-> 6 <-> 8 <-> 9
x = 7
Output: (6, 1), (5,2)
The expected time compl... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 236,
"s": 52,
"text": "Given a sorted doubly linked list of positive distinct elements, the task is to find pairs in a doubly-linked list whose sum is equal to given value x, without using any extr... |
Type Inference in C++ (auto and decltype) | 02 Mar, 2022
Type Inference refers to automatic deduction of the data type of an expression in a programming language. Before C++ 11, each data type needed to be explicitly declared at compile-time, limiting the values of an expression at runtime but after the new version of C++, many keywords are included which allows... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Mar, 2022"
},
{
"code": null,
"e": 690,
"s": 52,
"text": "Type Inference refers to automatic deduction of the data type of an expression in a programming language. Before C++ 11, each data type needed to be explicitly declared at co... |
Singleton Class in Java | 13 Jun, 2022
In object-oriented programming, a singleton class is a class that can have only one object (an instance of the class) at a time. After the first time, if we try to instantiate the Singleton class, the new variable also points to the first instance created. So whatever modifications we do to any variable in... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 540,
"s": 52,
"text": "In object-oriented programming, a singleton class is a class that can have only one object (an instance of the class) at a time. After the first time, if we try to instantiat... |
Choose Specific Columns of a Data Frame in R Programming – select() Function | 19 Jun, 2020
select() function in R Language is used to choose whether a column of the data frame is selected or not.
Syntax: select(x, expr)
Parameters:x: Data frameexpr: condition for selection
Example 1:
# R program to select specific columns # Loading library library(dplyr) # Create a data framed <- data.frame(... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jun, 2020"
},
{
"code": null,
"e": 133,
"s": 28,
"text": "select() function in R Language is used to choose whether a column of the data frame is selected or not."
},
{
"code": null,
"e": 157,
"s": 133,
"text": "S... |
Scala Float floor() method with example | 29 Oct, 2019
The floor() method is utilized to returns a float number which is less than or equal to the given float number.
Method Definition: (Float_Number).floor
Return Type: It returns a float number which is less than or equal to the given float number.
Example #1:
// Scala program of Float floor()// method // Cr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 140,
"s": 28,
"text": "The floor() method is utilized to returns a float number which is less than or equal to the given float number."
},
{
"code": null,
"e": 180,
"s": 140,
"te... |
Java Examples - Multithreaded Server | How to create a multithreaded server ?
Following example demonstrates how to create a multithreaded server by using ssock.accept() method of Socket class and MultiThreadServer(socketname) method of ServerSocket class.
import java.io.IOException;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.... | [
{
"code": null,
"e": 2107,
"s": 2068,
"text": "How to create a multithreaded server ?"
},
{
"code": null,
"e": 2286,
"s": 2107,
"text": "Following example demonstrates how to create a multithreaded server by using ssock.accept() method of Socket class and MultiThreadServer(socket... |
Julia Programming - Working with Graphics | This chapter discusses how to plot, visualize and perform other (graphic) operations on data using various tools in Julia.
Cairo, a 2D graphics library, implements a device context to the display system. It works with Linux, Windows, OS X and can create disk files in PDF, PostScript, and SVG formats also. The Julia fil... | [
{
"code": null,
"e": 2201,
"s": 2078,
"text": "This chapter discusses how to plot, visualize and perform other (graphic) operations on data using various tools in Julia."
},
{
"code": null,
"e": 2450,
"s": 2201,
"text": "Cairo, a 2D graphics library, implements a device context t... |
Develop a Slack-bot using Golang. Learn how to build a Slack bot in... | by Percy Bolmér | Towards Data Science | Slack is a communication tool used by developers and companies to share information and communicate. It has grown very popular in recent years.
In this article, we will cover how to set up and build a bot that can interact with the Slack workspace and channels. We will look into how to create slash commands and visuali... | [
{
"code": null,
"e": 316,
"s": 172,
"text": "Slack is a communication tool used by developers and companies to share information and communicate. It has grown very popular in recent years."
},
{
"code": null,
"e": 647,
"s": 316,
"text": "In this article, we will cover how to set ... |
Naive Pattern Searching | Naïve pattern searching is the simplest method among other pattern searching algorithms. It checks for all character of the main string to the pattern. This algorithm is helpful for smaller texts. It does not need any pre-processing phases. We can find substring by checking once for the string. It also does not occupy... | [
{
"code": null,
"e": 1421,
"s": 1062,
"text": "Naïve pattern searching is the simplest method among other pattern searching algorithms. It checks for all character of the main string to the pattern. This algorithm is helpful for smaller texts. It does not need any pre-processing phases. We can find... |
Identify your Data’s Distribution | by Abhishek Mungoli | Towards Data Science | Every day we come across a variety of Data like Sensor Data, Sales Data, Customer Data, Traffic Data, etc. Further, depending on the use case, we do a variety of processing and try out several algorithms on it. Have you ever wondered these questions about your Data:
What your Data look like?
Is there any confidence you... | [
{
"code": null,
"e": 438,
"s": 171,
"text": "Every day we come across a variety of Data like Sensor Data, Sales Data, Customer Data, Traffic Data, etc. Further, depending on the use case, we do a variety of processing and try out several algorithms on it. Have you ever wondered these questions about... |
How to import java.lang.String class in Java? | To import any package in the current class you need to use the import keyword as
import packagename;
Live Demo
import java.lang.String;
public class Sample {
public static void main(String args[]) {
String s = new String("Hello");
System.out.println(s);
}
}
Hello | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To import any package in the current class you need to use the import keyword as"
},
{
"code": null,
"e": 1163,
"s": 1143,
"text": "import packagename;"
},
{
"code": null,
"e": 1173,
"s": 1163,
"text": "Live Demo"... |
What are undefined reference/unresolved external symbol errors in C++? | As the name suggests, a symbol you declared was not defined by you. This may occur due to many cases. Let's have a look at three of them −
You forgot to define the declared name. For example, you declared a function in a file and used it somewhere. But you did not provide its definition. Code −
You forgot to define the... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "As the name suggests, a symbol you declared was not defined by you. This may occur due to many cases. Let's have a look at three of them −"
},
{
"code": null,
"e": 1358,
"s": 1201,
"text": "You forgot to define the declared name. For... |
Example of a nested table in HTML | The following is an example of a nested table in HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
</head>
<body>
<table>
<tbody>
<tr>
<td>
<table>
<tbody>
<tr>
... | [
{
"code": null,
"e": 1117,
"s": 1062,
"text": "The following is an example of a nested table in HTML:"
},
{
"code": null,
"e": 1640,
"s": 1117,
"text": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Example</title>\n </head>\n <body>\n ... |
Bootstrap .btn class | Use the .btn class in Bootstrap to add a button to the web page.
You can try to run the following code to implement a .btn class
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<meta name = "viewport" content = "width=device-width, initial-scale = 1">
<link rel = "styleshee... | [
{
"code": null,
"e": 1127,
"s": 1062,
"text": "Use the .btn class in Bootstrap to add a button to the web page."
},
{
"code": null,
"e": 1191,
"s": 1127,
"text": "You can try to run the following code to implement a .btn class"
},
{
"code": null,
"e": 1201,
"s": 1... |
Exploring NYC Bike Share Data. How to access trip data from Citi Bike... | by Clif Kranish | Towards Data Science | Many bike share systems make available their trip data for those who want to understand how their systems are used. The bike share system in New York City, Citi Bike, is one of them, but they don’t provide much more than the data. I’ve got some experience in obtaining and preparing their data for visualization, so in t... | [
{
"code": null,
"e": 567,
"s": 172,
"text": "Many bike share systems make available their trip data for those who want to understand how their systems are used. The bike share system in New York City, Citi Bike, is one of them, but they don’t provide much more than the data. I’ve got some experience... |
SWING - KeyEvent Class | On entering the character the Key event is generated.There are three types of key events which are represented by the integer constants.
KEY_PRESSED
KEY_RELASED
KEY_TYPED
Following is the declaration for java.awt.event.KeyEvent class −
public class KeyEvent
extends InputEvent
Following are the fields for java.awt.I... | [
{
"code": null,
"e": 1900,
"s": 1763,
"text": "On entering the character the Key event is generated.There are three types of key events which are represented by the integer constants."
},
{
"code": null,
"e": 1912,
"s": 1900,
"text": "KEY_PRESSED"
},
{
"code": null,
"... |
dl-horizontal class in Bootstrap | In definition list, each list item can consist of both the <dt> and the <dd> elements. <dt> stands for definition term, and like a dictionary, this is the term (or phrase) that is being defined. Subsequently, the <dd> is the definition of the <dt>. You can make terms and descriptions in <dl> line up side-by-side using ... | [
{
"code": null,
"e": 1403,
"s": 1062,
"text": "In definition list, each list item can consist of both the <dt> and the <dd> elements. <dt> stands for definition term, and like a dictionary, this is the term (or phrase) that is being defined. Subsequently, the <dd> is the definition of the <dt>. You ... |
Interactive Dashboards for Data Science | by Pier Paolo Ippolito | Towards Data Science | 1
2
3
4
5
6
7
8
9
10
Powered by Play.ht
Create audio with Play.ht
Create Audio Narrations with Play.ht
Creating an online Data Science Dashboard can be a really powerful way of communicating the results of a Data Science project. A good Dashboard can:
Summarise the main results of a data analysis.
Enable the customers/... | [
{
"code": null,
"e": 174,
"s": 172,
"text": "1"
},
{
"code": null,
"e": 176,
"s": 174,
"text": "2"
},
{
"code": null,
"e": 178,
"s": 176,
"text": "3"
},
{
"code": null,
"e": 180,
"s": 178,
"text": "4"
},
{
"code": null,
"e": 182... |
JavaScript Number - toFixed() | This method formats a number with a specific number of digits to the right of the decimal.
Its syntax is as follows −
number.toFixed( [digits] )
digits − The number of digits to appear after the decimal point.
A string representation of number that does not use exponential notation and has the exact number of digits a... | [
{
"code": null,
"e": 2557,
"s": 2466,
"text": "This method formats a number with a specific number of digits to the right of the decimal."
},
{
"code": null,
"e": 2584,
"s": 2557,
"text": "Its syntax is as follows −"
},
{
"code": null,
"e": 2612,
"s": 2584,
"t... |
Check if a key is present in a C++ map or unordered_map | In C++ the Maps and unordered maps are hash tables. They use some keys and their respective key values. Here we will see how to check whether a given key is present in the hash table or not. The code will be like below −
Live Demo
#include<iostream>
#include<map>
using namespace std;
string isPresent(map<string, int> ... | [
{
"code": null,
"e": 1283,
"s": 1062,
"text": "In C++ the Maps and unordered maps are hash tables. They use some keys and their respective key values. Here we will see how to check whether a given key is present in the hash table or not. The code will be like below −"
},
{
"code": null,
... |
Financial Signal Processing — Part 1 | by Yao Lei Xu | Towards Data Science | Algorithmic trading is hard. You can’t just stick a dozen technical analysis signals into a neural network and expect to become a millionaire next month. This is because processing financial data is all about the details. Setting aside all the potential biases and mistakes that beginners can make, most financial machin... | [
{
"code": null,
"e": 605,
"s": 172,
"text": "Algorithmic trading is hard. You can’t just stick a dozen technical analysis signals into a neural network and expect to become a millionaire next month. This is because processing financial data is all about the details. Setting aside all the potential b... |
Telecom Billing - Quick Guide | Sending voice, data, picture, fax, etc., from one point to another using electronic media is termed as telecommunication and in short 'telecom'. Examples include Phone, Radio, Television and Internet. The medium of transmission includes Wire (Copper), Fiber Optics, Ether (wireless), Radio towers, Microwave, Satellite,... | [
{
"code": null,
"e": 2717,
"s": 2391,
"text": "Sending voice, data, picture, fax, etc., from one point to another using electronic media is termed as telecommunication and in short 'telecom'. Examples include Phone, Radio, Television and Internet. The medium of transmission includes Wire (Copper), ... |
How to perform jQuery Callback after submitting the form ? | 23 Apr, 2020
The after-form-submit is the set of code that is executed after a submit button is fired. Usually, it is used to blank out the form, once the submit is given. For Example, When the login credentials are wrong, the input becomes blank in the form.
Approach:
First, the elements in a form must be ensured if i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Apr, 2020"
},
{
"code": null,
"e": 275,
"s": 28,
"text": "The after-form-submit is the set of code that is executed after a submit button is fired. Usually, it is used to blank out the form, once the submit is given. For Example, Whe... |
How to enable Button based on If statement in React.js ? | 09 Oct, 2020
In order to display the button conditionally using the if and else statement, we can use state in react.js. Declare the state in the constructor method because it loads first when the component is loaded. In order to toggle between user and admin, we need to use an event handler. Using this event handler, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Oct, 2020"
},
{
"code": null,
"e": 432,
"s": 28,
"text": "In order to display the button conditionally using the if and else statement, we can use state in react.js. Declare the state in the constructor method because it loads first ... |
Python | sympy.isprime() method | 25 Aug, 2021
In simpy module, we can test whether a given number n is prime or not using sympy.isprime() function. For n < 2^64 the answer is definitive; larger n values have a small probability of actually being pseudoprimes.
Note that Negative numbers (e.g. -13) are not considered as prime number.
Syntax: sympy.isp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 243,
"s": 28,
"text": "In simpy module, we can test whether a given number n is prime or not using sympy.isprime() function. For n < 2^64 the answer is definitive; larger n values have a small proba... |
Normalizing Textual Data with Python | 07 Jul, 2021
In this article, we will learn How to Normalizing Textual Data with Python. Let’s discuss some concepts :
Textual data ask systematically collected material consisting of written, printed, or electronically published words, typically either purposefully written or transcribed from speech.
Text normalizatio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 134,
"s": 28,
"text": "In this article, we will learn How to Normalizing Textual Data with Python. Let’s discuss some concepts :"
},
{
"code": null,
"e": 318,
"s": 134,
"text": "... |
Java Program for Topological Sorting | 17 Jan, 2018
Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topological Sorting for a graph is not possible if the graph is not a DAG.
For example, a topological sorting of the following graph is “5 4 2... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Jan, 2018"
},
{
"code": null,
"e": 294,
"s": 54,
"text": "Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topologic... |
JavaFX Tutorial | 11 Feb, 2022
JavaFX is a Java library and a GUI toolkit designed to develop and facilitate Rich Internet applications, web applications, and desktop applications. The most significant perk of using JavaFX is that the applications written using this library can run on multiple operating systems like Windows, Linux, iOS,... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Feb, 2022"
},
{
"code": null,
"e": 562,
"s": 52,
"text": "JavaFX is a Java library and a GUI toolkit designed to develop and facilitate Rich Internet applications, web applications, and desktop applications. The most significant per... |
How to Convert Categorical Variable to Numeric in Pandas? - GeeksforGeeks | 01 Dec, 2021
In this article, we will learn how to convert a categorical variable into a Numeric by using pandas.
When we look at the categorical data, the first question that arises to anyone is how to handle those data, because machine learning is always good at dealing with numeric values. We could make machine lea... | [
{
"code": null,
"e": 24284,
"s": 24253,
"text": " \n01 Dec, 2021\n"
},
{
"code": null,
"e": 24385,
"s": 24284,
"text": "In this article, we will learn how to convert a categorical variable into a Numeric by using pandas."
},
{
"code": null,
"e": 24708,
"s": 24385,... |
Example Comprehensions in Python | With comprehensions you can construct python sequences. In this article we will see how to create and access such sequences.
Below are the different types of comprehensions in python.
List Comprehensions
Dictionary Comprehensions
Set Comprehensions
Generator Comprehensions
There are various ways we can create a list an... | [
{
"code": null,
"e": 1187,
"s": 1062,
"text": "With comprehensions you can construct python sequences. In this article we will see how to create and access such sequences."
},
{
"code": null,
"e": 1246,
"s": 1187,
"text": "Below are the different types of comprehensions in python... |
What are static members of a Java class? | In Java, static members are those which belongs to the class and you can access these members without instantiating the class.
The static keyword can be used with methods, fields, classes (inner/nested), blocks.
Static Methods − You can create a static method by using the keyword static. Static methods can access only ... | [
{
"code": null,
"e": 1189,
"s": 1062,
"text": "In Java, static members are those which belongs to the class and you can access these members without instantiating the class."
},
{
"code": null,
"e": 1274,
"s": 1189,
"text": "The static keyword can be used with methods, fields, cl... |
Doubly Linked List Tutorial - GeeksforGeeks | 27 Dec, 2021
A Doubly Linked List (DLL) contains an extra pointer, typically called the previous pointer, together with the next pointer and data which are there in a singly linked list.
Below are operations on the given DLL:
Add a node at the front of DLL: The new node is always added before the head of the given L... | [
{
"code": null,
"e": 24275,
"s": 24247,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 24451,
"s": 24275,
"text": "A Doubly Linked List (DLL) contains an extra pointer, typically called the previous pointer, together with the next pointer and data which are there in a singly li... |
Java - String Buffer delete() Method | This method removes the characters in a substring of this StringBuffer. The substring begins at the specified start and extends to the character at index end - 1 or to the end of the StringBuffer if no such character exists.
If start is equal to end, no changes are made.
Here is the syntax of this method −
public Strin... | [
{
"code": null,
"e": 2602,
"s": 2377,
"text": "This method removes the characters in a substring of this StringBuffer. The substring begins at the specified start and extends to the character at index end - 1 or to the end of the StringBuffer if no such character exists."
},
{
"code": null,
... |
JavaScript String - slice() Method | This method extracts a section of a string and returns a new string.
The syntax for slice() method is −
string.slice( beginslice [, endSlice] );
beginSlice − The zero-based index at which to begin extraction.
beginSlice − The zero-based index at which to begin extraction.
endSlice − The zero-based index at which to en... | [
{
"code": null,
"e": 2535,
"s": 2466,
"text": "This method extracts a section of a string and returns a new string."
},
{
"code": null,
"e": 2570,
"s": 2535,
"text": "The syntax for slice() method is −"
},
{
"code": null,
"e": 2612,
"s": 2570,
"text": "string.... |
How to Insert an Image in HTML? | 04 Aug, 2021
We can use different fonts and lists in an HTML document. Similarly, we can add graphics to make the document look more attractive. Web browsers support a number of graphic formats. Some of the most widely used formats are:
Graphics Interchange Format(GIF): GIF is the best format displaying images designed... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 252,
"s": 28,
"text": "We can use different fonts and lists in an HTML document. Similarly, we can add graphics to make the document look more attractive. Web browsers support a number of graphic fo... |
JavaScript Array sort() Method | 01 Jun, 2022
Below is the example of Array sort() method.
Program 1:
JavaScript
<script>// JavaScript to illustrate sort() functionfunction func() { // Original string var arr = ["Geeks", "for", "Geeks"] document.write(arr); document.write("<br>"); // Sorting the array document.write(arr.sort());}f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Jun, 2022"
},
{
"code": null,
"e": 73,
"s": 28,
"text": "Below is the example of Array sort() method."
},
{
"code": null,
"e": 85,
"s": 73,
"text": "Program 1: "
},
{
"code": null,
"e": 96,
"s": 85... |
How to create a Scatter Plot with several colors in Matplotlib? | 07 Feb, 2022
Matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python. Matplotlib can be used in Python scripts, the Python and IPython shell, web application servers, and various graphical user interface toolkits like Tkinter, awxPython, etc.
In-order to create a scatter... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Feb, 2022"
},
{
"code": null,
"e": 307,
"s": 28,
"text": "Matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python. Matplotlib can be used in Python scripts, the Python and IPython shel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.