title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
SQL - LEFT JOINS | The SQL LEFT JOIN returns all rows from the left table, even if there are no matches in the right table. This means that if the ON clause matches 0 (zero) records in the right table; the join will still return a row in the result, but with NULL in each column from the right table.
This means that a left join returns al... | [
{
"code": null,
"e": 2735,
"s": 2453,
"text": "The SQL LEFT JOIN returns all rows from the left table, even if there are no matches in the right table. This means that if the ON clause matches 0 (zero) records in the right table; the join will still return a row in the result, but with NULL in each ... |
GATE | GATE-CS-2014-(Set-3) | Question 65 - GeeksforGeeks | 28 Jun, 2021
A system uses 3 page frames for storing process pages in main memory. It uses the Least Recently Used (LRU) page replacement policy. Assume that all the page frames are initially empty. What is the total number of page faults that will occur while processing the page reference string given below?4, 7, 6, 1... | [
{
"code": null,
"e": 24080,
"s": 24052,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24670,
"s": 24080,
"text": "A system uses 3 page frames for storing process pages in main memory. It uses the Least Recently Used (LRU) page replacement policy. Assume that all the page frame... |
Batch Script - Logical Operators | Logical operators are used to evaluate Boolean expressions. Following are the logical operators available.
The batch language is equipped with a full set of Boolean logic operators like AND, OR, XOR, but only for binary numbers. Neither are there any values for TRUE or FALSE. The only logical operator available for con... | [
{
"code": null,
"e": 2276,
"s": 2169,
"text": "Logical operators are used to evaluate Boolean expressions. Following are the logical operators available."
},
{
"code": null,
"e": 2518,
"s": 2276,
"text": "The batch language is equipped with a full set of Boolean logic operators l... |
Bayesian regression with implementation in R | by Liyi Zhang | Towards Data Science | Linear regression can be established and interpreted from a Bayesian perspective. The first parts discuss theory and assumptions pretty much from scratch, and later parts include an R implementation and remarks. Readers can feel free to copy the two blocks of code into an R notebook and play around with it.
Recall that... | [
{
"code": null,
"e": 481,
"s": 172,
"text": "Linear regression can be established and interpreted from a Bayesian perspective. The first parts discuss theory and assumptions pretty much from scratch, and later parts include an R implementation and remarks. Readers can feel free to copy the two block... |
Create Database in MariaDB using PyMySQL in Python - GeeksforGeeks | 14 Oct, 2020
MariaDB is an open source Database Management System and its predecessor to MySQL. The pymysql client can be used to interact with MariaDB similar to that of MySQL using Python.
In this article we will look into the process of creating a database using pymysql. To create a database use the below syntax:
Sy... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n14 Oct, 2020"
},
{
"code": null,
"e": 24390,
"s": 24212,
"text": "MariaDB is an open source Database Management System and its predecessor to MySQL. The pymysql client can be used to interact with MariaDB similar to that of MySQL... |
Exploring the Softmax Function. Developing Intuition With the Wolfram... | by Arnoud Buzing | Towards Data Science | In machine learning, classification problems are often solved with neural networks which give probabilities for each class or type it is trained to recognize. A typical example is image classification where the input to a neural network is an image and the output is a list of possible things that image represents with ... | [
{
"code": null,
"e": 507,
"s": 172,
"text": "In machine learning, classification problems are often solved with neural networks which give probabilities for each class or type it is trained to recognize. A typical example is image classification where the input to a neural network is an image and th... |
Understanding Singular Value Decomposition and its Application in Data Science | by Reza Bagheri | Towards Data Science | In linear algebra, the Singular Value Decomposition (SVD) of a matrix is a factorization of that matrix into three matrices. It has some interesting algebraic properties and conveys important geometrical and theoretical insights about linear transformations. It also has some important applications in data science. In t... | [
{
"code": null,
"e": 940,
"s": 171,
"text": "In linear algebra, the Singular Value Decomposition (SVD) of a matrix is a factorization of that matrix into three matrices. It has some interesting algebraic properties and conveys important geometrical and theoretical insights about linear transformatio... |
SQL Query to Check if Date is Greater Than Today in SQL - GeeksforGeeks | 15 Oct, 2021
In this article, we will see the SQL query to check if DATE is greater than todayβs date by comparing date with todayβs date using the GETDATE() function. This function in SQL Server is used to return the present date and time of the database system in a βYYYY-MM-DD hh:mm: ss. mmmβ pattern.
Features:
This ... | [
{
"code": null,
"e": 23928,
"s": 23900,
"text": "\n15 Oct, 2021"
},
{
"code": null,
"e": 24220,
"s": 23928,
"text": "In this article, we will see the SQL query to check if DATE is greater than todayβs date by comparing date with todayβs date using the GETDATE() function. This fun... |
C++ Program to Implement Graham Scan Algorithm to Find the Convex Hull | Convex hull is the minimum closed area which can cover all given data points.
Graham's Scan algorithm will find the corner points of the convex hull. In this algorithm, at first the lowest point is chosen. That point is the starting point of the convex hull. Remaining n-1 vertices are sorted based on the anti-clock wis... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "Convex hull is the minimum closed area which can cover all given data points."
},
{
"code": null,
"e": 1537,
"s": 1140,
"text": "Graham's Scan algorithm will find the corner points of the convex hull. In this algorithm, at first the ... |
C++ Program For Deleting A Node In A Doubly Linked List - GeeksforGeeks | 15 Dec, 2021
Pre-requisite: Doubly Link List Set 1| Introduction and Insertion
Write a function to delete a given node in a doubly-linked list. Original Doubly Linked List
Approach: The deletion of a node in a doubly-linked list can be divided into three main categories:
After the deletion of the head node.
After th... | [
{
"code": null,
"e": 24215,
"s": 24187,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 24281,
"s": 24215,
"text": "Pre-requisite: Doubly Link List Set 1| Introduction and Insertion"
},
{
"code": null,
"e": 24375,
"s": 24281,
"text": "Write a function to dele... |
SQL on Ethereum: How to Work With All the Data from a Transaction | by Andrew Hong | Towards Data Science | This post was first published on ath.mirror.xyz, be sure to subscribe there and follow me on twitter to get my most up-to-date crypto and data science content. All images in this article are created by the author.
if youβre looking for more web3 data content, check out my 30-day free course (with videos)!
If youβve eve... | [
{
"code": null,
"e": 385,
"s": 171,
"text": "This post was first published on ath.mirror.xyz, be sure to subscribe there and follow me on twitter to get my most up-to-date crypto and data science content. All images in this article are created by the author."
},
{
"code": null,
"e": 478,... |
Intro to Open Database for Geoscience Computing: Part 1 of 2 | by Yohanes Nuwara | Towards Data Science | Nowadays, open geoscience data are very important for researches, benchmarking, and project purposes. They are so useful that people working in the energy industries (oil and gas, and geothermal) and in academia utilize these datasets to do benchmarking on their methodology, and also as reproducible teaching material f... | [
{
"code": null,
"e": 806,
"s": 172,
"text": "Nowadays, open geoscience data are very important for researches, benchmarking, and project purposes. They are so useful that people working in the energy industries (oil and gas, and geothermal) and in academia utilize these datasets to do benchmarking o... |
3Sum in Python | Suppose we have an array of numbers. It stores n integers, there are there elements a, b, c in the array, such that a + b + c = 0. Find all unique triplets in the array which satisfies the situation. So if the array is like [-1,0,1,2,-1,-4], then the result will be [[-1, 1, 0], [-1, -1, 2]]
To solve this, we will follo... | [
{
"code": null,
"e": 1354,
"s": 1062,
"text": "Suppose we have an array of numbers. It stores n integers, there are there elements a, b, c in the array, such that a + b + c = 0. Find all unique triplets in the array which satisfies the situation. So if the array is like [-1,0,1,2,-1,-4], then the re... |
C# Program to Overload Unary Increment (++) and Decrement (-) Operators - GeeksforGeeks | 16 Nov, 2021
In C#, overloading is the common way of implementing polymorphism. It is the ability to redefine a function in more than one form. A user can implement method overloading by defining two or more methods in a class sharing the same name but with different method signatures. So in this article, we will learn... | [
{
"code": null,
"e": 24222,
"s": 24194,
"text": "\n16 Nov, 2021"
},
{
"code": null,
"e": 24587,
"s": 24222,
"text": "In C#, overloading is the common way of implementing polymorphism. It is the ability to redefine a function in more than one form. A user can implement method over... |
6 Lesser-Known Pandas Aggregate Functions | by Soner YΔ±ldΔ±rΔ±m | Towards Data Science | The groupby is one of the most frequently used Pandas functions for data analysis. It first divides the data points (i.e. rows in a data frame) into groups based on the distinct values in a column. Then, it calculates aggregated values for each group.
Consider we have a dataset that contains brands and prices of cars. ... | [
{
"code": null,
"e": 423,
"s": 171,
"text": "The groupby is one of the most frequently used Pandas functions for data analysis. It first divides the data points (i.e. rows in a data frame) into groups based on the distinct values in a column. Then, it calculates aggregated values for each group."
... |
MySQL Tryit Editor v1.0 | SELECT CAST("2017-08-29" AS DATE);
β
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version of SQL.
Your browser does not support WebSQL.
Your are now using a light-version of the Try... | [
{
"code": null,
"e": 35,
"s": 0,
"text": "SELECT CAST(\"2017-08-29\" AS DATE);"
},
{
"code": null,
"e": 37,
"s": 35,
"text": "β"
},
{
"code": null,
"e": 109,
"s": 46,
"text": "Edit the SQL Statement, and click \"Run SQL\" to see the result."
},
{
"code... |
PostgreSQL- LOWER function - GeeksforGeeks | 08 Oct, 2021
In PostgreSQL, the LOWER function is used to convert a string, an expression, or values in a column to lower case.
Syntax: LOWER(string or value or expression)
Letβs analyze the above syntax:
The LOWER function takes in value with either all uppercase or partial uppercase values or characters and convert t... | [
{
"code": null,
"e": 23747,
"s": 23719,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 23862,
"s": 23747,
"text": "In PostgreSQL, the LOWER function is used to convert a string, an expression, or values in a column to lower case."
},
{
"code": null,
"e": 23907,
... |
C Program - Print the sum of digits of given number - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
C Program to print the sum of digits of a giv... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Symfony - Logging | Logging is very important for a web application. Web applications are used by hundreds to thousands of users at a time. To get sneak preview of happenings around a web application, Logging should be enabled. Without logging, the developer will not be able to find the status of the application. Let us consider that an e... | [
{
"code": null,
"e": 2749,
"s": 2203,
"text": "Logging is very important for a web application. Web applications are used by hundreds to thousands of users at a time. To get sneak preview of happenings around a web application, Logging should be enabled. Without logging, the developer will not be ab... |
gRPC - Client Streaming RPC | Let us see now see how client streaming works while using gRPC communication. In this case, the client will search and add books to the cart. Once the client is done adding all the books, the server would provide the checkout cart value to the client.
First let us define the bookstore.proto file in common_proto_files β... | [
{
"code": null,
"e": 2089,
"s": 1837,
"text": "Let us see now see how client streaming works while using gRPC communication. In this case, the client will search and add books to the cart. Once the client is done adding all the books, the server would provide the checkout cart value to the client."
... |
Spring Batch - XML to MySQL | In this chapter, we will create a Spring Batch application which uses an XML Reader and a MySQL Writer.
Reader β The reader we are using in the application is StaxEventItemReader to read data from XML documents.
Following is the input XML document we are using in this application. This document holds data records which... | [
{
"code": null,
"e": 2032,
"s": 1928,
"text": "In this chapter, we will create a Spring Batch application which uses an XML Reader and a MySQL Writer."
},
{
"code": null,
"e": 2140,
"s": 2032,
"text": "Reader β The reader we are using in the application is StaxEventItemReader to ... |
Build your first Anomaly Detector in Power BI using PyCaret | by Moez Ali | Towards Data Science | In our last post, Machine Learning in Power BI using PyCaret, we presented a step-by-step tutorial on how PyCaret can be integrated within Power BI, thus allowing analysts and data scientists to add a layer of machine learning to their Dashboards and Reports without any additional license costs.
In this post, we will d... | [
{
"code": null,
"e": 469,
"s": 172,
"text": "In our last post, Machine Learning in Power BI using PyCaret, we presented a step-by-step tutorial on how PyCaret can be integrated within Power BI, thus allowing analysts and data scientists to add a layer of machine learning to their Dashboards and Repo... |
gRPC - Unary gRPC | We will now look at various types of communication that the gRPC framework supports. We will use an example of Bookstore where the client can search and place an order for book delivery.
Let us see unary gRPC communication where we let the client search for a title and return randomly one of the book matching the title... | [
{
"code": null,
"e": 2024,
"s": 1837,
"text": "We will now look at various types of communication that the gRPC framework supports. We will use an example of Bookstore where the client can search and place an order for book delivery."
},
{
"code": null,
"e": 2171,
"s": 2024,
"tex... |
Ruby - Built-in Functions | Since the Kernel module is included by Object class, its methods are available everywhere in the Ruby program. They can be called without a receiver (functional form). Therefore, they are often called functions.
abort
Terminates program. If an exception is raised (i.e., $! isn't nil), its error message is displayed.
Ar... | [
{
"code": null,
"e": 2506,
"s": 2294,
"text": "Since the Kernel module is included by Object class, its methods are available everywhere in the Ruby program. They can be called without a receiver (functional form). Therefore, they are often called functions."
},
{
"code": null,
"e": 2512... |
C# Type Casting | Type casting is when you assign a value of one data type to another type.
In C#, there are two types of casting:
Implicit Casting (automatically) - converting a smaller type
to a larger type size
char -> int -> long -> float -> double
Explicit Casting (manually) - converting a larger type
to a smaller size type
doub... | [
{
"code": null,
"e": 74,
"s": 0,
"text": "Type casting is when you assign a value of one data type to another type."
},
{
"code": null,
"e": 113,
"s": 74,
"text": "In C#, there are two types of casting:"
},
{
"code": null,
"e": 237,
"s": 113,
"text": "Implicit... |
How to create image overlay hover effect with CSS? | Following is the code to produce bottom navigation menu with CSS β
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.card-container {
display: inline-block;
position: relative;
width: 50%;
}
img {
opacity: 1;
display: block;
width: 1... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "Following is the code to produce bottom navigation menu with CSS β"
},
{
"code": null,
"e": 1140,
"s": 1129,
"text": " Live Demo"
},
{
"code": null,
"e": 2123,
"s": 1140,
"text": "<!DOCTYPE html>\n<html>\n<head>\n... |
Classify images with CNN. Getting young children to tidy up their... | by 1Regina | Towards Data Science | Getting young children to tidy up their rooms is often challenging. What I insist is messy, they will insist is clean enough. After all, all adjectives are subjective and I want my children to grow up respecting othersβ opinion in our inclusive society. How do you put some definition around differences in opinion? An o... | [
{
"code": null,
"e": 617,
"s": 172,
"text": "Getting young children to tidy up their rooms is often challenging. What I insist is messy, they will insist is clean enough. After all, all adjectives are subjective and I want my children to grow up respecting othersβ opinion in our inclusive society. H... |
How to set auto-increment to an existing column in a table using JDBC API? | You can add/set an auto increment constraint to a column in a table using the ALTER TABLE command.
ALTER TABLE table_name ADD id INT PRIMARY KEY AUTO_INCREMENT
Assume we have a table named Dispatches in the database with 7 columns namely id, CustomerName, DispatchDate, DeliveryTime, Price and, Location with description... | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "You can add/set an auto increment constraint to a column in a table using the ALTER TABLE command."
},
{
"code": null,
"e": 1222,
"s": 1161,
"text": "ALTER TABLE table_name ADD id INT PRIMARY KEY AUTO_INCREMENT"
},
{
"code": ... |
How to use the TextWatcher class in kotlin? | This example demonstrates how to use the TextWatcher class in kotlin.
Step 1 β Create a new project in Android Studio, go to File βNew Project and fill all required details to create a new project.
Step 2 β Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xm... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "This example demonstrates how to use the TextWatcher class in kotlin."
},
{
"code": null,
"e": 1260,
"s": 1132,
"text": "Step 1 β Create a new project in Android Studio, go to File βNew Project and fill all required details to create... |
How to Find HCF or GCD using Python? | Highest Common Factor or Greatest Common Divisor of two or more integers is the largest positive integer that evenly divides the numbers without a remainder. For example, the GCD of 8 and 12 is 4.
x = int(input("Enter first number: "))
y = int(input("Enter second number: "))
if x > y:
smaller = y
else:
... | [
{
"code": null,
"e": 1259,
"s": 1062,
"text": "Highest Common Factor or Greatest Common Divisor of two or more integers is the largest positive integer that evenly divides the numbers without a remainder. For example, the GCD of 8 and 12 is 4."
},
{
"code": null,
"e": 1531,
"s": 1259... |
Program to print path from root to a given node in a binary tree using C++ | In this tutorial, we will be discussing a program to print the path from root to a given node in a binary tree.
For a given binary tree having distinct nodes, we have to print the complete path to reach a particularly given node from the root node of the binary tree.
To solve this problem, we will use recursion. While ... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to print the path from root to a given node in a binary tree."
},
{
"code": null,
"e": 1330,
"s": 1174,
"text": "For a given binary tree having distinct nodes, we have to print the co... |
Creating Interactive Radar Charts with Python | by M Khorasani | Towards Data Science | Perhaps one of the unsung heroes of data visualization is the benevolent and graceful radar plot. Weβve grown accustomed to a whole slew of other visualizations, choropleths, donuts and heatmaps to name a few, but radar charts are largely missing from our dazzling dashboards. Granted, there are only particular use case... | [
{
"code": null,
"e": 734,
"s": 171,
"text": "Perhaps one of the unsung heroes of data visualization is the benevolent and graceful radar plot. Weβve grown accustomed to a whole slew of other visualizations, choropleths, donuts and heatmaps to name a few, but radar charts are largely missing from our... |
How to validate if input in input field has alphabets only using express-validator ? - GeeksforGeeks | 24 Dec, 2021
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 alphabets are allowed i.e. there not allowed any number ... | [
{
"code": null,
"e": 24725,
"s": 24697,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 25155,
"s": 24725,
"text": "In HTML forms, we often required validation of different types. Validate existing email, validate password length, validate confirm password, validate to allow onl... |
Extract rows from R DataFrame based on factors - GeeksforGeeks | 23 May, 2021
In this article, we will discuss how to extract rows from dataframe based on factors in R Programming Language.
The data frame column can be accessed using its name (df$col-name) or by its index (df[[ col-indx ]]) to access a particular column. The data frame columns may contain values as factors by explic... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n23 May, 2021"
},
{
"code": null,
"e": 24963,
"s": 24851,
"text": "In this article, we will discuss how to extract rows from dataframe based on factors in R Programming Language."
},
{
"code": null,
"e": 25263,
"s"... |
Create a mirror image with CSS | The flip effect is used to create a mirror image of the object. The following parameters can be used in this filter -
You can try to run the following code to create a mirror image
Live Demo
<html>
<head>
</head>
<body>
<img src="/css/images/logo.png" alt="CSS Logo" style="Filter: FlipH">
<img src... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "The flip effect is used to create a mirror image of the object. The following parameters can be used in this filter -"
},
{
"code": null,
"e": 1243,
"s": 1180,
"text": "You can try to run the following code to create a mirror image"
... |
Machine Learning Resampling Techniques for Class Imbalances | by Allison Kelly | Towards Data Science | Letβs face it. Inequality sucks. And Iβm not even talking about the fact that African Americans and Hispanics make up 56% of the American prison population despite being 32% of the total population or that the combined wealth of Bill Gates, Jeff Bezos, and Warren Buffet is more than the combined wealth of the bottom 50... | [
{
"code": null,
"e": 508,
"s": 172,
"text": "Letβs face it. Inequality sucks. And Iβm not even talking about the fact that African Americans and Hispanics make up 56% of the American prison population despite being 32% of the total population or that the combined wealth of Bill Gates, Jeff Bezos, an... |
Number Of Open Doors | Practice | GeeksforGeeks | Consider a long alley with a N number of doors on one side. All the doors are closed initially. You move to and fro in the alley changing the states of the doors as follows: you open a door that is already closed and you close a door that is already opened. You start at one end go on altering the state of the doors til... | [
{
"code": null,
"e": 1025,
"s": 238,
"text": "Consider a long alley with a N number of doors on one side. All the doors are closed initially. You move to and fro in the alley changing the states of the doors as follows: you open a door that is already closed and you close a door that is already open... |
How to disable browser autofill on input fields using jQuery ? - GeeksforGeeks | 21 Dec, 2020
In this article, we will see how to disable the browser auto fill property on the input field. For that, HTML page is created in which jQuery CDN is imported to use jQuery and its code is written.
Approach:
Create a basic HTML page having at least one input field in it with the βidβ attribute.
Import jQuer... | [
{
"code": null,
"e": 25398,
"s": 25370,
"text": "\n21 Dec, 2020"
},
{
"code": null,
"e": 25595,
"s": 25398,
"text": "In this article, we will see how to disable the browser auto fill property on the input field. For that, HTML page is created in which jQuery CDN is imported to us... |
How to Produce a DeepFake Video in 5 Minutes | by Dimitris Poulopoulos | Towards Data Science | Do you dance? Do you have a favourite dancer or performer that you want to see yourself copying their moves? Well, now you can!
Imagine having a full-body picture of yourself. Just a still image. Then all you need is a solo video of your favourite dancer performing some moves. Not that hard now that TikTok is taking ov... | [
{
"code": null,
"e": 299,
"s": 171,
"text": "Do you dance? Do you have a favourite dancer or performer that you want to see yourself copying their moves? Well, now you can!"
},
{
"code": null,
"e": 507,
"s": 299,
"text": "Imagine having a full-body picture of yourself. Just a sti... |
Easy Sentiment Analysis with Sentimentr in R | Towards Data Science | The Sentimentr package for R is beneficial in analyzing text for psychological or sociological studies. Its first big advantage is that it makes sentiment analysis simple and achievable within a few lines of code. Its second big advantage is that it corrects for inversions, meaning that while a more basic sentiment ana... | [
{
"code": null,
"e": 639,
"s": 171,
"text": "The Sentimentr package for R is beneficial in analyzing text for psychological or sociological studies. Its first big advantage is that it makes sentiment analysis simple and achievable within a few lines of code. Its second big advantage is that it corre... |
First Normal Form (1NF) - GeeksforGeeks | 28 Mar, 2022
If a table has data redundancy and is not properly normalized, then it will be difficult to handle and update the database, without facing data loss. It will also eat up extra memory space and Insertion, Update and Deletion Anomalies are very frequent if database is not normalized.
Normalization is the pr... | [
{
"code": null,
"e": 25903,
"s": 25875,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 26187,
"s": 25903,
"text": "If a table has data redundancy and is not properly normalized, then it will be difficult to handle and update the database, without facing data loss. It will also ... |
Count pairs in an array whose absolute difference is divisible by K | Using Map - GeeksforGeeks | 30 Nov, 2021
Given an array, arr[] of N elements and an integer K, the task is to find the number of pairs (i, j) such that the absolute value of (arr[i] β arr[j]) is a multiple of K.
Examples:
Input: N = 4, K = 2, arr[] = {1, 2, 3, 4}Output: 2Explanation: Total 2 pairs exists in the array with absolute difference div... | [
{
"code": null,
"e": 26067,
"s": 26039,
"text": "\n30 Nov, 2021"
},
{
"code": null,
"e": 26238,
"s": 26067,
"text": "Given an array, arr[] of N elements and an integer K, the task is to find the number of pairs (i, j) such that the absolute value of (arr[i] β arr[j]) is a multipl... |
Build, Develop and Deploy a Machine Learning Model to predict cars price using Gradient Boosting. | by Ayoub RMIDI | Towards Data Science | In this blog post I will cover a Data Science process to build and deploy a Machine Learning Model that can predict a car price, by following the steps below :
Setting the research goalRetrieving DataData Preprocessing & CleansingData Exploration & VisualizationData ModelingModel Deployment
Setting the research goal
Re... | [
{
"code": null,
"e": 331,
"s": 171,
"text": "In this blog post I will cover a Data Science process to build and deploy a Machine Learning Model that can predict a car price, by following the steps below :"
},
{
"code": null,
"e": 463,
"s": 331,
"text": "Setting the research goalR... |
How to count elements in a nested Python dictionary? | It is possible to iterate over each key value pair in a dictionary by the expression
for k,v in students.items():
Since value component of each item is itself a dictionary in nested Python dictionary, length of each sub-dictionary is len(v). Perform cumulative addition over the loop to obtain count of all elements
>>> ... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "It is possible to iterate over each key value pair in a dictionary by the expression"
},
{
"code": null,
"e": 1176,
"s": 1147,
"text": "for k,v in students.items():"
},
{
"code": null,
"e": 1378,
"s": 1176,
"text"... |
Counters in Python | Set 1 (Initialization and Updation) - GeeksforGeeks | 03 Mar, 2022
Counter is a container included in the collections module. Now you all must be wondering what is a container. Donβt worry first letβs discuss about the container.
Containers are objects that hold objects. They provide a way to access the contained objects and iterate over them. Examples of built in conta... | [
{
"code": null,
"e": 41472,
"s": 41444,
"text": "\n03 Mar, 2022"
},
{
"code": null,
"e": 41637,
"s": 41472,
"text": "Counter is a container included in the collections module. Now you all must be wondering what is a container. Donβt worry first letβs discuss about the container. ... |
Alphabet Recognition System|Image Classification|CNN|Convolutional Neural Network | Towards Data Science | In this article, I am going to show you how to build an Alphabet Recognition System using Convolutional Neural Networks (CNNs) and deploy it using anvil.works. At the end of this post, you will be able to create an exact replica of the system shown above.
Convolutional Neural Network
CNN Implementation
Anvil Integratio... | [
{
"code": null,
"e": 427,
"s": 171,
"text": "In this article, I am going to show you how to build an Alphabet Recognition System using Convolutional Neural Networks (CNNs) and deploy it using anvil.works. At the end of this post, you will be able to create an exact replica of the system shown above.... |
Get the substring before the last occurrence of a separator in Java | We have the following string with a separator.
String str = "David-Warner";
We want the substring before the last occurrence of a separator. Use the lastIndexOf() method.
For that, you need to get the index of the separator using indexOf()
String separator ="-";
int sepPos = str.lastIndexOf(separator);
System.out.print... | [
{
"code": null,
"e": 1109,
"s": 1062,
"text": "We have the following string with a separator."
},
{
"code": null,
"e": 1138,
"s": 1109,
"text": "String str = \"David-Warner\";"
},
{
"code": null,
"e": 1233,
"s": 1138,
"text": "We want the substring before the ... |
Concatenate Multiple Strings in Java. | You can concatenate multiple strings using the β+β operator of Java.
public class Test {
public static void main(String args[]) {
String st1 = "Hello";
String st2 = "How";
String st3 = "You";
String res = st1+st2+st3;
System.out.println(res);
}
}
HelloHowYou | [
{
"code": null,
"e": 1131,
"s": 1062,
"text": "You can concatenate multiple strings using the β+β operator of Java."
},
{
"code": null,
"e": 1345,
"s": 1131,
"text": "public class Test {\n public static void main(String args[]) {\n String st1 = \"Hello\";\n String st2... |
How to import and export a module/library in JavaScript? | Note β To run this example you will need to run a localhost server.
Following is the code for importing and exporting a module/library in JavaScript β
INDEX.html
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Do... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "Note β To run this example you will need to run a localhost server."
},
{
"code": null,
"e": 1213,
"s": 1130,
"text": "Following is the code for importing and exporting a module/library in JavaScript β"
},
{
"code": null,
... |
Last Minute Notes β Operating Systems - GeeksforGeeks | 28 Jun, 2021
See Last Minute Notes for all subjects all subjects here.
Operating Systems: It is the interface between the user and the computer hardware.
Types of Operating System (OS):
Batch OS β A set of similar jobs are stored in the main memory for execution. A job gets assigned to the CPU, only when the execution ... | [
{
"code": null,
"e": 25391,
"s": 25363,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25449,
"s": 25391,
"text": "See Last Minute Notes for all subjects all subjects here."
},
{
"code": null,
"e": 25532,
"s": 25449,
"text": "Operating Systems: It is the int... |
Building a Map from 2 arrays of values and keys in JavaScript | Suppose, we have two arrays β
const keys = [0, 4, 2, 3, 1];
const values = ["first", "second", "third", "fourth", "fifth"];
We are required to write a JavaScript function that takes in the keys and the values array and maps the values to the corresponding keys. The output should be β
const map = {
0 => 'first',
4... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Suppose, we have two arrays β"
},
{
"code": null,
"e": 1186,
"s": 1092,
"text": "const keys = [0, 4, 2, 3, 1];\nconst values = [\"first\", \"second\", \"third\", \"fourth\", \"fifth\"];"
},
{
"code": null,
"e": 1347,
... |
Reverse a Doubly Linked List using C++ | In this article we have a doubly linked list, and we will explain different approaches to reverse a doubly linked list in C++. For example β
Input : {1, 2, 3, 4}
Output : {4, 3, 2, 1}
There is generally one approach that comes to mind, but we will use two approaches β The normal and unorthodox approach.
In this approac... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "In this article we have a doubly linked list, and we will explain different approaches to reverse a doubly linked list in C++. For example β"
},
{
"code": null,
"e": 1246,
"s": 1203,
"text": "Input : {1, 2, 3, 4}\nOutput : {4, 3, 2, ... |
Basic Statistics for Time Series Analysis in Python | by Marco Peixeiro | Towards Data Science | A time series is simply a set of data points ordered in time, where time is usually the independent variable.
Now, forecasting the future is not the only purpose of time series analysis. It is also relevant to asses important properties, such as stationarity, seasonality or autocorrelation.
Before moving on to more adv... | [
{
"code": null,
"e": 281,
"s": 171,
"text": "A time series is simply a set of data points ordered in time, where time is usually the independent variable."
},
{
"code": null,
"e": 463,
"s": 281,
"text": "Now, forecasting the future is not the only purpose of time series analysis.... |
How to load external HTML into a <div> using jQuery? | To load external HTML into a <div>, wrap your code inside the load() function. To load a page in div in jQuery, use the load() method. Firstly, add the web page you want to add.
Hereβs the code for new.html β
<html>
<head>
</head>
<body>
<p>This is demo text.<p>
</body>
</html>
The following is the code snippet fo... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "To load external HTML into a <div>, wrap your code inside the load() function. To load a page in div in jQuery, use the load() method. Firstly, add the web page you want to add."
},
{
"code": null,
"e": 1271,
"s": 1240,
"text": "Here... |
How to Install easily Spark for Python | by Papa Moryba Kouate | Towards Data Science | Introduction
When we work with Big Data, we need more computational power that we can get with a distributed system of multiple computers. Moreover, to work effectively into the big data ecosystem, we also need a cluster computing framework which permits us to perform processing tasks quickly on large data sets.
The tw... | [
{
"code": null,
"e": 185,
"s": 172,
"text": "Introduction"
},
{
"code": null,
"e": 486,
"s": 185,
"text": "When we work with Big Data, we need more computational power that we can get with a distributed system of multiple computers. Moreover, to work effectively into the big data... |
CSS - Layouts | Hope you are very comfortable with HTML tables and you are efficient in designing page layouts using HTML Tables. But you know CSS also provides plenty of controls for positioning elements in a document. Since CSS is the wave of the future, why not learn and use CSS instead of tables for page layout purposes?
The foll... | [
{
"code": null,
"e": 2938,
"s": 2626,
"text": "Hope you are very comfortable with HTML tables and you are efficient in designing page layouts using HTML Tables. But you know CSS also provides plenty of controls for positioning elements in a document. Since CSS is the wave of the future, why not lea... |
C library function - isprint() | The C library function int isprint(int c) checks whether the passed character is printable. A printable character is a character that is not a control character.
Following is the declaration for isprint() function.
int isprint(int c);
c β This is the character to be checked.
c β This is the character to be checked.
Thi... | [
{
"code": null,
"e": 2169,
"s": 2007,
"text": "The C library function int isprint(int c) checks whether the passed character is printable. A printable character is a character that is not a control character."
},
{
"code": null,
"e": 2222,
"s": 2169,
"text": "Following is the dec... |
What are the rules to create a constructor in java? | A constructor is used to initialize an object when it is created. It is syntactically similar to a method. The difference is that the constructors have same name as their class and, have no return type.
There is no need to invoke constructors explicitly these are automatically invoked at the time of instantiation.
Whil... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "A constructor is used to initialize an object when it is created. It is syntactically similar to a method. The difference is that the constructors have same name as their class and, have no return type."
},
{
"code": null,
"e": 1378,
"s"... |
Using AWS Sagemaker and Lambda to Build a Serverless ML Platform | by Andrewngai | Towards Data Science | Most data enthusiasts know how to build and train a model, but how to deploy your model and make it useful in real-life sometimes can be a challenging issue for beginner data scientists. Luckily, there are many different platforms and tools available to help with model deployment. Amazon Sagemaker is one of my favorite... | [
{
"code": null,
"e": 781,
"s": 172,
"text": "Most data enthusiasts know how to build and train a model, but how to deploy your model and make it useful in real-life sometimes can be a challenging issue for beginner data scientists. Luckily, there are many different platforms and tools available to h... |
Machine Learning | An Introduction | by Gavin Edwards | Towards Data Science | Introduction
Terminology
Process
Background Theory
Machine Learning Approaches
Machine Learning is undeniably one of the most influential and powerful technologies in todayβs world. More importantly, we are far from seeing its full potential. Thereβs no doubt, it will continue to be making headlines for the foreseeable... | [
{
"code": null,
"e": 185,
"s": 172,
"text": "Introduction"
},
{
"code": null,
"e": 197,
"s": 185,
"text": "Terminology"
},
{
"code": null,
"e": 205,
"s": 197,
"text": "Process"
},
{
"code": null,
"e": 223,
"s": 205,
"text": "Background Theo... |
JIRA - Advanced Search | Apart from the type of searches explained in the previous chapter, JIRA also has a few advanced search options, which can be performed using the following three ways.
Using Field Reference
Using Keyword Reference
Using Operators Reference
These above-mentioned three ways have been explained in detail below.
The user sh... | [
{
"code": null,
"e": 2362,
"s": 2195,
"text": "Apart from the type of searches explained in the previous chapter, JIRA also has a few advanced search options, which can be performed using the following three ways."
},
{
"code": null,
"e": 2384,
"s": 2362,
"text": "Using Field Ref... |
Difference between Hard real time and Soft real time system - GeeksforGeeks | 10 May, 2020
Real time system is defined as a system in which job has deadline, job has to finished by the deadline (strictly finished). If a result is delayed, huge loss may happen.
1. Hard Real Time System :Hard real time is a system whose operation is incorrect whose result is not produce according to time constrain... | [
{
"code": null,
"e": 24832,
"s": 24804,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 25002,
"s": 24832,
"text": "Real time system is defined as a system in which job has deadline, job has to finished by the deadline (strictly finished). If a result is delayed, huge loss may h... |
Largest triangle that can be inscribed in a semicircle - GeeksforGeeks | 16 Mar, 2021
Given a semicircle with radius r, we have to find the largest triangle that can be inscribed in the semicircle, with base lying on the diameter.Examples:
Input: r = 5
Output: 25
Input: r = 8
Output: 64
Approach: From the figure, we can clearly understand the biggest triangle that can be inscribed in... | [
{
"code": null,
"e": 24963,
"s": 24935,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 25119,
"s": 24963,
"text": "Given a semicircle with radius r, we have to find the largest triangle that can be inscribed in the semicircle, with base lying on the diameter.Examples: "
},
... |
PDFBox - Adding Rectangles | This chapter teaches you how to create color boxes in a page of a PDF document.
You can add rectangular boxes in a PDF page using the addRect() method of the PDPageContentStream class.
Following are the steps to create rectangular shapes in a page of a PDF document.
Load an existing PDF document using the static metho... | [
{
"code": null,
"e": 2107,
"s": 2027,
"text": "This chapter teaches you how to create color boxes in a page of a PDF document."
},
{
"code": null,
"e": 2213,
"s": 2107,
"text": "You can add rectangular boxes in a PDF page using the addRect() method of the PDPageContentStream cla... |
Render ASP.NET TextBox as HTML5 Input type βNumberβ | To render ASP.NET TextBox as HTML5 input type βNumberβ, set type="number" directly on the textbox.
Let us see an example of ASP.NET TextBox β
<asp:TextBox runat="server" type="number" />
You can also use the following dynamically created the control β
TextBox tb = new TextBox();
tb.Attributes.Add("Type", "number"); | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "To render ASP.NET TextBox as HTML5 input type βNumberβ, set type=\"number\" directly on the textbox."
},
{
"code": null,
"e": 1204,
"s": 1161,
"text": "Let us see an example of ASP.NET TextBox β"
},
{
"code": null,
"e": 1... |
Python - Files I/O | This chapter covers all the basic I/O functions available in Python. For more functions, please refer to standard Python documentation.
The simplest way to produce output is using the print statement where you can pass zero or more expressions separated by commas. This function converts the expressions you pass into a ... | [
{
"code": null,
"e": 2380,
"s": 2244,
"text": "This chapter covers all the basic I/O functions available in Python. For more functions, please refer to standard Python documentation."
},
{
"code": null,
"e": 2625,
"s": 2380,
"text": "The simplest way to produce output is using th... |
Tryit Editor v3.7 | Tryit: no iframe border | [] |
GATE | GATE-CS-2017 (Set 1) | Question 64 - GeeksforGeeks | 31 Aug, 2021
The output of executing the following C program is ________.
# include
int total(int v)
{
static int count = 0;
while (v) {
count += v & 1;
v >>= 1;
}
return count;
}
void main()
{
static int x = 0;
int i = 5;
for (; i> 0; i--) {
x = x + total(i);
... | [
{
"code": null,
"e": 24460,
"s": 24432,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 24521,
"s": 24460,
"text": "The output of executing the following C program is ________."
},
{
"code": null,
"e": 24799,
"s": 24521,
"text": "# include \n\nint total(int v... |
Sum of Two Integers in Python | Suppose we have two integers a and b. Our task is to find the sum of these two integers. One constraint is that, we cannot use any operator like + or -. So if a = 5 and b = 7, the result will be 12.
To solve this, we will follow these steps β
For solving we will use the bitwise logical operators
If b = 0, then return a... | [
{
"code": null,
"e": 1261,
"s": 1062,
"text": "Suppose we have two integers a and b. Our task is to find the sum of these two integers. One constraint is that, we cannot use any operator like + or -. So if a = 5 and b = 7, the result will be 12."
},
{
"code": null,
"e": 1305,
"s": 12... |
Create a TreeMap in Java and add key-value pairs | A TreeMap cannot contain duplicate keys. TreeMap cannot contain the null key. However, It can have null values.
Let us first see how to create a TreeMap β
TreeMap<Integer,String> m = new TreeMap<Integer,String>();
Add some elements in the form of key-value pairs β
m.put(1,"India");
m.put(2,"US");
m.put(3,"Australia");
... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "A TreeMap cannot contain duplicate keys. TreeMap cannot contain the null key. However, It can have null values."
},
{
"code": null,
"e": 1217,
"s": 1174,
"text": "Let us first see how to create a TreeMap β"
},
{
"code": null,... |
Android | Creating a Calendar View app - GeeksforGeeks | 26 Jul, 2021
This article shows how to create an android application for displaying the Calendar using CalendarView. It also provides the selection of the current date and displaying the date. The setOnDateChangeListener Interface is used which provide onSelectedDayChange method.
onSelectedDayChange: In this method, w... | [
{
"code": null,
"e": 24231,
"s": 24203,
"text": "\n26 Jul, 2021"
},
{
"code": null,
"e": 24500,
"s": 24231,
"text": "This article shows how to create an android application for displaying the Calendar using CalendarView. It also provides the selection of the current date and disp... |
Bayesian Thinking for Linear Regression @ Kaggle Days Meetup | by Souradip Chakraborty | Towards Data Science | One of the major motivations of this research is the fact that there has been an increasing focus on Deep model interpretability with the advent of more and more complex models. More is the complexity of the model, difficult it gets to have interpretability with respect to the outputs and a lot of research is going in ... | [
{
"code": null,
"e": 537,
"s": 172,
"text": "One of the major motivations of this research is the fact that there has been an increasing focus on Deep model interpretability with the advent of more and more complex models. More is the complexity of the model, difficult it gets to have interpretabili... |
How do you get the font metrics in Java Swing? | To get the font metrics, use the FontMetrics class:
Graphics2D graphics = (Graphics2D) gp.create();
String str = getWidth() + "(Width) x (Height)" + getHeight();
FontMetrics m = graphics.getFontMetrics();
Now to display it:
int xValue = (getWidth() - m.stringWidth(str)) / 2;
int yValue = ((getHeight() - m.getHeight()) ... | [
{
"code": null,
"e": 1114,
"s": 1062,
"text": "To get the font metrics, use the FontMetrics class:"
},
{
"code": null,
"e": 1267,
"s": 1114,
"text": "Graphics2D graphics = (Graphics2D) gp.create();\nString str = getWidth() + \"(Width) x (Height)\" + getHeight();\nFontMetrics m = ... |
Java Examples - Infix to Postfix | How to convert an infix expression to postfix expression ?
Following example demonstrates how to convert an infix to postfix expression by using the concept of stack.
import java.io.IOException;
public class InToPost {
private Stack theStack;
private String input;
private String output = "";
public InToPos... | [
{
"code": null,
"e": 2127,
"s": 2068,
"text": "How to convert an infix expression to postfix expression ?"
},
{
"code": null,
"e": 2235,
"s": 2127,
"text": "Following example demonstrates how to convert an infix to postfix expression by using the concept of stack."
},
{
"... |
Check if a string is suffix of another - GeeksforGeeks | 03 May, 2021
Given two strings s1 and s2, check if s1 is a suffix of s2. Or in simple words, we need to find whether string s2 ends with string s1.
Examples :
Input : s1 = "geeks" and s2 = "geeksforgeeks"
Output : Yes
Input : s1 = "world", s2 = "my first code is hello world"
Output : Yes
Input : s1 = "geeks" and s2... | [
{
"code": null,
"e": 24615,
"s": 24587,
"text": "\n03 May, 2021"
},
{
"code": null,
"e": 24751,
"s": 24615,
"text": "Given two strings s1 and s2, check if s1 is a suffix of s2. Or in simple words, we need to find whether string s2 ends with string s1. "
},
{
"code": null,... |
Python Program For QuickSort On Doubly Linked List - GeeksforGeeks | 23 Dec, 2021
Following is a typical recursive implementation of QuickSort for arrays. The implementation uses last element as pivot.
Python3
"""A typical recursive implementation of Quicksort for array """ """ This function takes last element as pivot, places the pivot element at its correct position in sorted... | [
{
"code": null,
"e": 24854,
"s": 24826,
"text": "\n23 Dec, 2021"
},
{
"code": null,
"e": 24975,
"s": 24854,
"text": "Following is a typical recursive implementation of QuickSort for arrays. The implementation uses last element as pivot. "
},
{
"code": null,
"e": 24983... |
Style input type button with CSS | The input type button can be a submit button or reset button. With CSS, we can style any button on a web page.
You can try to run the following code to style input type button:
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
input[type=button] {
background-color: orange;
border... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "The input type button can be a submit button or reset button. With CSS, we can style any button on a web page."
},
{
"code": null,
"e": 1239,
"s": 1173,
"text": "You can try to run the following code to style input type button:"
},... |
How to run TestNG from command line? | TestNG allows to run the test suites from the command line (cmd). Here's a set of prerequisites that must be fulfilled in order to run a test suite from the command line β
testng.xml file should be created to define the test suites and the testing classes to execute.
testng.xml file should be created to define the test... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "TestNG allows to run the test suites from the command line (cmd). Here's a set of prerequisites that must be fulfilled in order to run a test suite from the command line β"
},
{
"code": null,
"e": 1330,
"s": 1234,
"text": "testng.xml... |
Peewee - Update Existing Records | Existing data can be modified by calling save() method on model instance as well as with update() class method.
Following example fetches a row from User table with the help of get() method and updates it by changing the value of age field.
row=User.get(User.name=="Amar")
print ("name: {} age: {}".format(row.name, row.... | [
{
"code": null,
"e": 2496,
"s": 2384,
"text": "Existing data can be modified by calling save() method on model instance as well as with update() class method."
},
{
"code": null,
"e": 2625,
"s": 2496,
"text": "Following example fetches a row from User table with the help of get()... |
Market Segmentation with R (PCA & K-means Clustering) β Part 1 | by Rebecca Yiu | Towards Data Science | For those who are new to the marketing field, hereβs a convenient Wikipedia-style explanation: market segmentation is a process used in marketing to divide customers into different groups (also called segments) according to their characteristics (demographics, shopping behavior, preference, etc.) Customers in the same ... | [
{
"code": null,
"e": 740,
"s": 171,
"text": "For those who are new to the marketing field, hereβs a convenient Wikipedia-style explanation: market segmentation is a process used in marketing to divide customers into different groups (also called segments) according to their characteristics (demograp... |
logical Operators - Java | Practice | GeeksforGeeks | Logical operators are used when we want to check the truth value of certain statements. Logical operators help us in checking multiple statements together for their truthness.
Here we will learn logical operators like AND(&&), OR(||), NOT(!). These operators produce either a true or a false as an output.
Example 1:
Inp... | [
{
"code": null,
"e": 454,
"s": 278,
"text": "Logical operators are used when we want to check the truth value of certain statements. Logical operators help us in checking multiple statements together for their truthness."
},
{
"code": null,
"e": 584,
"s": 454,
"text": "Here we wi... |
\ldots - Tex Command | \ldots - Used to draw lower dots symbol.
{ \ldots }
\ldots command is used to draw lower dots symbol.
x_1,\ldots,x_n
x1,...,xn
x_1,\ldots,x_n
x1,...,xn
x_1,\ldots,x_n
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike ... | [
{
"code": null,
"e": 8027,
"s": 7986,
"text": "\\ldots - Used to draw lower dots symbol."
},
{
"code": null,
"e": 8038,
"s": 8027,
"text": "{ \\ldots }"
},
{
"code": null,
"e": 8088,
"s": 8038,
"text": "\\ldots command is used to draw lower dots symbol."
},
... |
Create a Pandas DataFrame from a Numpy array and specify the index column and column headers - GeeksforGeeks | 21 Aug, 2020
This article demonstrates multiple examples to convert the Numpy arrays into Pandas Dataframe and to specify the index column and column headers for the data frame.
Example 1: In this example, the Pandas dataframe will be generated and proper names of index column and column headers are mentioned in the fu... | [
{
"code": null,
"e": 24701,
"s": 24673,
"text": "\n21 Aug, 2020"
},
{
"code": null,
"e": 24866,
"s": 24701,
"text": "This article demonstrates multiple examples to convert the Numpy arrays into Pandas Dataframe and to specify the index column and column headers for the data frame... |
How to get the absolute coordinates of a view in Android? | Before getting into example, we should know what is absolute coordinates. It means absolute position (x,y)of a view on window manager. This example demonstrate about how to get the absolute coordinates of a view.
Step 1 β Create a new project in Android Studio, go to File β New Project and fill all required details to ... | [
{
"code": null,
"e": 1275,
"s": 1062,
"text": "Before getting into example, we should know what is absolute coordinates. It means absolute position (x,y)of a view on window manager. This example demonstrate about how to get the absolute coordinates of a view."
},
{
"code": null,
"e": 140... |
Jackson Annotations - @JsonBackReference | @JsonManagedReferences and JsonBackReferences are used to display objects with parent child relationship. @JsonManagedReferences is used to refer to parent object and @JsonBackReferences is used to mark child objects.
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.u... | [
{
"code": null,
"e": 2693,
"s": 2475,
"text": "@JsonManagedReferences and JsonBackReferences are used to display objects with parent child relationship. @JsonManagedReferences is used to refer to parent object and @JsonBackReferences is used to mark child objects."
},
{
"code": null,
"e"... |
How to perform case-insensitive search in Oracle? | Problem:
You want to perform case-insensitive search in Oracle.
Solution
One way to deal with case issues is to use the built in UPPER and LOWER functions. These functions let you force case conversion on a string for a single operation
DECLARE
full_name1 VARCHAR2(30) := 'roger federer';
full_name2 VARCHAR2(30... | [
{
"code": null,
"e": 1071,
"s": 1062,
"text": "Problem:"
},
{
"code": null,
"e": 1126,
"s": 1071,
"text": "You want to perform case-insensitive search in Oracle."
},
{
"code": null,
"e": 1135,
"s": 1126,
"text": "Solution"
},
{
"code": null,
"e": 1... |
Practice | GeeksforGeeks | A computer science portal for geeks | Popular Company Tags
Amazon
Microsoft
Oracle
Samsung
Adobe
Synopsys
Infosys
Cisco
Wipro
Ola-Cabs
Morgan-Stanley
Goldman-Sachs
show more
Amazon
Microsoft
Oracle
Samsung
Adobe
Synopsys
Infosys
Cisco
Wipro
Ola-Cabs
Morgan-Stanley
Goldman-Sachs
Popular Topic Tags
Maths
Array
Dynamic-Programming
Greedy-Algorithm
Hashi... | [
{
"code": null,
"e": 310,
"s": 169,
"text": "\nPopular Company Tags\n\nAmazon\nMicrosoft\nOracle\nSamsung\nAdobe\nSynopsys\nInfosys\nCisco\nWipro\nOla-Cabs\nMorgan-Stanley\nGoldman-Sachs\nshow more\n\n"
},
{
"code": null,
"e": 317,
"s": 310,
"text": "Amazon"
},
{
"code": ... |
How to find by id in MongoDB? | To find by id in MongoDB, use the find() method as in the below syntax β
db.findByIdDemo.find({"_id" :yourObjectId});
To understand the above syntax, let us create a collection with documents β
> db.findByIdDemo.insertOne({"Value":10});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e07158925ddae1f53b621fc")
... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "To find by id in MongoDB, use the find() method as in the below syntax β"
},
{
"code": null,
"e": 1180,
"s": 1135,
"text": "db.findByIdDemo.find({\"_id\" :yourObjectId});"
},
{
"code": null,
"e": 1256,
"s": 1180,
... |
Bubble Charts. Plotly Express vs. Plotly.graph_objects | by DariΜo Weitz | Towards Data Science | Data visualization to tell a story is the most primitive form of human communication. There are cave drawings dating back to 44,000 BC, long before written communication dating back to about 3,000 BC.
According to the theory of evolution, we are a visual species: we evolved in such a way that an enormous amount of ment... | [
{
"code": null,
"e": 373,
"s": 172,
"text": "Data visualization to tell a story is the most primitive form of human communication. There are cave drawings dating back to 44,000 BC, long before written communication dating back to about 3,000 BC."
},
{
"code": null,
"e": 625,
"s": 373... |
Can you assign an Array of 100 elements to an array of 10 elements in Java? | In general, arrays are the containers that store multiple variables of the same datatype. These are of fixed size and the size is determined at the time of creation. Each element in an array is positioned by a number starting from 0.
You can access the elements of an array using name and position as β
System.out.printl... | [
{
"code": null,
"e": 1296,
"s": 1062,
"text": "In general, arrays are the containers that store multiple variables of the same datatype. These are of fixed size and the size is determined at the time of creation. Each element in an array is positioned by a number starting from 0."
},
{
"code... |
Check if a graphs has a cycle of odd length - GeeksforGeeks | 07 Nov, 2021
Given a graph, the task is to find if it has a cycle of odd length or not.
The idea is based on an important fact that a graph does not contain a cycle of odd length if and only if it is Bipartite, i.e., it can be colored with two colors.It is obvious that if a graph has an odd length cycle then it ca... | [
{
"code": null,
"e": 24906,
"s": 24878,
"text": "\n07 Nov, 2021"
},
{
"code": null,
"e": 24982,
"s": 24906,
"text": "Given a graph, the task is to find if it has a cycle of odd length or not. "
},
{
"code": null,
"e": 26788,
"s": 24986,
"text": "The idea is ba... |
Coin Change | DP-7 - GeeksforGeeks | 29 Mar, 2022
Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, how many ways can we make the change? The order of coins doesnβt matter.For example, for N = 4 and S = {1,2,3}, there are four solutions: {1,1,1,1},{1,1,2},{2,2},{1,3}. So out... | [
{
"code": null,
"e": 34692,
"s": 34664,
"text": "\n29 Mar, 2022"
},
{
"code": null,
"e": 35154,
"s": 34692,
"text": "Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, how many ways can we make the c... |
Automating File Movement on your system - GeeksforGeeks | 20 Jan, 2022
Imagine a situation like this: You have a folder containing files of multiple types like txt, mp3, etc. You decide to clean up this mess and organize them in a way that images are in one folder and songs in another. Will you be moving them as per file type, i.e. number of moves = number of files. No, Iβll ... | [
{
"code": null,
"e": 24928,
"s": 24900,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 25257,
"s": 24928,
"text": "Imagine a situation like this: You have a folder containing files of multiple types like txt, mp3, etc. You decide to clean up this mess and organize them in a way... |
Recursive product of summed digits JavaScript | We have to create a function that takes in any number of arguments (Number literals), adds them together, and returns the product of digits when the answer is only 1 digit long.
For example β
If the arguments are β
16, 34, 42
We have to first add them together β
16+34+42 = 92
And then keep multiplying the digits togeth... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "We have to create a function that takes in any number of arguments (Number literals), adds them together, and returns the product of digits when the answer is only 1 digit long."
},
{
"code": null,
"e": 1254,
"s": 1240,
"text": "For ... |
How to show all the options from a dropdown list with JavaScript? | To show all the options from a dropdown list, use the options property. The property allows you to get all the options with length property.
You can try to run the following code to get all the options from a drop-down list.
Live Demo
<!DOCTYPE html>
<html>
<body>
<form id="myForm">
<select id="select... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "To show all the options from a dropdown list, use the options property. The property allows you to get all the options with length property."
},
{
"code": null,
"e": 1287,
"s": 1203,
"text": "You can try to run the following code to ... |
Predict Customer Churn with R. For any service company that bills on a... | by Susan Li | Towards Data Science | For any service company that bills on a recurring basis, a key variable is the rate of churn. Harvard Business Review, March 2016
For just about any growing company in this βas-a-serviceβ world, two of the most important metrics are customer churn and lifetime value. Entrepreneur, February 2016
Customer churn occurs wh... | [
{
"code": null,
"e": 177,
"s": 47,
"text": "For any service company that bills on a recurring basis, a key variable is the rate of churn. Harvard Business Review, March 2016"
},
{
"code": null,
"e": 343,
"s": 177,
"text": "For just about any growing company in this βas-a-serviceβ... |
Boehmβs Software Maintenance Model - GeeksforGeeks | 16 Jun, 2020
In 1983, Boehm proposed a model for the maintenance process which was based upon the economic models and principles. Economics model is nothing new thing, economic decisions are a major building block of many processes and Boehmβs thesis was that economics model and principles could not only improve produc... | [
{
"code": null,
"e": 24868,
"s": 24840,
"text": "\n16 Jun, 2020"
},
{
"code": null,
"e": 25256,
"s": 24868,
"text": "In 1983, Boehm proposed a model for the maintenance process which was based upon the economic models and principles. Economics model is nothing new thing, economic... |
Convert comma separated string to array using JavaScript - GeeksforGeeks | 23 May, 2019
A comma-separated string can be converted to an array by 2 approaches:
Method 1: Using split() methodThe split() method is used to split a string on the basis of a separator. This separator could be defined as a comma to separate the string whenever a comma is encountered. This method returns an array of s... | [
{
"code": null,
"e": 24936,
"s": 24908,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 25007,
"s": 24936,
"text": "A comma-separated string can be converted to an array by 2 approaches:"
},
{
"code": null,
"e": 25270,
"s": 25007,
"text": "Method 1: Using spl... |
C# Program for Converting Hexadecimal String to Integer - GeeksforGeeks | 02 Jul, 2020
Given an hexadecimal number as input, we need to write a program to convert the given hexadecimal number into equivalent integer. To convert an hexadecimal string to integer, we have to use Convert.ToInt32() function to convert the values.
Syntax:
Convert.ToInt32(input_string, Input_base);
Here,
input_st... | [
{
"code": null,
"e": 25038,
"s": 25010,
"text": "\n02 Jul, 2020"
},
{
"code": null,
"e": 25278,
"s": 25038,
"text": "Given an hexadecimal number as input, we need to write a program to convert the given hexadecimal number into equivalent integer. To convert an hexadecimal string ... |
Python - Word Tokenization | Word tokenization is the process of splitting a large sample of text into words. This is a requirement in natural language processing tasks where each word needs to be captured and subjected
to further analysis like classifying and counting them for a particular sentiment etc. The Natural Language Tool kit(NLTK) is a l... | [
{
"code": null,
"e": 2958,
"s": 2529,
"text": "Word tokenization is the process of splitting a large sample of text into words. This is a requirement in natural language processing tasks where each word needs to be captured and subjected\nto further analysis like classifying and counting them for a ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.