title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How To Annotate Bars in Barplot with Matplotlib in Python? - GeeksforGeeks | 25 Jan, 2022
Annotation means adding notes to a diagram stating what values do it represents. It often gets tiresome for the user to read the values from the graph when the graph is scaled down or is overly populated. In this article, we will discuss how to annotate the bar plots created in python using matplotlib lib... | [
{
"code": null,
"e": 29911,
"s": 29883,
"text": "\n25 Jan, 2022"
},
{
"code": null,
"e": 30224,
"s": 29911,
"text": "Annotation means adding notes to a diagram stating what values do it represents. It often gets tiresome for the user to read the values from the graph when the gra... |
Difference between JavaScript and AngularJS - GeeksforGeeks | 28 Oct, 2020
JavaScript: JavaScript is a lightweight and object-oriented scripting language used to create dynamic HTML pages with interactive effects within a webpage. It is an interpreted scripting language and its code is run in a web browser only and in order to execute and run the code outside the browser we can u... | [
{
"code": null,
"e": 24146,
"s": 24118,
"text": "\n28 Oct, 2020"
},
{
"code": null,
"e": 24664,
"s": 24146,
"text": "JavaScript: JavaScript is a lightweight and object-oriented scripting language used to create dynamic HTML pages with interactive effects within a webpage. It is a... |
How To Get The Row Count Of a Pandas DataFrame | Towards Data Science | In today’s short guide we will discuss a few ways for computing the row count of pandas DataFrames. Additionally, we will showcase how to omit null values when deriving the counts. Finally, we will observe the performance of each of the methods introduced in this article and identify the most efficient way for computin... | [
{
"code": null,
"e": 514,
"s": 172,
"text": "In today’s short guide we will discuss a few ways for computing the row count of pandas DataFrames. Additionally, we will showcase how to omit null values when deriving the counts. Finally, we will observe the performance of each of the methods introduced... |
Python - RPC JSON Server | JSON or JavaScript Object Notation is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. The RPC call made based on JSON is able to send data in a much compact and efficient manner than the normal XML based RPC call.
The python module jsonrpcli... | [
{
"code": null,
"e": 2706,
"s": 2326,
"text": "JSON or JavaScript Object Notation is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. The RPC call made based on JSON is able to send data in a much compact and efficient man... |
Neo4j Create Constraint - GeeksforGeeks | 03 Sep, 2019
The neo4j constraint helps user to nor enter in wrong kind of data. When the constraint is applied and the user by mistake entering the wrong kind of data then it will show an error message. In the neo4j there are two kind of constraint one is uniqueness constraints and other one is property existence cons... | [
{
"code": null,
"e": 23913,
"s": 23885,
"text": "\n03 Sep, 2019"
},
{
"code": null,
"e": 24339,
"s": 23913,
"text": "The neo4j constraint helps user to nor enter in wrong kind of data. When the constraint is applied and the user by mistake entering the wrong kind of data then it ... |
Hive - View and Indexes | This chapter describes how to create and manage views. Views are generated based on user requirements. You can save any result set data as a view. The usage of view in Hive is same as that of the view in SQL. It is a standard RDBMS concept. We can execute all DML operations on a view.
You can create a view at the time ... | [
{
"code": null,
"e": 2236,
"s": 1950,
"text": "This chapter describes how to create and manage views. Views are generated based on user requirements. You can save any result set data as a view. The usage of view in Hive is same as that of the view in SQL. It is a standard RDBMS concept. We can execu... |
What is Regular Expressions? | Regular expressions are an important notation for defining patterns. Each pattern connects a set of strings. Therefore regular expressions will give as names for sets of strings.
It supports an appropriate and useful notation for describing tokens. Regular Expressions define the language accepted by finite Automata (Tr... | [
{
"code": null,
"e": 1241,
"s": 1062,
"text": "Regular expressions are an important notation for defining patterns. Each pattern connects a set of strings. Therefore regular expressions will give as names for sets of strings."
},
{
"code": null,
"e": 1401,
"s": 1241,
"text": "It ... |
How to sum the score of students with the same name in MySQL with ORDER BY? | For this, use ORDER BY along with GROUP BY clause. Let us first create a table with Student Name and Score −
mysql> create table countRowValueDemo
-> (
-> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> StudentName varchar(20),
-> StudentMathScore int
-> );
Query OK, 0 rows affected (0.71 sec)
Foll... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "For this, use ORDER BY along with GROUP BY clause. Let us first create a table with Student Name and Score −"
},
{
"code": null,
"e": 1378,
"s": 1171,
"text": "mysql> create table countRowValueDemo\n -> (\n -> StudentId int NOT N... |
Jupyter QtConsole - Getting Started | In this chapter, let us understand how to get started with QtConsole. This chapter will give you an overview about this software and explains its installation steps.
The Qt console is a GUI application similar to IPython terminal. However, it provides a number of enhancements which are not available in text based IPyth... | [
{
"code": null,
"e": 2826,
"s": 2660,
"text": "In this chapter, let us understand how to get started with QtConsole. This chapter will give you an overview about this software and explains its installation steps."
},
{
"code": null,
"e": 3177,
"s": 2826,
"text": "The Qt console i... |
ip6tables - Unix, Linux Command | Each chain is a list of rules which can match a set of packets. Each
rule specifies what to do with a packet that matches. This is called
a ‘target’, which may be a jump to a user-defined chain in the same
table.
ACCEPT means to let the packet through.
DROP means to drop the packet on the floor.
QUEUE means to pa... | [
{
"code": null,
"e": 10794,
"s": 10577,
"text": "\nEach chain is a list of rules which can match a set of packets. Each\nrule specifies what to do with a packet that matches. This is called\na ‘target’, which may be a jump to a user-defined chain in the same\ntable.\n"
},
{
"code": null,
... |
How to define jQuery function ? | 19 Feb, 2020
Defining the function in jQuery is different from JavaScript, the syntax is totally different. A function is a set of statements that takes input, do some specific computation and produce output. Basically, a function is a set of statements that performs some specific task or does some computation and then... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 559,
"s": 28,
"text": "Defining the function in jQuery is different from JavaScript, the syntax is totally different. A function is a set of statements that takes input, do some specific computation... |
getppid() and getpid() in Linux | 26 Sep, 2017
Both getppid() and getpid() are inbuilt functions defined in unistd.h library.
getppid() : returns the process ID of the parent of the calling process. If the calling process was created by the fork() function and the parent process still exists at the time of the getppid function call, this function retur... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Sep, 2017"
},
{
"code": null,
"e": 131,
"s": 52,
"text": "Both getppid() and getpid() are inbuilt functions defined in unistd.h library."
},
{
"code": null,
"e": 2012,
"s": 131,
"text": "getppid() : returns the p... |
GATE | GATE-CS-2015 (Set 2) | Question 65 | 10 Nov, 2021
Consider a processor with byte-addressable memory. Assume that all registers, including Program Counter (PC) and Program Status Word (PSW), are of size 2 bytes. A stack in the main memory is implemented from memory location (0100)16 and it grows upward. The stack pointer (SP) points to the top element of t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 582,
"s": 28,
"text": "Consider a processor with byte-addressable memory. Assume that all registers, including Program Counter (PC) and Program Status Word (PSW), are of size 2 bytes. A stack in the... |
How to validate if input in input field has valid hexadecimal color only using express-validator ? | 07 Apr, 2022
In HTML forms, we often required validation of different types. Validate existing email, validate password length, validate confirm password, validate to allow only integer inputs, these are some examples of validation. In a certain input field, only valid hexadecimal color codes strings are allowed. We ca... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 459,
"s": 28,
"text": "In HTML forms, we often required validation of different types. Validate existing email, validate password length, validate confirm password, validate to allow only integer in... |
Output of Python Programs | Set 24 (Sets) | 29 Dec, 2017
Prerequisite: Python-Sets
1. What is the output of the code shown below?
sets = {1, 2, 3, 4, 4}print(sets)
Options:
{1, 2, 3}{1, 2, 3, 4}{1, 2, 3, 4, 4}Error
{1, 2, 3}
{1, 2, 3, 4}
{1, 2, 3, 4, 4}
Error
Output:
2. {1, 2, 3, 4}
Explanation : Duplicate values are not allowed in sets. Hence, the output of th... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Dec, 2017"
},
{
"code": null,
"e": 78,
"s": 52,
"text": "Prerequisite: Python-Sets"
},
{
"code": null,
"e": 125,
"s": 78,
"text": "1. What is the output of the code shown below?"
},
{
"code": "sets = {1, ... |
How to get column index from column name in Python Pandas? | To get column index from column name in Python Pandas, we can use the get_loc() method.
Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df.
Print the input DataFrame, df.
Find the columns of DataFrame, using df.columns.
Print the columns from Step 3.
Initialize a variable column_name.
Ge... | [
{
"code": null,
"e": 1275,
"s": 1187,
"text": "To get column index from column name in Python Pandas, we can use the get_loc() method."
},
{
"code": null,
"e": 1359,
"s": 1275,
"text": "Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df."
},
{
... |
Components of an Android Application | 30 Apr, 2021
There are some necessary building blocks that an Android application consists of. These loosely coupled components are bound by the application manifest file which contains the description of each component and how they interact. The manifest file also contains the app’s metadata, its hardware configuratio... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 496,
"s": 54,
"text": "There are some necessary building blocks that an Android application consists of. These loosely coupled components are bound by the application manifest file which contains t... |
Python – Non-Central Chi-squared Distribution in Statistics | 10 Jan, 2020
scipy.stats.ncx2() is a non-central chi-squared continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution.
Parameters :
q : lower and upper tail probabilityx : quantilesl... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jan, 2020"
},
{
"code": null,
"e": 272,
"s": 28,
"text": "scipy.stats.ncx2() is a non-central chi-squared continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes... |
JavaScript Helper Methods | 01 Jul, 2022
An array in JavaScript is usually considered as “list-objects”. In simple words, we can say an array is an object that contains some values. But an array is a special object in JavaScript. An array can store heterogeneous data structures. It can store data values of any type like objects and array .
Javas... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Jul, 2022"
},
{
"code": null,
"e": 356,
"s": 54,
"text": "An array in JavaScript is usually considered as “list-objects”. In simple words, we can say an array is an object that contains some values. But an array is a special object ... |
Transaction Isolation Levels in DBMS | 01 Feb, 2022
Prerequisite – Concurrency control in DBMS, ACID Properties in DBMS
As we know that, in order to maintain consistency in a database, it follows ACID properties. Among these four properties (Atomicity, Consistency, Isolation, and Durability) Isolation determines how transaction integrity is visible to othe... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 123,
"s": 54,
"text": "Prerequisite – Concurrency control in DBMS, ACID Properties in DBMS "
},
{
"code": null,
"e": 768,
"s": 123,
"text": "As we know that, in order to maintai... |
What is the difference between call and apply in JavaScript? | 21 Apr, 2022
call() Method: It calls the method, taking the owner object as argument. The keyword this refers to the ‘owner’ of the function or the object it belongs to. We can call a method which can be used on different objects.
Syntax:
object.objectMethod.call( objectInstance, arguments )
Parameters: It accepts two... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Apr, 2022"
},
{
"code": null,
"e": 273,
"s": 54,
"text": "call() Method: It calls the method, taking the owner object as argument. The keyword this refers to the ‘owner’ of the function or the object it belongs to. We can call a met... |
LISP - Environment Setup | If you are still willing to set up your environment for Lisp programming language, you need the following two softwares available on your computer, (a) Text Editor and (b) The Lisp Executer.
This will be used to type your program. Examples of few editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, ... | [
{
"code": null,
"e": 2385,
"s": 2194,
"text": "If you are still willing to set up your environment for Lisp programming language, you need the following two softwares available on your computer, (a) Text Editor and (b) The Lisp Executer."
},
{
"code": null,
"e": 2529,
"s": 2385,
... |
Create a Tabular representation of Data in R Programming – table() Function | 19 Jun, 2020
table() function in R Language is used to create a categorical representation of data with variable name and the frequency in the form of a table.
Syntax: table(x)
Parameters:x: Object to be converted
Example 1:
# R Program to create # a tabular representation of data # Creating a vectorvec = c(2, 4, 3, 1... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jun, 2020"
},
{
"code": null,
"e": 175,
"s": 28,
"text": "table() function in R Language is used to create a categorical representation of data with variable name and the frequency in the form of a table."
},
{
"code": null,
... |
Table Widget in Flutter | 19 Sep, 2021
Table widget is used to display items in a table layout. There is no need to use Rows and Columns to create a table. If we have multiple rows with the same width of columns then Table widget is the right approach. SliverList or Column will be most suitable if we only want to have a single column. The heigh... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Sep, 2021"
},
{
"code": null,
"e": 510,
"s": 52,
"text": "Table widget is used to display items in a table layout. There is no need to use Rows and Columns to create a table. If we have multiple rows with the same width of columns t... |
How to make background image transparent using Python? | 24 Jan, 2021
In this article, the task is to create a background transparent of the image in Python
Library Required :
First Install pillow library on your Python Application before going ahead. Python Imaging Library is a free and open-source additional library for the Python programming language that adds support for... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 115,
"s": 28,
"text": "In this article, the task is to create a background transparent of the image in Python"
},
{
"code": null,
"e": 134,
"s": 115,
"text": "Library Required :"... |
Tetranacci Numbers | 03 Jun, 2021
The tetranacci numbers are a generalization of the Fibonacci numbers defined by the recurrence relation
T(n) = T(n-1) + T(n-2) + T(n-3) + T(n-4) with T(0)=0, T(1)=1, T(2)=1, T(3)=2,
For n>=4. They represent the n=4 case of the Fibonacci n-step numbers. The first few terms for n=0, 1, ... are 0, 1, 1, 2, ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 157,
"s": 52,
"text": "The tetranacci numbers are a generalization of the Fibonacci numbers defined by the recurrence relation "
},
{
"code": null,
"e": 236,
"s": 157,
"text": "... |
Semantic-UI | Container | 21 Jun, 2020
Semantic UI open-source framework provides a container which helps to limit content up to greatest width. The framework uses jQuery and CSS to create interactive user interfaces. It is very much similar to bootstrap usage and has different elements for creating page structure of any website.
Example: The f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jun, 2020"
},
{
"code": null,
"e": 321,
"s": 28,
"text": "Semantic UI open-source framework provides a container which helps to limit content up to greatest width. The framework uses jQuery and CSS to create interactive user interfac... |
numpy.mean() in Python | 28 Nov, 2018
numpy.mean(arr, axis = None) : Compute the arithmetic mean (average) of the given data (array elements) along the specified axis.
Parameters :arr : [array_like]input array.axis : [int or tuples of int]axis along which we want to calculate the arithmetic mean. Otherwise, it will consider arr to be flattened... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 183,
"s": 53,
"text": "numpy.mean(arr, axis = None) : Compute the arithmetic mean (average) of the given data (array elements) along the specified axis."
},
{
"code": null,
"e": 661,
... |
IntStream range() in Java | 06 Dec, 2018
IntStream range(int startInclusive, int endExclusive) returns a sequential ordered IntStream from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step of 1.
Syntax :
static IntStream range(int startInclusive, int endExclusive)
Parameters :
IntStream : A sequence of primitive int... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Dec, 2018"
},
{
"code": null,
"e": 236,
"s": 54,
"text": "IntStream range(int startInclusive, int endExclusive) returns a sequential ordered IntStream from startInclusive (inclusive) to endExclusive (exclusive) by an incremental ste... |
Remove all characters other than alphabets from string | 04 May, 2022
Given a string consisting of alphabets and others characters, remove all the characters other then alphabets and print the string so formed. Examples:
Input : $Gee*k;s..fo, r'Ge^eks?
Output : GeeksforGeeks
Input : P&ra+$BHa;;t*ku, ma$r@@s#in}gh
Output : PraBHatkumarsingh
To remove all the characters o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 May, 2022"
},
{
"code": null,
"e": 205,
"s": 52,
"text": "Given a string consisting of alphabets and others characters, remove all the characters other then alphabets and print the string so formed. Examples: "
},
{
"code":... |
Insertion and Deletion in Heaps in Data Sturcture | Here we will see how to insert and delete elements from binary heap data structures. Suppose the initial tree is like below −
insert(heap, n, item):
Begin
if heap is full, then exit
else
n := n + 1
for i := n, i > 1, set i := i / 2 in each iteration, do
if item <= heap[i/2], then break
... | [
{
"code": null,
"e": 1188,
"s": 1062,
"text": "Here we will see how to insert and delete elements from binary heap data structures. Suppose the initial tree is like below −"
},
{
"code": null,
"e": 1449,
"s": 1188,
"text": "insert(heap, n, item):\nBegin\n if heap is full, then ... |
How to add JTable to Panel in Java Swing? | To add JTabel to Panel, let us first crerate a panel −
JPanel panel = new JPanel();
Now, create JTable and add rows and columns with the records −
String[][] rec = {
{ "1", "Steve", "AUS" },
{ "2", "Virat", "IND" },
{ "3", "Kane", "NZ" },
{ "4", "David", "AUS" },
{ "5", "Ben", "ENG" },
{ "6", "Eion", ... | [
{
"code": null,
"e": 1117,
"s": 1062,
"text": "To add JTabel to Panel, let us first crerate a panel −"
},
{
"code": null,
"e": 1146,
"s": 1117,
"text": "JPanel panel = new JPanel();"
},
{
"code": null,
"e": 1209,
"s": 1146,
"text": "Now, create JTable and add ... |
Finding correlations in time series data | by Kemal Erdem (burnpiro) | Towards Data Science | If you’ve ever worked with data analysis it’s highly likely that you know about the idea of data correlation. There are many ways of calculating correlation within your data, and most of them are already implemented in popular data science toolkits. What I want to show you today is how to figure out a correlation betwe... | [
{
"code": null,
"e": 575,
"s": 172,
"text": "If you’ve ever worked with data analysis it’s highly likely that you know about the idea of data correlation. There are many ways of calculating correlation within your data, and most of them are already implemented in popular data science toolkits. What ... |
Removing strings from tuple in Python | When it is required to remove the strings froma tuple, the list comprehension and the 'type' method can be used.
A list can be used to store heterogeneous values (i.e data of any data type like integer, floating point, strings, and so on).
A list of tuple basically contains tuples enclosed in a list.
The list comprehe... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "When it is required to remove the strings froma tuple, the list comprehension and the 'type' method can be used."
},
{
"code": null,
"e": 1303,
"s": 1176,
"text": "A list can be used to store heterogeneous values (i.e data of any da... |
Python | Progress Bar widget in kivy - GeeksforGeeks | 18 Jan, 2022
Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
Kivy Tutorial – Learn Kivy with Examples.
ProgressBar widget is used t... | [
{
"code": null,
"e": 41137,
"s": 41109,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 41373,
"s": 41137,
"text": "Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application... |
Routing requests in Node.js | Routing http requests is important because we want to execute different business rules based on request url and the responses will be different for each routes.
Earlier we saw, we can get the url by request.url in node. Simple example of user name input with routes is shown below −
const http = require('http');
const s... | [
{
"code": null,
"e": 1223,
"s": 1062,
"text": "Routing http requests is important because we want to execute different business rules based on request url and the responses will be different for each routes."
},
{
"code": null,
"e": 1345,
"s": 1223,
"text": "Earlier we saw, we ca... |
C++ boost::dynamic_bitset Class with Examples - GeeksforGeeks | 22 Oct, 2021
The boost has more than 150 libraries in it, where a couple of most frequently used libraries were already included in C++ standard library. The dynamic_bitset is a powerful library used for bit manipulation. The dynamic_bitset class is used to represent a set of bits in either 0(reset) or 1(set) form. dyn... | [
{
"code": null,
"e": 26089,
"s": 26061,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 26678,
"s": 26089,
"text": "The boost has more than 150 libraries in it, where a couple of most frequently used libraries were already included in C++ standard library. The dynamic_bitset is ... |
How to change the list item bg-color individually using ngFor in Angular 2+ ? - GeeksforGeeks | 07 Sep, 2020
Introduction:We can solve this using *ngFor directive and attribute binding for binding the background colour.
Approach:Using *ngFor directive iterate through a list of items in .html file.By using attribute binding, bind the background color for every item in the list.By default use an array which consist... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n07 Sep, 2020"
},
{
"code": null,
"e": 26465,
"s": 26354,
"text": "Introduction:We can solve this using *ngFor directive and attribute binding for binding the background colour."
},
{
"code": null,
"e": 26873,
"s":... |
SQL Query to Check Given Format of a Date - GeeksforGeeks | 11 Aug, 2021
Here, we are going to see how to find the SQL Query to check whether the date passed to query is the date of the given format or not. In this article, we will be making use of the Microsoft SQL Server as our database.
Here, we will first create a database named “geeks” then we will create a table “departme... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 25731,
"s": 25513,
"text": "Here, we are going to see how to find the SQL Query to check whether the date passed to query is the date of the given format or not. In this article, we will be m... |
Project Idea | Anonymous Message Prank Game in PHP - GeeksforGeeks | 20 Jan, 2022
In this article, we are going to learn concepts of database, how to make a simple game using PHP and MySQL, how can we implement a database in which we send secret messages for a particular user, how to arrange tables in the database and Also we learn some security issues that how can we save our web apps ... | [
{
"code": null,
"e": 26243,
"s": 26215,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 26579,
"s": 26243,
"text": "In this article, we are going to learn concepts of database, how to make a simple game using PHP and MySQL, how can we implement a database in which we send secret... |
TimePicker in Kotlin - GeeksforGeeks | 19 Feb, 2021
Android TimePicker is a user interface control for selecting the time in either 24-hour format or AM/PM mode. It is used to ensure that users pick the valid time for the day in our application.
In android, TimePicker is available in two modes first one is clock mode and another one is spinner mode.
We can ... | [
{
"code": null,
"e": 25283,
"s": 25255,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 25477,
"s": 25283,
"text": "Android TimePicker is a user interface control for selecting the time in either 24-hour format or AM/PM mode. It is used to ensure that users pick the valid time f... |
Flutter - Assigning Actions to Buttons - GeeksforGeeks | 04 Jan, 2021
Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter provides a number of prebuilt widgets to use. There are different types of Button widgets that are provided by the Flutter SDK. In this article, we are going to... | [
{
"code": null,
"e": 25261,
"s": 25233,
"text": "\n04 Jan, 2021"
},
{
"code": null,
"e": 25605,
"s": 25261,
"text": "Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter provides a numbe... |
Tensorflow.js tf.data.Dataset.skip() Method - GeeksforGeeks | 21 Jun, 2021
Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment.
The tf.data.Dataset.skip() method is used to create a dataset that skips count initial elements from this dataset.
Synta... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 26732,
"s": 26545,
"text": "Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the brows... |
MongoDB | Delete Database using MongoShell - GeeksforGeeks | 19 Nov, 2019
Prerequisite : MongoDB Introduction
Short Description : A MongoDB Database is a container for all the collections, where Collection is a bunch of MongoDB documents similar to tables in RDBMS and Document is made of fields similar to a tuple in RDBMS, but it has a dynamic schema here.Example of a Document :... | [
{
"code": null,
"e": 26169,
"s": 26141,
"text": "\n19 Nov, 2019"
},
{
"code": null,
"e": 26205,
"s": 26169,
"text": "Prerequisite : MongoDB Introduction"
},
{
"code": null,
"e": 26477,
"s": 26205,
"text": "Short Description : A MongoDB Database is a container ... |
How to Create a Relative Frequency Histogram in R? - GeeksforGeeks | 04 Jan, 2022
In this article, we will discuss how to create a Relative Frequency Histogram in the R programming language.
Relative Frequency Histogram helps us to visualize the relative frequencies of values in a dataset. This shows how often a certain value is present in the dataset. A relative frequency histogram giv... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 26596,
"s": 26487,
"text": "In this article, we will discuss how to create a Relative Frequency Histogram in the R programming language."
},
{
"code": null,
"e": 26869,
"s": 2... |
Selecting Rows with .loc. A beginner’s guide to selecting subsets... | by Ednalyn C. De Dios | Towards Data Science | As data scientists, we spent most of our time wrangling knee-deep in manipulating data using Pandas. In this post, we’ll be looking at the .loc property of Pandas to select rows based on some predefined conditions.
Let’s open up a Jupyter notebook, and let’s get wrangling!
We will be using the 311 Service Calls dataset... | [
{
"code": null,
"e": 386,
"s": 171,
"text": "As data scientists, we spent most of our time wrangling knee-deep in manipulating data using Pandas. In this post, we’ll be looking at the .loc property of Pandas to select rows based on some predefined conditions."
},
{
"code": null,
"e": 445... |
Better Data Visualization with Dual Axis Graphs in Python | by Byron Dolon | Towards Data Science | Visualizing data makes it easy for people to understand trends and make informed decisions. An important part of data visualization is picking the right chart to showcase your data. Furthermore, even specific charts like bar graphs and line graphs can be further customized to best explain the data you would like to sho... | [
{
"code": null,
"e": 499,
"s": 172,
"text": "Visualizing data makes it easy for people to understand trends and make informed decisions. An important part of data visualization is picking the right chart to showcase your data. Furthermore, even specific charts like bar graphs and line graphs can be ... |
How to remove a specific line or curve in Matplotlib? | To remove a specific line or curve in Matplotlib, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Plot line1 and line2 using plot() method.
Pop the second line and remove it.
To display the figure, use show() method.
from matplotlib import pyplot as plt, ima... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "To remove a specific line or curve in Matplotlib, we can take the following steps −"
},
{
"code": null,
"e": 1222,
"s": 1146,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": ... |
The Garoppolo Effect: Exploring NFL Data using Python Tutorial | by Kishan Panchal | Towards Data Science | Jimmy Garoppolo just signed the largest contract in NFL history with the San Francisco 49ers. He started 5 games for them after being traded midseason and led the 49ers to wins in all of those games.
I wanted to explore how the 49ers team changed after Garoppolo was traded and understand a bit more about how he helped ... | [
{
"code": null,
"e": 372,
"s": 172,
"text": "Jimmy Garoppolo just signed the largest contract in NFL history with the San Francisco 49ers. He started 5 games for them after being traded midseason and led the 49ers to wins in all of those games."
},
{
"code": null,
"e": 738,
"s": 372,... |
Find the Number of 1 Bits in a large Binary Number in C++ | Given a 32-bit Unsigned Binary Number, the task is to count the set bits, i.e., '1's present in it.
For Example
Input:
N = 00000000000000100111
Output:
4
Explanation: Total set bits present in the given unsigned number is 4, thus we will return the output as '4'.
We have given an unsigned 32-bit binary number. The task... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "Given a 32-bit Unsigned Binary Number, the task is to count the set bits, i.e., '1's present in it."
},
{
"code": null,
"e": 1174,
"s": 1162,
"text": "For Example"
},
{
"code": null,
"e": 1181,
"s": 1174,
"text": ... |
Barcodes and QR Codes Decoder in Python | by Ng Wai Foong | Towards Data Science | By reading this piece, you will learn about the tips and tricks to generate one-dimensional barcodes in different formats as well as Quick Response code (QR Code) generation. Besides, this tutorial will outline the methods to decode both the barcode and QR Code using the same Python library. Previously, I have covered ... | [
{
"code": null,
"e": 722,
"s": 172,
"text": "By reading this piece, you will learn about the tips and tricks to generate one-dimensional barcodes in different formats as well as Quick Response code (QR Code) generation. Besides, this tutorial will outline the methods to decode both the barcode and Q... |
All you need to know about Regular Expressions | by Ria Kulshrestha | Towards Data Science | Regular expressions are a generalized way to match patterns with sequences of characters. They define a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. “find and replace” like operations.
Let’s say you have to search a corpus and return all the email addresses mentioned in it. ... | [
{
"code": null,
"e": 402,
"s": 172,
"text": "Regular expressions are a generalized way to match patterns with sequences of characters. They define a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. “find and replace” like operations."
},
{
"code": nul... |
Online Java Formatter | Editable Java Code
1234567891011121314151617181920212223242526import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexMatches{public static void main( String args[] ){// String to be scanned to find the pattern.String line = "This order was placed for QT3000! OK?";String pattern = "(.*)(\\d+)(.*... | [
{
"code": null,
"e": 19,
"s": 0,
"text": "Editable Java Code"
},
{
"code": null,
"e": 653,
"s": 19,
"text": "1234567891011121314151617181920212223242526import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexMatches{public static void main( String args[] )... |
Build Interactive Charts using Flask and D3.js | by Samir Saci | Towards Data Science | You are a proud Data Scientist presenting your new solution designed using optimized code, fancy libraries, advanced linear algebra and complex statistical concepts.
And [...]
Your solution got less interest, recognition or enthusiasm from your management than a simple PowerBI dashboard presented by a new intern the da... | [
{
"code": null,
"e": 337,
"s": 171,
"text": "You are a proud Data Scientist presenting your new solution designed using optimized code, fancy libraries, advanced linear algebra and complex statistical concepts."
},
{
"code": null,
"e": 347,
"s": 337,
"text": "And [...]"
},
{
... |
Renaming column names – Python Pandas | We can use the rename() method to rename column names. Let’s say the following is our Pandas DataFrame with 3 columns −
dataFrame = pd.DataFrame(
{
"Car": ['BMW', 'Lexus', 'Tesla', 'Mustang', 'Mercedes', 'Jaguar'],"Reg_Price": [7000, 1500, 5000, 8000, 9000, 6000],"Units": [90, 120, 100, 150, 200, 130]
}
)
W... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "We can use the rename() method to rename column names. Let’s say the following is our Pandas DataFrame with 3 columns −"
},
{
"code": null,
"e": 1381,
"s": 1182,
"text": "dataFrame = pd.DataFrame(\n {\n \"Car\": ['BMW', 'Lexus... |
Pandas in Practice. A hands-on tutorial which demonstrates... | by Sultan Al Awar | Towards Data Science | Have you ever struggled to analyze big datasets in Excel then, you should have considered Pandas, powerful programming and data analysis toolbox which allows you to manipulate million-row data points in milliseconds with high processing power and user productivity. In fact, Pandas is an open-source python library, intr... | [
{
"code": null,
"e": 801,
"s": 165,
"text": "Have you ever struggled to analyze big datasets in Excel then, you should have considered Pandas, powerful programming and data analysis toolbox which allows you to manipulate million-row data points in milliseconds with high processing power and user pro... |
How to use year input type in HTML? | The month input type is used in HTML using the <input type = "month">. Using this, allow the users to select month and year. But, what if you only want to show the year popup? Well, year input type isn’t available.
To use year input type, we will be using jQuery to add datepicker. It is used with the text input type. O... | [
{
"code": null,
"e": 1277,
"s": 1062,
"text": "The month input type is used in HTML using the <input type = \"month\">. Using this, allow the users to select month and year. But, what if you only want to show the year popup? Well, year input type isn’t available."
},
{
"code": null,
"e":... |
How To Create And Use Custom Matplotlib Style Sheet | by Shan Dou | Towards Data Science | The aesthetics of data visualizations are important. I often view this as “beautiful data deserves beautiful presentations” — Being overly fastidious with graph styling is not encouraged, but a healthy amount of polishing could go a long way.
Nevertheless, for static graphs that we typically make with matplotlib or sea... | [
{
"code": null,
"e": 415,
"s": 172,
"text": "The aesthetics of data visualizations are important. I often view this as “beautiful data deserves beautiful presentations” — Being overly fastidious with graph styling is not encouraged, but a healthy amount of polishing could go a long way."
},
{
... |
How to use the Entry widget in Tkinter? | The Entry widget is a single-line text widget defined in Tcl/Tk toolkit. We can use the Entry widget to accept and display single-line user input.
In order to use the Entry widget, you have to first create an Entry widget using the constructor Entry(parent, width, **options). Once we've defined our Entry widget, we can... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "The Entry widget is a single-line text widget defined in Tcl/Tk toolkit. We can use the Entry widget to accept and display single-line user input."
},
{
"code": null,
"e": 1483,
"s": 1209,
"text": "In order to use the Entry widget, y... |
On ROC and Precision-Recall curves | by Carlos Azevedo | Towards Data Science | In machine learning, when facing binary classification problems, there are two main metric tools that every data scientist uses: Receiver Operating Characteristic (ROC) curve and Precision-Recall (PR) curve.
The main goal of this article is to cover how to interpret these curves along with their inherent confusion matr... | [
{
"code": null,
"e": 380,
"s": 172,
"text": "In machine learning, when facing binary classification problems, there are two main metric tools that every data scientist uses: Receiver Operating Characteristic (ROC) curve and Precision-Recall (PR) curve."
},
{
"code": null,
"e": 513,
"... |
Voice search Wikipedia using Python - GeeksforGeeks | 23 Jan, 2020
Every day, we visit so many applications, be it messaging platforms like Messenger, Telegram or ordering products on Amazon, Flipkart, or knowing about weather and the list can go on. And we see that these websites have their own software program for initiating conversations with human beings using rules o... | [
{
"code": null,
"e": 25973,
"s": 25945,
"text": "\n23 Jan, 2020"
},
{
"code": null,
"e": 26452,
"s": 25973,
"text": "Every day, we visit so many applications, be it messaging platforms like Messenger, Telegram or ordering products on Amazon, Flipkart, or knowing about weather and... |
Circular Prime Number | Practice | GeeksforGeeks | A prime number is a Circular Prime Number if all of its possible rotations are itself prime numbers. Now given a number N check if it is Circular Prime or Not.
Example 1:
Input: N = 197
Output: 1
Explanation: 197 is a Circular Prime because
all rotations of 197 are 197, 719, 971 all of
the 3 are prime number's hence... | [
{
"code": null,
"e": 400,
"s": 238,
"text": "A prime number is a Circular Prime Number if all of its possible rotations are itself prime numbers. Now given a number N check if it is Circular Prime or Not.\n "
},
{
"code": null,
"e": 411,
"s": 400,
"text": "Example 1:"
},
{
... |
Namespace in C++ | Set 3 (Accessing, creating header, nesting and aliasing) - GeeksforGeeks | 29 May, 2017
Namespace in C++ | Set 1 (Introduction)Namespace in C++ | Set 2 (Extending namespace and Unnamed namespace)
Normal way// C++ program to demonstrate accessing of variables// in normal way, i.e., using "::"#include <iostream>using namespace std; namespace geek{ int rel = 300; } int main(){ // variabl... | [
{
"code": null,
"e": 26073,
"s": 26045,
"text": "\n29 May, 2017"
},
{
"code": null,
"e": 26181,
"s": 26073,
"text": "Namespace in C++ | Set 1 (Introduction)Namespace in C++ | Set 2 (Extending namespace and Unnamed namespace)"
},
{
"code": null,
"e": 26910,
"s": 26... |
Background and foreground thread in C# | A thread is defined as the execution path of a program. Each thread defines a unique flow of control
When the foreground threads will close, the background threads will be terminated.
The property used for background thread is IsBackground that gets or sets a value indicating whether a thread is a background thread. Th... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "A thread is defined as the execution path of a program. Each thread defines a unique flow of control"
},
{
"code": null,
"e": 1246,
"s": 1163,
"text": "When the foreground threads will close, the background threads will be terminated... |
Cisco Interview Experience for Experienced - GeeksforGeeks | 17 Oct, 2021
CISCO Java and spring boot interview experience for 2+ years experience There were total 5 rounds
Hackerrank online coding test1st technical round2nd technical roundManagerial roundHR discussion (Over phone call)
Hackerrank online coding test
1st technical round
2nd technical round
Managerial round
HR dis... | [
{
"code": null,
"e": 25698,
"s": 25670,
"text": "\n17 Oct, 2021"
},
{
"code": null,
"e": 25797,
"s": 25698,
"text": "CISCO Java and spring boot interview experience for 2+ years experience There were total 5 rounds"
},
{
"code": null,
"e": 25912,
"s": 25797,
... |
GATE | GATE CS 2018 | Question 57 - GeeksforGeeks | 09 Mar, 2018
The number of possible min-heaps containing each value from {1, 2, 3, 4, 5, 6, 7} exactly once is _______.
Note –This was Numerical Type question.(A) 80(B) 8(C) 20(D) 210Answer: (A)Explanation: Set minimum element as root (i.e 1), now 6 are remaining and left subtree will have 3 elements, each left subtree... | [
{
"code": null,
"e": 25768,
"s": 25740,
"text": "\n09 Mar, 2018"
},
{
"code": null,
"e": 25875,
"s": 25768,
"text": "The number of possible min-heaps containing each value from {1, 2, 3, 4, 5, 6, 7} exactly once is _______."
},
{
"code": null,
"e": 26116,
"s": 258... |
Access Azure Database for MySQL from Azure functions with SSL Certificate Verification | by Christopher Tao | Towards Data Science | Recently I got a customer who has relatively small volume data to be managed. So, I suggested Azure Database for MySQL. Basically, the smallest instance cost about $560 AUD per month will be enough. Also, because this is DBaaS, the customer does not need to hire more people to maintain it.
The customer also wants to au... | [
{
"code": null,
"e": 462,
"s": 171,
"text": "Recently I got a customer who has relatively small volume data to be managed. So, I suggested Azure Database for MySQL. Basically, the smallest instance cost about $560 AUD per month will be enough. Also, because this is DBaaS, the customer does not need ... |
Google Maps Selenium automation using Python - GeeksforGeeks | 04 Jan, 2021
Prerequisites: Browser Automation using Selenium
Selenium is a powerful tool for controlling a web browser through the program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. It can be inst... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n04 Jan, 2021"
},
{
"code": null,
"e": 25714,
"s": 25665,
"text": "Prerequisites: Browser Automation using Selenium"
},
{
"code": null,
"e": 26003,
"s": 25714,
"text": "Selenium is a powerful tool for controlli... |
Arrays in C/C++ - GeeksforGeeks | 27 Jan, 2022
An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly using indices of an array. They can be used to store collection of primitive data types such as int, float, double, char, etc of any part... | [
{
"code": null,
"e": 37678,
"s": 37650,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 38153,
"s": 37678,
"text": "An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed ran... |
C++ Dynamic Memory | A good understanding of how dynamic memory really works in C++ is essential to becoming a good C++ programmer. Memory in your C++ program is divided into two parts −
The stack − All variables declared inside the function will take up memory from the stack.
The stack − All variables declared inside the function will tak... | [
{
"code": null,
"e": 2484,
"s": 2318,
"text": "A good understanding of how dynamic memory really works in C++ is essential to becoming a good C++ programmer. Memory in your C++ program is divided into two parts −"
},
{
"code": null,
"e": 2575,
"s": 2484,
"text": "The stack − All ... |
Using the Pandas Append Function for Dataframes | by Matt Przybyla | Towards Data Science | DatasetPandasAppendTutorial CodeSummaryReferences
Dataset
Pandas
Append
Tutorial Code
Summary
References
The dataset used in this analysis and tutorial for the pandas append function is a dummy dataset created to mimic a dataframe with both text and numeric features. Feel free to use your own csv file with either or bo... | [
{
"code": null,
"e": 222,
"s": 172,
"text": "DatasetPandasAppendTutorial CodeSummaryReferences"
},
{
"code": null,
"e": 230,
"s": 222,
"text": "Dataset"
},
{
"code": null,
"e": 237,
"s": 230,
"text": "Pandas"
},
{
"code": null,
"e": 244,
"s": 2... |
How to set the margins of an element with JavaScript? | Use the margin property in JavaScript, to set the margins. You can try to run the following code to set the margins of an element with JavaScript −
Live Demo
<!DOCTYPE html>
<html>
<body>
<button type="button" onclick="display()">Set all four margins</button>
<p id="myID">This is demo text.</p>
<sc... | [
{
"code": null,
"e": 1210,
"s": 1062,
"text": "Use the margin property in JavaScript, to set the margins. You can try to run the following code to set the margins of an element with JavaScript −"
},
{
"code": null,
"e": 1220,
"s": 1210,
"text": "Live Demo"
},
{
"code": nu... |
How to create an ArrayList from an Array in Java? | The asList() method is used to convert an array to list.
Example:
import java.util.Arrays;
import java.util.List;
public class ArrayToList {
public static void main(String args[]){
Integer[] myArray = {23, 93, 56, 92, 39};
List list = Arrays.asList(myArray);
System.out.println(list);
}
}
Output... | [
{
"code": null,
"e": 1119,
"s": 1062,
"text": "The asList() method is used to convert an array to list."
},
{
"code": null,
"e": 1128,
"s": 1119,
"text": "Example:"
},
{
"code": null,
"e": 1376,
"s": 1128,
"text": "import java.util.Arrays;\nimport java.util.Li... |
Creating a MySQL Docker Container | One of the most important features of Docker Containerization is that it creates a bounded environment for running the Application with all the necessary dependencies and packages installed. Most applications require a backend database to store data points. Oracle provides Docker Images for running MySQL inside Contain... | [
{
"code": null,
"e": 1566,
"s": 1062,
"text": "One of the most important features of Docker Containerization is that it creates a bounded environment for running the Application with all the necessary dependencies and packages installed. Most applications require a backend database to store data poi... |
How to access elements of nested lists in R? | Sometimes the lists are contained in another list but we want to access the nested list’s elements. Since these elements are part of a list then cannot be directly accessed, first we need to access the broader list and then the list that contains the element to reach the actual element.
Consider the lists x1, x2, x3, x... | [
{
"code": null,
"e": 1350,
"s": 1062,
"text": "Sometimes the lists are contained in another list but we want to access the nested list’s elements. Since these elements are part of a list then cannot be directly accessed, first we need to access the broader list and then the list that contains the el... |
Ruby on Rails - Render | Usually the view template with the same name as the controller method is used to render the results.
# The default. Does not need to be specified
# in a controller method called "some_action"
render :action => 'some_action'
render :action => 'another_action', :layout => false
render :action => 'some_action', :layo... | [
{
"code": null,
"e": 2204,
"s": 2103,
"text": "Usually the view template with the same name as the controller method is used to render the results."
},
{
"code": null,
"e": 2446,
"s": 2204,
"text": "# The default. Does not need to be specified \n# in a controller method called \"... |
How do I get current URL in Selenium Webdriver 2 Python? | We can get the current URL of a page with Selenium webdriver. The method current_url is available which obtains the present page URL and then we can print the result in the console.
s = driver.current_url
Let us find the URL of the page presently navigated and we shall get https://www.tutorialspoint.com/index.htm as th... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "We can get the current URL of a page with Selenium webdriver. The method current_url is available which obtains the present page URL and then we can print the result in the console."
},
{
"code": null,
"e": 1267,
"s": 1244,
"text": "... |
C++ Program to Add Two Numbers | Addition is a basic arithmetic operation. The program to add two numbers performs addition of two numbers and prints their sum on screen.
A program that demonstrates addition of two numbers is given as follows −
Live Demo
#include <iostream>
using namespace std;
int main() {
int num1=15 ,num2=10, sum;
sum = num1... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "Addition is a basic arithmetic operation. The program to add two numbers performs addition of two numbers and prints their sum on screen."
},
{
"code": null,
"e": 1274,
"s": 1200,
"text": "A program that demonstrates addition of two ... |
OpenCV - Simple Threshold | Thresholding is a method of image segmentation, in general it is used to create binary images. Thresholding is of two types namely, simple thresholding and adaptive thresholding.
In simple thresholding operation the pixels whose values are greater than the specified threshold value, are assigned with a standard value.
... | [
{
"code": null,
"e": 3183,
"s": 3004,
"text": "Thresholding is a method of image segmentation, in general it is used to create binary images. Thresholding is of two types namely, simple thresholding and adaptive thresholding."
},
{
"code": null,
"e": 3324,
"s": 3183,
"text": "In ... |
Angular 8 - CLI Commands | Angular CLI helps developers to create projects easily and quickly. As we know already, Angular CLI tool is used for development and built on top of Node.js, installed from NPM.This chapter explains about Angular 8 CLI commands in detail.
Before moving to Angular CLI commands, we have to ensure that Angular CLI is inst... | [
{
"code": null,
"e": 2627,
"s": 2388,
"text": "Angular CLI helps developers to create projects easily and quickly. As we know already, Angular CLI tool is used for development and built on top of Node.js, installed from NPM.This chapter explains about Angular 8 CLI commands in detail."
},
{
... |
A Guide to Pandas and Matplotlib for Data Exploration | by Hugo Dolan | Towards Data Science | After recently using Pandas and Matplotlib to produce the graphs / analysis for this article on China’s property bubble , and creating a random forrest regression model to find undervalued used cars (more on this soon). I decided to put together this practical guide, which should hopefully be enough to get you up and r... | [
{
"code": null,
"e": 552,
"s": 172,
"text": "After recently using Pandas and Matplotlib to produce the graphs / analysis for this article on China’s property bubble , and creating a random forrest regression model to find undervalued used cars (more on this soon). I decided to put together this prac... |
How to get the value of radio button using AngularJS ? - GeeksforGeeks | 27 Jan, 2022
In this article, we will see how to get the radio button’s value with the help of AngularJS. In this article, we will use the ng-model to get the value of the checked radio button.
Example 1: In this example, the selected value is shown with an alert.
HTML
<!DOCTYPE HTML><html> <head> <script src="http... | [
{
"code": null,
"e": 25029,
"s": 25001,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 25211,
"s": 25029,
"text": "In this article, we will see how to get the radio button’s value with the help of AngularJS. In this article, we will use the ng-model to get the value of the chec... |
How to create a Password Entry Field in Tkinter? | Suppose you are creating a Login Form for a Tkinter application. In many cases, an ideal login requires a standard format of username, password, and other details of the user. Users can enter the password in the Entry field with any combination of alphanumeric characters. Generally, to establish a secure bridge between... | [
{
"code": null,
"e": 1605,
"s": 1062,
"text": "Suppose you are creating a Login Form for a Tkinter application. In many cases, an ideal login requires a standard format of username, password, and other details of the user. Users can enter the password in the Entry field with any combination of alpha... |
Segmentation in OCR !!. A basic explanation of different levels... | by Susmith Reddy | Towards Data Science | Welcome to part III about the working of the OCR system. In the previous post, we have seen the basic and widely used Preprocessing techniques in the OCR system.
In this part, we will cover the techniques of another most important phase of the OCR system, Segmentation.
Segmentation is nothing but breaking the whole ima... | [
{
"code": null,
"e": 334,
"s": 172,
"text": "Welcome to part III about the working of the OCR system. In the previous post, we have seen the basic and widely used Preprocessing techniques in the OCR system."
},
{
"code": null,
"e": 442,
"s": 334,
"text": "In this part, we will co... |
Create a contiguous flattened NumPy array - GeeksforGeeks | 19 Aug, 2020
Let us see how to create a contiguous array in NumPy.The contiguous flattened array is a two-dimensional and multi-dimensional array that is stored as a one-dimensional array. We will be using the ravel() method to perform this task.
Syntax : numpy.ravel(array, order = ‘C’)Parameters :
array : Input array.... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 24526,
"s": 24292,
"text": "Let us see how to create a contiguous array in NumPy.The contiguous flattened array is a two-dimensional and multi-dimensional array that is stored as a one-dimens... |
How to convert an integer to a character in Python? | Python's built-in function chr() returns a sunicode character equivalent of an integer between 0 to 0x10ffff.
>>> chr(a)
'd'
>>> chr(300)
'Ĭ'
>>> chr(65)
'A' | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "Python's built-in function chr() returns a sunicode character equivalent of an integer between 0 to 0x10ffff."
},
{
"code": null,
"e": 1221,
"s": 1172,
"text": ">>> chr(a)\n'd'\n>>> chr(300)\n'Ĭ'\n>>> chr(65)\n'A'"
}
] |
Underscore.js _.difference() Function - GeeksforGeeks | 24 Nov, 2021
The Underscore.js is a JavaScript library that provides a lot of useful functions like the map, filter, invoke etc even without using any built-in objects.The _.difference() function returns the values of array that are not present in the other arrays. If element is present in array then this element will ... | [
{
"code": null,
"e": 33211,
"s": 33183,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 33631,
"s": 33211,
"text": "The Underscore.js is a JavaScript library that provides a lot of useful functions like the map, filter, invoke etc even without using any built-in objects.The _.di... |
Dynamic Programming on Trees | Set 2 - GeeksforGeeks | 26 Jan, 2022
Given a tree with N nodes and N-1 edges, find out the maximum height of the tree when any node in the tree is considered as the root of the tree.
The above diagram represents a tree with 11 nodes and 10 edges and the path that gives us the maximum height when node 1 is considered as a root. The maximum he... | [
{
"code": null,
"e": 26249,
"s": 26221,
"text": "\n26 Jan, 2022"
},
{
"code": null,
"e": 26396,
"s": 26249,
"text": "Given a tree with N nodes and N-1 edges, find out the maximum height of the tree when any node in the tree is considered as the root of the tree. "
},
{
"c... |
Basics of Image Classification in Machine Learning Using Open Source Frameworks in IBM PowerAI (Part 2) | by Upendra Rajan | Towards Data Science | Image classification has become one of the key pilot use cases for demonstrating machine learning. In the previous article, I introduced machine learning, IBM PowerAI, compared GPU and CPU performances while running image classification programs on the IBM Power platform. In this article, let’s take a look at how to ch... | [
{
"code": null,
"e": 602,
"s": 172,
"text": "Image classification has become one of the key pilot use cases for demonstrating machine learning. In the previous article, I introduced machine learning, IBM PowerAI, compared GPU and CPU performances while running image classification programs on the IB... |
DAX Filter - ADDMISSINGITEMS function | Adds combinations of items from multiple columns to a table if they do not already exist. The determination of which item combinations to add is based on referencing source columns which contain all the possible values for the columns.
DAX ADDMISSINGITEMS function is new in Excel 2016.
ADDMISSINGITEMS (<showAllColumn>,... | [
{
"code": null,
"e": 2237,
"s": 2001,
"text": "Adds combinations of items from multiple columns to a table if they do not already exist. The determination of which item combinations to add is based on referencing source columns which contain all the possible values for the columns."
},
{
"co... |
SQL - SELECT Database, USE Statement | When you have multiple databases in your SQL Schema, then before starting your operation, you would need to select a database where all the operations would be performed.
The SQL USE statement is used to select any existing database in the SQL schema.
The basic syntax of the USE statement is as shown below −
USE Databa... | [
{
"code": null,
"e": 2624,
"s": 2453,
"text": "When you have multiple databases in your SQL Schema, then before starting your operation, you would need to select a database where all the operations would be performed."
},
{
"code": null,
"e": 2705,
"s": 2624,
"text": "The SQL USE... |
SQL Tryit Editor v1.6 | SELECT 'Customer' AS Type, ContactName, City, Country
FROM Customers
UNION
SELECT 'Supplier', ContactName, City, Country
FROM Suppliers
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version... | [
{
"code": null,
"e": 54,
"s": 0,
"text": "SELECT 'Customer' AS Type, ContactName, City, Country"
},
{
"code": null,
"e": 69,
"s": 54,
"text": "FROM Customers"
},
{
"code": null,
"e": 75,
"s": 69,
"text": "UNION"
},
{
"code": null,
"e": 121,
"s"... |
Python program to find Maximum and minimum element’s position in a list? | In python is very easy to find out maximum, minimum element and their position also. Python provides different inbuilt function. min() is used for find out minimum value in an array, max() is used for find out maximum value in an array. index() is used for finding the index of the element.
maxminposition(A, n)
/* A is ... | [
{
"code": null,
"e": 1353,
"s": 1062,
"text": "In python is very easy to find out maximum, minimum element and their position also. Python provides different inbuilt function. min() is used for find out minimum value in an array, max() is used for find out maximum value in an array. index() is used ... |
Python program to check if a string has at least one letter and one number - GeeksforGeeks | 07 Dec, 2021
Given a string in Python. The task is to check whether the string has at least one letter(character) and one number. Return “True” if the given string full fill above condition else return “False” (without quotes).Examples:
Input: welcome2ourcountry34
Output: True
Input: stringwithoutnum
Output: False
Ap... | [
{
"code": null,
"e": 23925,
"s": 23897,
"text": "\n07 Dec, 2021"
},
{
"code": null,
"e": 24150,
"s": 23925,
"text": "Given a string in Python. The task is to check whether the string has at least one letter(character) and one number. Return “True” if the given string full fill ab... |
Python 3 - String isalpha() Method | The isalpha() method checks whether the string consists of alphabetic characters only.
Following is the syntax for islpha() method −
str.isalpha()
NA
This method returns true if all the characters in the string are alphabetic and there is at least one character, false otherwise.
The following example shows the usage o... | [
{
"code": null,
"e": 2427,
"s": 2340,
"text": "The isalpha() method checks whether the string consists of alphabetic characters only."
},
{
"code": null,
"e": 2473,
"s": 2427,
"text": "Following is the syntax for islpha() method −"
},
{
"code": null,
"e": 2488,
"s... |
Distributed Deep Learning with Horovod | by Jordi TORRES.AI | Towards Data Science | [This post will be used in the master course Supercomputers Architecture at UPC Barcelona Tech with the support of the BSC]
In the previous post we explored how we can scale the training on Multiple GPUs in one Server with TensorFlow using tf.distributed.MirroredStrategy(). Now, in this post, we will use Horovod API to... | [
{
"code": null,
"e": 295,
"s": 171,
"text": "[This post will be used in the master course Supercomputers Architecture at UPC Barcelona Tech with the support of the BSC]"
},
{
"code": null,
"e": 570,
"s": 295,
"text": "In the previous post we explored how we can scale the training... |
Modulo / Remainder in Arduino | The modulo operator in Arduino is exactly the same as in C language, or most other languages for that matter. The operator is %. The syntax is: a % b and it returns the remainder when a is divided by b.
The following example illustrates the use of this operator −
void setup() {
// put your setup code here, to run on... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "The modulo operator in Arduino is exactly the same as in C language, or most other languages for that matter. The operator is %. The syntax is: a % b and it returns the remainder when a is divided by b."
},
{
"code": null,
"e": 1326,
"s"... |
Write an JDBC example for inserting value for Blob datatype into a table? | Assume we already have a table named MyTable in the database with the following description.
+-------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| Name | varchar(255) | YES | | NULL | |
| i... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "Assume we already have a table named MyTable in the database with the following description."
},
{
"code": null,
"e": 1491,
"s": 1155,
"text": "+-------+--------------+------+-----+---------+-------+\n| Field | Type | Null | ... |
Modify axis, legend, and plot labels using ggplot2 in R - GeeksforGeeks | 05 Jul, 2021
In this article, we are going to see how to modify the axis labels, legend, and plot labels using ggplot2 bar plot in R programming language.
For creating a simple bar plot we will use the function geom_bar( ).
Syntax: geom_bar(stat, fill, color, width)
Parameters : stat : Set the stat parameter to identi... | [
{
"code": null,
"e": 24778,
"s": 24750,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 24920,
"s": 24778,
"text": "In this article, we are going to see how to modify the axis labels, legend, and plot labels using ggplot2 bar plot in R programming language."
},
{
"code":... |
CakePHP - Logging | Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provided by the LogTrait, which is the common ancestor for almost all CakePHP... | [
{
"code": null,
"e": 2572,
"s": 2242,
"text": "Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provided b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.