title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Maximum items that can be bought from the cost Array based on given conditions
18 Feb, 2022 Given an array arr[] of size N where every index in the array represents the cost of buying an item and two numbers P, K. The task is to find the maximum number of items which can be bought such that: If some i-th object is bought from the array, the remaining amount becomes P – arr[i].We can buy K items,...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Feb, 2022" }, { "code": null, "e": 230, "s": 28, "text": "Given an array arr[] of size N where every index in the array represents the cost of buying an item and two numbers P, K. The task is to find the maximum number of items which...
How to Read and Print an Integer value in C
05 Dec, 2018 The given task is to take an integer as input from the user and print that integer in C language. In below program, the syntax and procedures to take the integer as input from the user is shown in C language. Steps: The user enters an integer value when asked.This value is taken from the user with the help...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Dec, 2018" }, { "code": null, "e": 152, "s": 54, "text": "The given task is to take an integer as input from the user and print that integer in C language." }, { "code": null, "e": 263, "s": 152, "text": "In belo...
How to get the standard deviation of an array of numbers using JavaScript ?
15 Jul, 2021 Given an array and the task is to calculate the standard deviation of it. Example: Input: [1, 2, 3, 4, 5] Output: 1.4142135623730951 Input: [23, 4, 6, 457, 65, 7, 45, 8] Output: 145.13565852332775 Please refer to Mean, Variance, and Standard Deviation for details. Mean is average of element. Where 0 <= ...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jul, 2021" }, { "code": null, "e": 102, "s": 28, "text": "Given an array and the task is to calculate the standard deviation of it." }, { "code": null, "e": 111, "s": 102, "text": "Example:" }, { "code": n...
How does a vector work in C++?
08 Oct, 2021 A Vectors in C++ can resize itself when more elements are added. It also allows deletion of elements. Below is a very basic idea when array becomes full and user wishes to add an item. 1) Create a bigger sized memory on heap memory (for example memory of double size). 2) Copy current memory elements to the...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Oct, 2021" }, { "code": null, "e": 951, "s": 53, "text": "A Vectors in C++ can resize itself when more elements are added. It also allows deletion of elements. Below is a very basic idea when array becomes full and user wishes to ad...
Turtle programming in Python
Turtle is a special feathers of Python. Using Turtle, we can easily draw in a drawing board. First we import the turtle module. Then create a window, next we create turtle object and using turtle method we can draw in the drawing board. # import turtle library import turtle my_window = turtle.Screen() my_...
[ { "code": null, "e": 1280, "s": 1187, "text": "Turtle is a special feathers of Python. Using Turtle, we can easily draw in a drawing board." }, { "code": null, "e": 1424, "s": 1280, "text": "First we import the turtle module. Then create a window, next we create turtle object and...
Click-Through Window in ElectronJS
03 Aug, 2020 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. In a co...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Aug, 2020" }, { "code": null, "e": 328, "s": 28, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable ...
Pivot and Unpivot in SQL
24 Jul, 2019 In SQL, Pivot and Unpivot are relational operators that are used to transform one table into another in order to achieve more simpler view of table. Conventionally we can say that Pivot operator converts the rows data of the table into the column data. The Unpivot operator does the opposite that is it tran...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Jul, 2019" }, { "code": null, "e": 400, "s": 54, "text": "In SQL, Pivot and Unpivot are relational operators that are used to transform one table into another in order to achieve more simpler view of table. Conventionally we can say...
SAS - Frequency Distributions
A frequency distribution is a table showing the frequency of the data points in a data set. Each entry in the table contains the frequency or count of the occurrences of values within a particular group or interval, and in this way, the table summarizes the distribution of values in the sample. SAS provides a procedure...
[ { "code": null, "e": 3013, "s": 2717, "text": "A frequency distribution is a table showing the frequency of the data points in a data set. Each entry in the table contains the frequency or count of the occurrences of values within a particular group or interval, and in this way, the table summarizes...
String formatting in Python
16 Aug, 2021 In this article, we will discuss how to format string Python. String formatting is the process of infusing things in the string dynamically and presenting the string. There are four different ways to perform string formatting:- Formatting with % Operator. Formatting with format() string method. Formatting ...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Aug, 2021" }, { "code": null, "e": 280, "s": 52, "text": "In this article, we will discuss how to format string Python. String formatting is the process of infusing things in the string dynamically and presenting the string. There a...
Shortest substring of a string containing all given words
01 Apr, 2019 Print the shortest sub-string of a string containing all the given words. In the first example, two solutions are possible: “world is here. this is a life full of ups” and “ups and downs. life is world”. Initialize HashMap with all the given words which are required to be searched and assign their values a...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Apr, 2019" }, { "code": null, "e": 126, "s": 52, "text": "Print the shortest sub-string of a string containing all the given words." }, { "code": null, "e": 256, "s": 126, "text": "In the first example, two solut...
How to count rows in MySQL table in PHP ?
26 May, 2021 PHP stands for hypertext preprocessor. MySQL is a database query language used to manage databases. In this article, we are going to discuss how to get the count of rows in a particular table present in the database using PHP and MySQL. Requirements: XAMPP Approach: By using PHP and MySQL, one can perform ...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 May, 2021" }, { "code": null, "e": 152, "s": 52, "text": "PHP stands for hypertext preprocessor. MySQL is a database query language used to manage databases." }, { "code": null, "e": 289, "s": 152, "text": "In th...
Working With Text In Python .docx Module - GeeksforGeeks
03 Jan, 2021 Prerequisite: Working with .docx module Word documents contain formatted text wrapped within three object levels. The Lowest level-run objects, middle level-paragraph objects, and highest level-document object. So, we cannot work with these documents using normal text editors. But, we can manipulate these ...
[ { "code": null, "e": 24317, "s": 24289, "text": "\n03 Jan, 2021" }, { "code": null, "e": 24357, "s": 24317, "text": "Prerequisite: Working with .docx module" }, { "code": null, "e": 24718, "s": 24357, "text": "Word documents contain formatted text wrapped with...
Perl Interview Questions
Dear readers, these Perl Programming Language Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Perl Programming Language. As per my experience good interviewers hardly plan to ask any particular question during...
[ { "code": null, "e": 2695, "s": 2220, "text": "Dear readers, these Perl Programming Language Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Perl Programming Language. As per my experience ...
Python os.removedirs() Method
Python method removedirs() removes dirs recursively. If the leaf directory is succesfully removed, removedirs tries to successively remove every parent directory displayed in path. Following is the syntax for removedirs() method − os.removedirs(path) path − This is the path of the directory, which needs to be removed....
[ { "code": null, "e": 2425, "s": 2244, "text": "Python method removedirs() removes dirs recursively. If the leaf directory is succesfully removed, removedirs tries to successively remove every parent directory displayed in path." }, { "code": null, "e": 2475, "s": 2425, "text": "F...
How to input multiple values from user in one line in C#?
Use a while loop to input multiple values from the user in one line. Let’s say you need to get the elements of a matrix. Get it using Console.ReadLine() as shown below − Console.Write("\nEnter elements - Matrix 1 : "); for (i = 0; i < m; i++) { for (j = 0; j < n; j++) { arr1[i, j] = Convert.ToInt16(Console.Rea...
[ { "code": null, "e": 1131, "s": 1062, "text": "Use a while loop to input multiple values from the user in one line." }, { "code": null, "e": 1232, "s": 1131, "text": "Let’s say you need to get the elements of a matrix. Get it using Console.ReadLine() as shown below −" }, { ...
Dart Programming - If Else Statement
An if can be followed by an optional else block. The else block will execute if the Boolean expression tested by the if block evaluates to false. Following is the syntax. if(boolean_expression){ // statement(s) will execute if the Boolean expression is true. } else { // statement(s) will execute if the Boolean...
[ { "code": null, "e": 2671, "s": 2525, "text": "An if can be followed by an optional else block. The else block will execute if the Boolean expression tested by the if block evaluates to false." }, { "code": null, "e": 2696, "s": 2671, "text": "Following is the syntax." }, { ...
WPF - Mouse
There are different types of mouse inputs such as MouseDown, MouseEnter, MouseLeave, etc. In the following example, we will handle some of the mouse inputs. Let’s create a new WPF project with the name WPFMouseInput. Let’s create a new WPF project with the name WPFMouseInput. Drag a rectangle and three Text blocks to a...
[ { "code": null, "e": 2177, "s": 2020, "text": "There are different types of mouse inputs such as MouseDown, MouseEnter, MouseLeave, etc. In the following example, we will handle some of the mouse inputs." }, { "code": null, "e": 2237, "s": 2177, "text": "Let’s create a new WPF pr...
Smallest alphabet greater than a given character - GeeksforGeeks
27 May, 2021 Given a list of sorted characters consisting of both Uppercase and Lowercase Alphabets and a particular target value, say K, the task is to find the smallest element in the list that is larger than K. Letters also wrap around. For example, if K = ‘z’ and letters = [‘A’, ‘r’, ‘z’], then the answer would be ...
[ { "code": null, "e": 24854, "s": 24826, "text": "\n27 May, 2021" }, { "code": null, "e": 25166, "s": 24854, "text": "Given a list of sorted characters consisting of both Uppercase and Lowercase Alphabets and a particular target value, say K, the task is to find the smallest eleme...
Check if a number can be expressed as power | Set 2 (Using Log) - GeeksforGeeks
14 Jun, 2021 Check if a number can be expressed as x^y (x raised to power y) Given a positive integer n, find if it can be expressed as x^y where y > 1 and x > 0. x and y both are integers.Examples : Input: n = 8 Output: true 8 can be expressed as 2^3 Input: n = 49 Output: true 49 can be expressed as 7^2 Input: ...
[ { "code": null, "e": 25282, "s": 25254, "text": "\n14 Jun, 2021" }, { "code": null, "e": 25471, "s": 25282, "text": "Check if a number can be expressed as x^y (x raised to power y) Given a positive integer n, find if it can be expressed as x^y where y > 1 and x > 0. x and y both ...
C++ Program to Convert Hexadecimal Number to Binary
Given with hexadecimal number as an input, the task is to convert that hexadecimal number into a binary number. Hexadecimal number in computers is represented with base 16 and binary number is represented with base 2 as it has only two binary digits 0 and 1 whereas hexadecimal number have digits starting from 0 – 15 in...
[ { "code": null, "e": 1174, "s": 1062, "text": "Given with hexadecimal number as an input, the task is to convert that hexadecimal number into a binary number." }, { "code": null, "e": 1461, "s": 1174, "text": "Hexadecimal number in computers is represented with base 16 and binary...
Format TimeSpan in C#
You can format a TimeSpan in the hh: mm: ss format in C#. Firstly, set the TimeSpan − TimeSpan ts = new TimeSpan(9, 15, 30); To format TimeSpan − {0:hh\\:mm\\:ss} The following is the code − Live Demo using System; using System.Linq; public class Demo { public static void Main() { TimeSpan ts = new TimeSpan(9...
[ { "code": null, "e": 1120, "s": 1062, "text": "You can format a TimeSpan in the hh: mm: ss format in C#." }, { "code": null, "e": 1148, "s": 1120, "text": "Firstly, set the TimeSpan −" }, { "code": null, "e": 1187, "s": 1148, "text": "TimeSpan ts = new TimeSpa...
Debugging in TensorFlow. How to Debug a TensorFlow Training... | by Chaim Rand | Towards Data Science
If debugging is the process of removing software bugs, then programming must be the process of putting them in.Edsger Dijkstra. From https://www.azquotes.com/quote/561997 In some of my previous posts (here, here, and here), I told you a bit about how my team at Mobileye, (officially known as Mobileye, an Intel Company)...
[ { "code": null, "e": 342, "s": 171, "text": "If debugging is the process of removing software bugs, then programming must be the process of putting them in.Edsger Dijkstra. From https://www.azquotes.com/quote/561997" }, { "code": null, "e": 668, "s": 342, "text": "In some of my p...
Array of Structures vs. Array within a Structure in C/C++ - GeeksforGeeks
16 Jul, 2020 A structure is a data type in C/C++ that allows a group of related variables to be treated as a single unit instead of separate entities. A structure may contain elements of different data types – int, char, float, double, etc. It may also contain an array as its member. Such an array is called an array wi...
[ { "code": null, "e": 23889, "s": 23861, "text": "\n16 Jul, 2020" }, { "code": null, "e": 24342, "s": 23889, "text": "A structure is a data type in C/C++ that allows a group of related variables to be treated as a single unit instead of separate entities. A structure may contain e...
ML From Scratch: Linear, Polynomial, and Regularized Regression Models | by Luke Newman | Towards Data Science
In this new series, I took it upon myself to improve my coding skills and habits by writing clean, reusable, well-documented code with test cases. This is the first part of the series where I implement Linear, Polynomial, Ridge, Lasso, and ElasticNet Regression from scratch in an object-oriented manner. We’ll start wit...
[ { "code": null, "e": 476, "s": 171, "text": "In this new series, I took it upon myself to improve my coding skills and habits by writing clean, reusable, well-documented code with test cases. This is the first part of the series where I implement Linear, Polynomial, Ridge, Lasso, and ElasticNet Regr...
How to Download a Specific Sheet by Name from a Google Spreadsheet as a CSV File | by billydharmawan | Towards Data Science
In the past two tutorials on Google Drive API with Python, we have covered how to obtain credentials here and search for a specific file in Google Drive by its name here. In this tutorial, we are going to learn how to download a specific Sheet by name from a Google Spreadsheet into a csv file. A use case for this: you ...
[ { "code": null, "e": 342, "s": 171, "text": "In the past two tutorials on Google Drive API with Python, we have covered how to obtain credentials here and search for a specific file in Google Drive by its name here." }, { "code": null, "e": 724, "s": 342, "text": "In this tutoria...
getbkcolor() function in C - GeeksforGeeks
23 Jan, 2018 The header file graphics.h contains getbkcolor() function which returns the current background color. Syntax : int getbkcolor(); As getbkcolor() returns an integer value corresponding to the background color, so below is the table for Color values.Colors Table : COLOR INT VALUES ------------...
[ { "code": null, "e": 24307, "s": 24279, "text": "\n23 Jan, 2018" }, { "code": null, "e": 24409, "s": 24307, "text": "The header file graphics.h contains getbkcolor() function which returns the current background color." }, { "code": null, "e": 24418, "s": 24409, ...
How to Create WhatsApp Stories View in Android? - GeeksforGeeks
21 Apr, 2021 Stories are now becoming one of the most seen features in many different apps such as WhatsApp, LinkedIn, Instagram, and many more. In this article, we will take a look at creating a similar type of view in our Android App. We will be building a simple application in which we will be creating a stories vi...
[ { "code": null, "e": 26407, "s": 26379, "text": "\n21 Apr, 2021" }, { "code": null, "e": 26632, "s": 26407, "text": "Stories are now becoming one of the most seen features in many different apps such as WhatsApp, LinkedIn, Instagram, and many more. In this article, we will take a...
Compare two floating-point numbers given in Scientific Notations - GeeksforGeeks
21 Feb, 2022 Given two strings N and M in the form of a * 10 b. The task is to compare given two floating-point numbers and print the smaller number and if both the numbers are equal then print Equal. 0<|a|<10^9 and -10^9<b<10^9. Example: N and M are two numbers with two parts: a1 is mantissa of N and a2 is mantiss...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n21 Feb, 2022" }, { "code": null, "e": 26260, "s": 26071, "text": "Given two strings N and M in the form of a * 10 b. The task is to compare given two floating-point numbers and print the smaller number and if both the numbers are...
Check if three consecutive elements in an array is identical in JavaScript
We are required to write a JavaScript function, say checkThree() that takes in an array and returns true if anywhere in the array there exists three consecutive elements that are identical (i.e., have the same value) otherwise it returns false. Therefore, let’s write the code for this function − const arr = ["g", "z", ...
[ { "code": null, "e": 1307, "s": 1062, "text": "We are required to write a JavaScript function, say checkThree() that takes in an array and\nreturns true if anywhere in the array there exists three consecutive elements that are identical\n(i.e., have the same value) otherwise it returns false." }, ...
CSS | stroke-miterlimit Property - GeeksforGeeks
23 Jan, 2020 The stroke-miterlimit property is used to represent the limit on the ratio of the miter length to the stroke-width, that is used to draw a miter join. This property is used in situations when the miter extends beyond the thickness of the line. If this limit specified is exceeded, the ‘miter’ type of the jo...
[ { "code": null, "e": 26541, "s": 26513, "text": "\n23 Jan, 2020" }, { "code": null, "e": 26876, "s": 26541, "text": "The stroke-miterlimit property is used to represent the limit on the ratio of the miter length to the stroke-width, that is used to draw a miter join. This propert...
A Better Approach to Text Summarization | by Vinicius Monteiro | Towards Data Science
There are several approaches to perform automatic text summarization. It can be done with supervised or unsupervised learning, with deep or only machine learning. And inside these categories, there are a wide variety of methods. In terms of types of summaries, there are two — extractive and abstractive. The program pre...
[ { "code": null, "e": 400, "s": 171, "text": "There are several approaches to perform automatic text summarization. It can be done with supervised or unsupervised learning, with deep or only machine learning. And inside these categories, there are a wide variety of methods." }, { "code": null...
Sign Magnitude notation
The sign-magnitude binary format is the simplest conceptual format. In this method of representing signed numbers, the most significant digit (MSD) takes on extra meaning. If the MSD is a 0, we can evaluate the number just as we would any normal unsigned integer. And also we shall treat the number as a positive one. If...
[ { "code": null, "e": 1234, "s": 1062, "text": "The sign-magnitude binary format is the simplest conceptual format. In this method of representing signed numbers, the most significant digit (MSD) takes on extra meaning." }, { "code": null, "e": 1380, "s": 1234, "text": "If the MSD...
React.js constructor() Method - GeeksforGeeks
08 Mar, 2021 A constructor is a method that is called automatically when we created an object from that class. It can manage initial initialization tasks such as defaulting certain object properties or sanity testing the arguments passed in. Simply placed, the constructor is a method that helps in the creation of objec...
[ { "code": null, "e": 26622, "s": 26594, "text": "\n08 Mar, 2021" }, { "code": null, "e": 26934, "s": 26622, "text": "A constructor is a method that is called automatically when we created an object from that class. It can manage initial initialization tasks such as defaulting cer...
AUC-ROC Curve - GeeksforGeeks
07 Jan, 2022 One important aspect of Machine Learning is model evaluation. You need to have some mechanism to evaluate your model. This is where these performance metrics come into the picture they give us a sense of how good a model is. If you are familiar with some basics of Machine Learning then you must have across...
[ { "code": null, "e": 25615, "s": 25587, "text": "\n07 Jan, 2022" }, { "code": null, "e": 25993, "s": 25615, "text": "One important aspect of Machine Learning is model evaluation. You need to have some mechanism to evaluate your model. This is where these performance metrics come ...
Least Square Regression Line - GeeksforGeeks
07 Jul, 2021 Given a set of coordinates in the form of (X, Y), the task is to find the least regression line that can be formed. In statistics, Linear Regression is a linear approach to model the relationship between a scalar response (or dependent variable), say Y, and one or more explanatory variables (or independen...
[ { "code": null, "e": 25963, "s": 25935, "text": "\n07 Jul, 2021" }, { "code": null, "e": 26080, "s": 25963, "text": "Given a set of coordinates in the form of (X, Y), the task is to find the least regression line that can be formed. " }, { "code": null, "e": 26519, ...
Streamlined Data Ingestion with Pandas - GeeksforGeeks
09 Jul, 2021 Data Ingestion is the process of, transferring data, from varied sources to an approach, where it can be analyzed, archived, or utilized by an establishment. The usual steps, involved in this process, are drawing out data, from its current place, converting the data, and, finally loading it, in a location,...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n09 Jul, 2021" }, { "code": null, "e": 26090, "s": 25555, "text": "Data Ingestion is the process of, transferring data, from varied sources to an approach, where it can be analyzed, archived, or utilized by an establishment. The u...
Number of squares of side length required to cover an N*M rectangle - GeeksforGeeks
20 May, 2021 Given three numbers , , . Find Number of squares of dimension required to cover rectangle. Note: It’s allowed to cover the surface larger than the rectangle, but the rectangle has to be covered. It’s not allowed to break a square. The sides of squares should be parallel to the sides of the rectangle. Exa...
[ { "code": null, "e": 26367, "s": 26339, "text": "\n20 May, 2021" }, { "code": null, "e": 26466, "s": 26367, "text": "Given three numbers , , . Find Number of squares of dimension required to cover rectangle. Note: " }, { "code": null, "e": 26564, "s": 26466, ...
HTML script Tag - GeeksforGeeks
17 Mar, 2022 The <script> tag in HTML is used to define the client-side script. The <script> tag contains the scripting statements, or it points to an external script file. The JavaScript is mainly used in form validation, dynamic changes of content, image manipulation, etc.Syntax: <script> Script Contents... </scrip...
[ { "code": null, "e": 24303, "s": 24275, "text": "\n17 Mar, 2022" }, { "code": null, "e": 24575, "s": 24303, "text": "The <script> tag in HTML is used to define the client-side script. The <script> tag contains the scripting statements, or it points to an external script file. The...
HTML Attributes - GeeksforGeeks
10 Dec, 2021 In this article, we will know HTML Attributes, their implementation through the examples. All HTML elements have attributes that will provide additional information about that particular element. It takes 2 parameters, ie, a name & a value which define the properties of the element and are placed inside th...
[ { "code": null, "e": 31645, "s": 31617, "text": "\n10 Dec, 2021" }, { "code": null, "e": 31967, "s": 31645, "text": "In this article, we will know HTML Attributes, their implementation through the examples. All HTML elements have attributes that will provide additional informatio...
UNIX_TIMESTAMP() function in MySQL - GeeksforGeeks
22 Dec, 2020 UNIX_TIMESTAMP() :This function in MySQL helps to return a Unix timestamp. We can define a Unix timestamp as the number of seconds that have passed since ‘1970-01-01 00:00:00’UTC. Even if you pass the current date/time or another specified date/time, the function will return a Unix timestamp based on that....
[ { "code": null, "e": 25513, "s": 25485, "text": "\n22 Dec, 2020" }, { "code": null, "e": 25821, "s": 25513, "text": "UNIX_TIMESTAMP() :This function in MySQL helps to return a Unix timestamp. We can define a Unix timestamp as the number of seconds that have passed since ‘1970-01-...
Python - Remove records if Key not present - GeeksforGeeks
21 Feb, 2022 Sometimes, while working with Python dictionaries, we can have a problem in which we need to remove all the dictionaries in which a particular key is not present. This kind of problem can have applications in many domains such as day-day programming and data domain. Let’s discuss certain ways in which this...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n21 Feb, 2022" }, { "code": null, "e": 25869, "s": 25537, "text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to remove all the dictionaries in which a particular key is not present. ...
Split a text column into two columns in Pandas DataFrame - GeeksforGeeks
26 Dec, 2018 Let’s see how to split a text column into two columns in Pandas DataFrame. Method #1 : Using Series.str.split() functions. Split Name column into two different columns. By default splitting is done on the basis of single space by str.split() function. # import Pandas as pdimport pandas as pd # create a n...
[ { "code": null, "e": 25821, "s": 25793, "text": "\n26 Dec, 2018" }, { "code": null, "e": 25896, "s": 25821, "text": "Let’s see how to split a text column into two columns in Pandas DataFrame." }, { "code": null, "e": 25944, "s": 25896, "text": "Method #1 : Usi...
Python | Pandas Dataframe.sample() - GeeksforGeeks
24 Apr, 2020 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas sample() is used to generate a sample random row or column from the function caller da...
[ { "code": null, "e": 26153, "s": 26125, "text": "\n24 Apr, 2020" }, { "code": null, "e": 26367, "s": 26153, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
Java String charAt() method with example - GeeksforGeeks
04 Dec, 2018 The Java String charAt() method returns the character at the specified index. The index value should lie between 0 and length()-1.Signature: public char charAt(int index) Parameter: index- Index of the character to be returned. Return: returns character at the specified position. Exception: String...
[ { "code": null, "e": 26048, "s": 26020, "text": "\n04 Dec, 2018" }, { "code": null, "e": 26189, "s": 26048, "text": "The Java String charAt() method returns the character at the specified index. The index value should lie between 0 and length()-1.Signature:" }, { "code": ...
Maximum value of expression (arr[i] + arr[j] * arr[k]) formed from a valid Triplet - GeeksforGeeks
18 Aug, 2021 Given an array arr[] of N integers. The task is to find the maximum value of (arr[i] + arr[j] * arr[k]) among every triplet (i, j, k) such that arr[i] < arr[j] < arr[k] and i < j < k. If there doesn’t exist any such triplets then print “-1′′. Examples: Input: arr[]={7, 9, 3, 8, 11, 10}Output: 106Explanati...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n18 Aug, 2021" }, { "code": null, "e": 26311, "s": 26067, "text": "Given an array arr[] of N integers. The task is to find the maximum value of (arr[i] + arr[j] * arr[k]) among every triplet (i, j, k) such that arr[i] < arr[j] < ...
JavaFX - Layout BorderPane
If we use the BorderPane, the nodes are arranged in the Top, Left, Right, Bottom and Center positions. The class named BorderPane of the package javafx.scene.layout represents the BorderPane. This class contains five properties, which include − bottom − This property is of Node type and it represents the node placed at...
[ { "code": null, "e": 2003, "s": 1900, "text": "If we use the BorderPane, the nodes are arranged in the Top, Left, Right, Bottom and Center positions." }, { "code": null, "e": 2092, "s": 2003, "text": "The class named BorderPane of the package javafx.scene.layout represents the Bo...
Prime or not in Python
Prime numbers play a central role in many e it applications like cryptography. So it is a necessity to check for prime numbers using Python programs in various applications. A prime number is a number which doesn't have any factors other than one and itself. Below will see programs that can find out if a given number i...
[ { "code": null, "e": 1398, "s": 1062, "text": "Prime numbers play a central role in many e it applications like cryptography. So it is a necessity to check for prime numbers using Python programs in various applications. A prime number is a number which doesn't have any factors other than one and it...
KnockoutJS - Text Binding
Text binding causes the associated DOM element to display the text value of the parameter. This is used in text-level DOM elements such as <span> or <em>. The text binding accepts any data type and parses it into String before rendering it. Syntax text: <binding-value> Parameters KO sets the element's content to a tex...
[ { "code": null, "e": 2093, "s": 1852, "text": "Text binding causes the associated DOM element to display the text value of the parameter. This is used in text-level DOM elements such as <span> or <em>. The text binding accepts any data type and parses it into String before rendering it." }, { ...
Find maximum average subarray of k length - GeeksforGeeks
12 Apr, 2022 Given an array with positive and negative numbers, find the maximum average subarray of given length. Example: Input: arr[] = {1, 12, -5, -6, 50, 3}, k = 4 Output: Maximum average subarray of length 4 begins at index 1. Maximum average is (12 - 5 - 6 + 50)/4 = 51/4 A Simple Solution is to run two...
[ { "code": null, "e": 40883, "s": 40855, "text": "\n12 Apr, 2022" }, { "code": null, "e": 40985, "s": 40883, "text": "Given an array with positive and negative numbers, find the maximum average subarray of given length." }, { "code": null, "e": 40995, "s": 40985, ...
BFS using STL for competitive coding - GeeksforGeeks
15 Nov, 2021 A STL based simple implementation of BFS using queue and vector in STL. The adjacency list is represented using vectors of vector. In BFS, we start with a node. 1) Create a queue and enqueue source into it. Mark source as visited. 2) While queue is not empty, do following a) Dequeue a vertex from...
[ { "code": null, "e": 24923, "s": 24895, "text": "\n15 Nov, 2021" }, { "code": null, "e": 25056, "s": 24923, "text": "A STL based simple implementation of BFS using queue and vector in STL. The adjacency list is represented using vectors of vector. " }, { "code": null, ...
HTML DOM getBoundingClientRect() method
The HTML DOM getBoundingClientRect() is used for returning an element size relative to the position of the viewport. It returns an object of type DOMRect which has eight properties left, top, right, bottom, x, y, width, height. The bounding rectangle position changes when the scrolling position changes. Following is th...
[ { "code": null, "e": 1367, "s": 1062, "text": "The HTML DOM getBoundingClientRect() is used for returning an element size relative to the position of the viewport. It returns an object of type DOMRect which has eight properties left, top, right, bottom, x, y, width, height. The bounding rectangle po...
Elixir - Operators
An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. There are a LOT of operators provided by elixir. They are divided in the following categories − Arithmetic operators Comparison operators Boolean operators Misc operators The following table shows all the arithmet...
[ { "code": null, "e": 2385, "s": 2182, "text": "An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. There are a LOT of operators provided by elixir. They are divided in the following categories −" }, { "code": null, "e": 2406, "s"...
Flip consecutive set bits starting from LSB of a given number - GeeksforGeeks
29 Mar, 2022 Given a positive integer N, the task is to find the number that can be obtained by flipping consecutive set bits starting from the LSB in the binary representation of N. Examples: Input: N = 39Output: 32Explanation:Binary representation of (39)10 = (100111)2After flipping all consecutive set bits starting ...
[ { "code": null, "e": 24689, "s": 24661, "text": "\n29 Mar, 2022" }, { "code": null, "e": 24859, "s": 24689, "text": "Given a positive integer N, the task is to find the number that can be obtained by flipping consecutive set bits starting from the LSB in the binary representation...
Active Learning on MNIST — Saving on Labeling | by Andy Bosyi | Towards Data Science
Active Learning is a semi-supervised technique that allows labeling less data by selecting the most important samples from the learning process (loss) standpoint It can have a huge impact on the project cost in the case when the amount of data is large and the labeling rate is high. For example, object detection and NL...
[ { "code": null, "e": 576, "s": 172, "text": "Active Learning is a semi-supervised technique that allows labeling less data by selecting the most important samples from the learning process (loss) standpoint It can have a huge impact on the project cost in the case when the amount of data is large an...
How to change the legend title in ggplot2 in R?
In ggplot2, by default the legend title is the title of the grouping column of the data frame. If we want to change that title then scale_color_discrete function. For example, if we have a data frame called df that contains two numerical columns x and y and one grouping column say group then the scatterplot with a diff...
[ { "code": null, "e": 1445, "s": 1062, "text": "In ggplot2, by default the legend title is the title of the grouping column of the data frame. If we want to change that title then scale_color_discrete function. For example, if we have a data frame called df that contains two numerical columns x and y...
Kotlin - Inheritance
Inheritance can be defined as the process where one class acquires the members (methods and properties) of another class. With the use of inheritance the information is made manageable in a hierarchical order. A class which inherits the members of other class is known as subclass (derived class or child class) and the ...
[ { "code": null, "e": 2635, "s": 2425, "text": "Inheritance can be defined as the process where one class acquires the members (methods and properties) of another class. With the use of inheritance the information is made manageable in a hierarchical order." }, { "code": null, "e": 2838, ...
How to create input Pop-Ups (Dialog) and get input from user in Java?
Use the JOptionPane.showInputDialog() to get input from user in a dialog box like “Which sports you play the most”, “What is your name”, etc. The following is an example to create input Pop-Ups (Dialog) and get input from user − package my; import javax.swing.JOptionPane; public class SwingDemo { public static void ...
[ { "code": null, "e": 1291, "s": 1062, "text": "Use the JOptionPane.showInputDialog() to get input from user in a dialog box like “Which sports you play the most”, “What is your name”, etc. The following is an example to create input Pop-Ups (Dialog) and get input from user −" }, { "code": nu...
Compute sum of digits in all numbers from 1 to n - GeeksforGeeks
14 May, 2021 Given a number n, find the sum of digits in all numbers from 1 to n. Examples: Input: n = 5 Output: Sum of digits in numbers from 1 to 5 = 15 Input: n = 12 Output: Sum of digits in numbers from 1 to 12 = 51 Input: n = 328 Output: Sum of digits in numbers from 1 to 328 = 3241 Naive Solution: A naive solu...
[ { "code": null, "e": 26375, "s": 26347, "text": "\n14 May, 2021" }, { "code": null, "e": 26455, "s": 26375, "text": "Given a number n, find the sum of digits in all numbers from 1 to n. Examples: " }, { "code": null, "e": 26654, "s": 26455, "text": "Input: n =...
Generate a string consisting of characters 'a' and 'b' that satisfy the given conditions - GeeksforGeeks
28 May, 2021 Given two integers A and B, the task is to generate and print a string str such that: str must only contain the characters ‘a’ and ‘b’.str has length A + B and the occurrence of character ‘a’ is equal to A and the occurrence of character ‘b’ is equal to BThe sub-strings “aaa” or “bbb” must not occur in s...
[ { "code": null, "e": 24854, "s": 24826, "text": "\n28 May, 2021" }, { "code": null, "e": 24942, "s": 24854, "text": "Given two integers A and B, the task is to generate and print a string str such that: " }, { "code": null, "e": 25165, "s": 24942, "text": "st...
Simulating the NBA: 2021–22 Season Results | by Jake Mitchell | Towards Data Science
With the start of the NBA 2021–22 Preseason approaching quickly, I set out to simulate every team’s 82 games, plus the postseason, to find the league’s best and worst performances. Similar to my NFL Season Simulation, all 30 teams have a rating. This year’s range starts at 1304 (Cleveland Cavaliers) and goes to 1752 (M...
[ { "code": null, "e": 352, "s": 171, "text": "With the start of the NBA 2021–22 Preseason approaching quickly, I set out to simulate every team’s 82 games, plus the postseason, to find the league’s best and worst performances." }, { "code": null, "e": 551, "s": 352, "text": "Simil...
Count of N digit numbers not having given prefixes - GeeksforGeeks
24 Nov, 2021 Given an integer N and a vector of strings prefixes[], the task is to calculate the total possible strings of length N from characters ‘0’ to ‘9’. such that the given prefixes cannot be used in any of the strings. Examples: Input: N = 3, prefixes = {“42”}Output: 990Explanation: All string except{“420”, “4...
[ { "code": null, "e": 25452, "s": 25424, "text": "\n24 Nov, 2021" }, { "code": null, "e": 25666, "s": 25452, "text": "Given an integer N and a vector of strings prefixes[], the task is to calculate the total possible strings of length N from characters ‘0’ to ‘9’. such that the gi...
Adding Legend to Multiple Line Plots with ggplot in R - GeeksforGeeks
23 Aug, 2021 In this article, we are going to see how can we add a legend to multiple line plots with ggplot in the R programming language. For a plot that contains more than one line plot, a legend is created by default if the col attribute is used. All the changes made in the appearance of the line plots will also r...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n23 Aug, 2021" }, { "code": null, "e": 25370, "s": 25242, "text": "In this article, we are going to see how can we add a legend to multiple line plots with ggplot in the R programming language. " }, { "code": null, "e"...
ReactJS – Component vs PureComponent
In this article, we are going to see the difference between Component and PureComponent. In ReactJS, Components are widely used to make an App more efficient and effective to use. ReactJS provides two different ways to use components – Component or PureComponent. It is the type of component which re-renders itself ever...
[ { "code": null, "e": 1242, "s": 1062, "text": "In this article, we are going to see the difference between Component and PureComponent. In ReactJS, Components are widely used to make an App more efficient and effective to use." }, { "code": null, "e": 1326, "s": 1242, "text": "Re...
Exploring the US Cars Dataset. Exploratory Data Analysis of the US... | by Sadrach Pierre, Ph.D. | Towards Data Science
The US Cars Dataset contains scraped data from the online North American Car auction. It contains information about 28 car brands for sale in the US. In this post, we will perform exploratory data analysis on the US Cars Dataset. The data can be found here. Let’s get started! First, let’s import the Pandas library impo...
[ { "code": null, "e": 429, "s": 171, "text": "The US Cars Dataset contains scraped data from the online North American Car auction. It contains information about 28 car brands for sale in the US. In this post, we will perform exploratory data analysis on the US Cars Dataset. The data can be found her...
Default exports vs Named exports in JavaScript.
There can be only one default export per file and we can assign it any name when importing it to the other file. However, there can be multiple named exports in a file and they are imported using the name that were used to export. Following is the code showing difference between default exports and named exports in Jav...
[ { "code": null, "e": 1293, "s": 1062, "text": "There can be only one default export per file and we can assign it any name when importing it to the other file. However, there can be multiple named exports in a file and they are imported using the name that were used to export." }, { "code": ...
Adaptive Moving Average in Python. | by Sofien Kaabar, CFA | Towards Data Science
Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details. Moving averages are ...
[ { "code": null, "e": 471, "s": 171, "text": "Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking profession...
How to create multiple styles inside a TextView in Android?
This example demonstrates how do I create multiple styles inside a TextView in android. 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"?>...
[ { "code": null, "e": 1150, "s": 1062, "text": "This example demonstrates how do I create multiple styles inside a TextView in android." }, { "code": null, "e": 1279, "s": 1150, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all require...
Constructing a nested JSON object in JavaScript
We have a special kind of string that contains characters in couple, like this − const str = "AABBCCDDEE"; We are required to construct an object based on this string which should look like this − const obj = { code: "AA", sub: { code: "BB", sub: { code: "CC", sub: { code...
[ { "code": null, "e": 1143, "s": 1062, "text": "We have a special kind of string that contains characters in couple, like this −" }, { "code": null, "e": 1169, "s": 1143, "text": "const str = \"AABBCCDDEE\";" }, { "code": null, "e": 1259, "s": 1169, "text": "We...
C# DateTime to add days to the current date
Firstly, get the current date. DateTime.Today Now, use AddDays() method to add days to the current date. Here, we are adding 10 days to the current date. DateTime.Today.AddDays(10) Let us see the complete code − Live Demo using System; using System.Linq; public class Demo { public static void Main() { Console...
[ { "code": null, "e": 1093, "s": 1062, "text": "Firstly, get the current date." }, { "code": null, "e": 1108, "s": 1093, "text": "DateTime.Today" }, { "code": null, "e": 1216, "s": 1108, "text": "Now, use AddDays() method to add days to the current date. Here, ...
What is compile time polymorphism in C#?
Polymorphism can be static or dynamic. In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time. The linking of a function with an object during compile time is called early binding. It is also called static binding. C# provides two techniq...
[ { "code": null, "e": 1239, "s": 1062, "text": "Polymorphism can be static or dynamic. In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time." }, { "code": null, "e": 1476, "s": 1239, "text": "The l...
What is Model Complexity? Compare Linear Regression to Decision Trees to Random Forests | by Susan Maina | Towards Data Science
A machine learning model is a system that learns the relationship between the input (independent) features and the target (dependent) feature of a dataset to be useful in making predictions in the future. To test the effectiveness of the model, a completely new similar dataset is introduced which only contains the inpu...
[ { "code": null, "e": 833, "s": 172, "text": "A machine learning model is a system that learns the relationship between the input (independent) features and the target (dependent) feature of a dataset to be useful in making predictions in the future. To test the effectiveness of the model, a complete...
Checked vs Unchecked exceptions in Java
A checked exception is an exception that occurs at the compile time, these are also called as compile time exceptions. These exceptions cannot simply be ignored at the time of compilation, the programmer should take care of (handle) these exceptions. For example, if you use FileReader class in your program to read data...
[ { "code": null, "e": 1313, "s": 1062, "text": "A checked exception is an exception that occurs at the compile time, these are also called as compile time exceptions. These exceptions cannot simply be ignored at the time of compilation, the programmer should take care of (handle) these exceptions." ...
C Number System - Decimal, Binary, Octal and Hex - 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 In this tutorial, we are going to learn about...
[ { "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, ...
Matplotlib.axes.Axes.update() in Python - GeeksforGeeks
30 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 24390, "s": 24362, "text": "\n30 Apr, 2020" }, { "code": null, "e": 24690, "s": 24390, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, ...
How to show legend elements horizontally in Matplotlib?
To show legend elements horizontally, we can take the following steps Set the figure size and adjust the padding between and around the subplots. Using plot() method, plot lines with the labels line1, line2 and line3. Place a legend on the figure using legend() method, with number of labels for ncol value in the argume...
[ { "code": null, "e": 1132, "s": 1062, "text": "To show legend elements horizontally, we can take the following steps" }, { "code": null, "e": 1208, "s": 1132, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": null, "e":...
How to develop a speech recognizer in android without Google API?
This example demonstrates how do I develop a speech recognizer in android without Google API. 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="ut...
[ { "code": null, "e": 1156, "s": 1062, "text": "This example demonstrates how do I develop a speech recognizer in android without Google API." }, { "code": null, "e": 1285, "s": 1156, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all r...
Writing to file in Python - GeeksforGeeks
25 Nov, 2019 Python provides inbuilt functions for creating, writing and reading files. There are two types of files that can be handled in python, normal text files and binary files (written in binary language, 0s and 1s). Text files: In this type of file, Each line of text is terminated with a special character calle...
[ { "code": null, "e": 41161, "s": 41133, "text": "\n25 Nov, 2019" }, { "code": null, "e": 41372, "s": 41161, "text": "Python provides inbuilt functions for creating, writing and reading files. There are two types of files that can be handled in python, normal text files and binary...
Find the highest 3 values in a dictionary in Python program
In this article, we will learn about the solution to the problem statement given below. Problem statement − We are given a dictionary, and we need to print the 3 highest value in a dictionary. There are two approaches as discussed below Live Demo # collections module from collections import Counter # Dictionary my_dic...
[ { "code": null, "e": 1150, "s": 1062, "text": "In this article, we will learn about the solution to the problem statement given below." }, { "code": null, "e": 1255, "s": 1150, "text": "Problem statement − We are given a dictionary, and we need to print the 3 highest value in a d...
md5sum - Unix, Linux Command
md5sum - compute and check MD5 message digest. md5sum [OPTION]... [FILE]... md5sum [OPTION]... [FILE]... md5sum produces for each input file a 128-bit "finger-print" or "message-digest" or it can check with the output of a former run whether the message digests are still the same (i.e. whether the files chang...
[ { "code": null, "e": 10624, "s": 10577, "text": "md5sum - compute and check MD5 message digest." }, { "code": null, "e": 10656, "s": 10624, "text": " md5sum [OPTION]... [FILE]... \n" }, { "code": null, "e": 10687, "s": 10656, "text": " md5sum [OPTION]... [FILE...
In-Depth Look At Data Structures In Julia | by Emmett Boudreau | Towards Data Science
Video For This article: Github repository Notebook In the previous iteration of the comprehensive Julia tutorials, we went over how to use Julia’s multiple dispatch with types and functions. Multiple dispatch is a simple system used to apply different types to different function calls under the same method argument. Th...
[ { "code": null, "e": 196, "s": 172, "text": "Video For This article:" }, { "code": null, "e": 214, "s": 196, "text": "Github repository" }, { "code": null, "e": 223, "s": 214, "text": "Notebook" }, { "code": null, "e": 571, "s": 223, "text"...
Classifying Movie Reviews With Natural Language Framework | by Anupam Chugh | Towards Data Science
Apple showed some good progress in the field of Natural Language Processing during WWDC 2019. They’ve brought enhancements in both Text Classification And Word Tagging, the two pillars of NLP. In this article, we’ll be discussing the advancements in Text Classification only, which deals with classifying input text to a...
[ { "code": null, "e": 365, "s": 172, "text": "Apple showed some good progress in the field of Natural Language Processing during WWDC 2019. They’ve brought enhancements in both Text Classification And Word Tagging, the two pillars of NLP." }, { "code": null, "e": 525, "s": 365, "t...
How to use PowerShell break statement in foreach loop?
You can use the PowerShell Break statement with the foreach loop as mentioned below. foreach($obj in (Get-ChildItem D:\Temp)){ Write-Output $obj if($obj.Name -eq "cars.xml"){Break} } Directory: D:\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 13-12-2019 ...
[ { "code": null, "e": 1147, "s": 1062, "text": "You can use the PowerShell Break statement with the foreach loop as mentioned below." }, { "code": null, "e": 1251, "s": 1147, "text": "foreach($obj in (Get-ChildItem D:\\Temp)){\n Write-Output $obj\n if($obj.Name -eq \"cars.xml\...
Google Maps - Zoom
You can increase or decrease the zoom value of a map by modifying the value of the zoom attribute in the the map options. We can increase or decrease the zoom value of the map using the zoom option. Given below is the syntax to change the zoom value of the current map. var mapOptions = { zoom:required zoom value }; ...
[ { "code": null, "e": 1954, "s": 1832, "text": "You can increase or decrease the zoom value of a map by modifying the value of the zoom attribute in the the map options." }, { "code": null, "e": 2102, "s": 1954, "text": "We can increase or decrease the zoom value of the map using ...
Animate Data Using Python. View Live Data With Just MatPlotLib | by Bruce Ironhardt | Towards Data Science
The goal of this guide is to show you how to update a graph in real-time. This can be used for a variety of applications like visualizing live data from sensors or tracking stock prices. In this tutorial, the data will be static but can easily be used on live data. You’ll, of course, need to have MatPlotlib and Pandas ...
[ { "code": null, "e": 359, "s": 172, "text": "The goal of this guide is to show you how to update a graph in real-time. This can be used for a variety of applications like visualizing live data from sensors or tracking stock prices." }, { "code": null, "e": 548, "s": 359, "text": ...
5 types of plots that will help you with time series analysis | by Eryk Lewinson | Towards Data Science
While starting any project related to time series (and not only), one of the very first steps is to visualize the data. We do so to inspect the data we are dealing with and learn something about it, for example: are there any patterns in the data? are there any unusual observations (outliers)? do the properties of the ...
[ { "code": null, "e": 384, "s": 172, "text": "While starting any project related to time series (and not only), one of the very first steps is to visualize the data. We do so to inspect the data we are dealing with and learn something about it, for example:" }, { "code": null, "e": 420, ...
12 Tips to Write Efficient SQL Queries - GeeksforGeeks
29 Jun, 2021 We all know the importance of a database in any application. This is the place where a users’ information gets stored and retrieved as per the requirements. SQL is the most popular query language which allows you to store and retrieve data from the database and perform operations. The performance of the da...
[ { "code": null, "e": 24930, "s": 24902, "text": "\n29 Jun, 2021" }, { "code": null, "e": 25347, "s": 24930, "text": "We all know the importance of a database in any application. This is the place where a users’ information gets stored and retrieved as per the requirements. SQL is...
Random Forests and One-Hot Encoding Introduction | by Ali Fakhry | Towards Data Science
Kaggle’s Titanic Machine Learning Dataset––a classic open-source introduction to the realm of machine learning. While this may be a beginner project, there is still a leaderboard (it is captivating to see yourself rank up as you continue to work on your code). To start, it is required that you download the “train.csv” ...
[ { "code": null, "e": 433, "s": 172, "text": "Kaggle’s Titanic Machine Learning Dataset––a classic open-source introduction to the realm of machine learning. While this may be a beginner project, there is still a leaderboard (it is captivating to see yourself rank up as you continue to work on your c...
Angular Material mat-tab-group - GeeksforGeeks
16 Feb, 2021 Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it you can enter the below command and can download it. mat-tab-group ...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n16 Feb, 2021" }, { "code": null, "e": 25103, "s": 24718, "text": "Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to in...
Consistently Beautiful Visualizations with Altair Themes | by Sergio Sánchez | Towards Data Science
If you are a data visualization fan or practitioner who also uses python you may have heard of Jake Vanderplas and Brian Granger's altair: "a declarative statistical visualization library for Python, based on Vega and Vega-lite". With Altair, you can spend more time understanding your data and its meaning. Altair’s API...
[ { "code": null, "e": 401, "s": 171, "text": "If you are a data visualization fan or practitioner who also uses python you may have heard of Jake Vanderplas and Brian Granger's altair: \"a declarative statistical visualization library for Python, based on Vega and Vega-lite\"." }, { "code": n...
C++ For Loop
When you know exactly how many times you want to loop through a block of code, use the for loop instead of a while loop: Statement 1 is executed (one time) before the execution of the code block. Statement 2 defines the condition for executing the code block. Statement 3 is executed (every time) after the code block h...
[ { "code": null, "e": 122, "s": 0, "text": "When you know exactly how many times you want to loop through a block of \ncode, use the for loop instead of a while loop:" }, { "code": null, "e": 197, "s": 122, "text": "Statement 1 is executed (one time) before the execution of the co...
Extract punctuation from the specified column of Dataframe using Regex - GeeksforGeeks
29 Dec, 2020 Prerequisite: Regular Expression in Python In this article, we will see how to extract punctuation used in the specified column of the Dataframe using Regex. Firstly, we are making regular expression that contains all the punctuation: [!”\$%&\'()*+,\-.\/:;=#@?\[\\\]^_`{|}~]* Then we are passing each row of...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n29 Dec, 2020" }, { "code": null, "e": 24255, "s": 24212, "text": "Prerequisite: Regular Expression in Python" }, { "code": null, "e": 24370, "s": 24255, "text": "In this article, we will see how to extract pun...
How to use JavaScript to load a webpage after 5 seconds?
Use the setTimeout() function in JavaScript to load a webpage after some interval. This function waits for some seconds and then loads the web page. You can try to run the following code to learn how to load a webpage after 5 seconds − Live Demo <!DOCTYPE html> <html> <body> <script> setTimeout(myURL,...
[ { "code": null, "e": 1211, "s": 1062, "text": "Use the setTimeout() function in JavaScript to load a webpage after some interval. This function waits for some seconds and then loads the web page." }, { "code": null, "e": 1298, "s": 1211, "text": "You can try to run the following ...
Build your own Whatsapp Chat Analyzer | by Samir Sheriff | Towards Data Science
Recently, after working on a number of projects from Udacity’s courses, I was on the look out for new, familiar data to analyze and what better place to start than one’s own phone. Whatsapp claims that nearly 55 billion messages are sent each day. The average user spends 195 minutes per week on Whatsapp, and is a membe...
[ { "code": null, "e": 353, "s": 172, "text": "Recently, after working on a number of projects from Udacity’s courses, I was on the look out for new, familiar data to analyze and what better place to start than one’s own phone." }, { "code": null, "e": 515, "s": 353, "text": "Whats...
400x times faster Pandas Data Frame Iteration | by Satyam Kumar | Towards Data Science
Data processing is and data wrangling is important components of a data science model development pipeline. A data scientist spends 80% of their time preparing the dataset to make it fit for modeling. Sometimes performing data wrangling and explorations for a large-sized dataset becomes a tedious task, and one is only ...
[ { "code": null, "e": 597, "s": 172, "text": "Data processing is and data wrangling is important components of a data science model development pipeline. A data scientist spends 80% of their time preparing the dataset to make it fit for modeling. Sometimes performing data wrangling and explorations f...
Counting Boolean function with some variables - GeeksforGeeks
28 Jun, 2019 Prerequisite – Canonical and Standard FormIn the below articles, we will see some varieties of problems with three variables. Statement-1:Counting the number of Boolean functions possible with two variables such that there are exactly two min terms.Explanation:As we already know that from two variables (a ...
[ { "code": null, "e": 24436, "s": 24408, "text": "\n28 Jun, 2019" }, { "code": null, "e": 24562, "s": 24436, "text": "Prerequisite – Canonical and Standard FormIn the below articles, we will see some varieties of problems with three variables." }, { "code": null, "e": ...
What is PreparedStatement in JDBC?
The PreparedStatement interface extends the Statement interface it represents a precompiled SQL statement which can be executed multiple times. This accepts parameterized SQL quires and you can pass 0 or more parameters to this query. Initially this statement uses place holders “?” instead of parameters, later on you c...
[ { "code": null, "e": 1297, "s": 1062, "text": "The PreparedStatement interface extends the Statement interface it represents a precompiled SQL statement which can be executed multiple times. This accepts parameterized SQL quires and you can pass 0 or more parameters to this query." }, { "cod...
Converting Strings to Numbers in C/C++ - GeeksforGeeks
11 May, 2021 There are two common methods to convert strings to numbers: Using stringstream class or sscanf() stringstream() : This is an easy way to convert strings of digits into ints, floats or doubles. Following is a sample program using a stringstream to convert string to int. CPP // A program to demonstrate th...
[ { "code": null, "e": 24199, "s": 24171, "text": "\n11 May, 2021" }, { "code": null, "e": 24261, "s": 24199, "text": "There are two common methods to convert strings to numbers: " }, { "code": null, "e": 24472, "s": 24261, "text": "Using stringstream class or ...
How to Block or Disable Normal User Logins in Linux? - GeeksforGeeks
22 Mar, 2021 Here we will see how to block or disable normal user logins in Linux. This is a good idea to prevent Normal users from connecting to your system. We will see how to block Normal user logins using /etc/nologin file. We are going to tell the users that what is actually happening by showing them a message. Th...
[ { "code": null, "e": 24561, "s": 24533, "text": "\n22 Mar, 2021" }, { "code": null, "e": 24866, "s": 24561, "text": "Here we will see how to block or disable normal user logins in Linux. This is a good idea to prevent Normal users from connecting to your system. We will see how t...
How to ensure that child class overrides a super class method in java?
A method which does not have body is known as abstract method. It contains only method signature with a semi colon and, an abstract keyword before it. public abstract myMethod(); To use an abstract method, you need to inherit it by extending its class and provide implementation (body) to it. If a class contains at leas...
[ { "code": null, "e": 1213, "s": 1062, "text": "A method which does not have body is known as abstract method. It contains only method signature with a semi colon and, an abstract keyword before it." }, { "code": null, "e": 1241, "s": 1213, "text": "public abstract myMethod();" ...
GATE | GATE-CS-2004 | Question 49 - GeeksforGeeks
14 Feb, 2018 A Unix-style i-node has 10 direct pointers and one single, one double and one triple indirect pointers. Disk block size is 1 Kbyte, disk block address is 32 bits, and 48-bit integers are used. What is the maximum possible file size ?(A) 224 bytes(B) 232 bytes(C) 234 bytes(D) 248 bytesAnswer: (C)Explanation...
[ { "code": null, "e": 24192, "s": 24164, "text": "\n14 Feb, 2018" }, { "code": null, "e": 24520, "s": 24192, "text": "A Unix-style i-node has 10 direct pointers and one single, one double and one triple indirect pointers. Disk block size is 1 Kbyte, disk block address is 32 bits, ...