title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to use your own color palettes with Seaborn | by Carolina Bento | Towards Data Science | The other day I was putting together a few visualizations with seaborn, which is a great, super easy-to-use library based on Matplotlib.
Even though I like seaborn’s default styles a lot, because their aesthetics are very clean, one thing I usually like to customize are the colors on the data points.
I tried looking ar... | [
{
"code": null,
"e": 309,
"s": 172,
"text": "The other day I was putting together a few visualizations with seaborn, which is a great, super easy-to-use library based on Matplotlib."
},
{
"code": null,
"e": 474,
"s": 309,
"text": "Even though I like seaborn’s default styles a lot... |
How to get the width of the Tkinter widget? | Tkinter widgets are supposed to be present in the Tkinter application window. All the widgets can be configured and customized by using predefined properties or functions.
To get the width of a widget in a Tkinter application, we can use winfo_width() method. It returns the width of the widget which can be printed late... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "Tkinter widgets are supposed to be present in the Tkinter application window. All the widgets can be configured and customized by using predefined properties or functions."
},
{
"code": null,
"e": 1399,
"s": 1234,
"text": "To get the... |
Python Interactive Network Visualization Using NetworkX, Plotly, and Dash | by Jiahui Wang | Towards Data Science | They say a graph is more than a thousand words. I totally agree with it. I would prefer to look at a network graph, rather than reading through lengthy documents, to understand a complicated network pattern.
This post is about a Python interactive network visualization application. In the first half, it covers the netw... | [
{
"code": null,
"e": 380,
"s": 172,
"text": "They say a graph is more than a thousand words. I totally agree with it. I would prefer to look at a network graph, rather than reading through lengthy documents, to understand a complicated network pattern."
},
{
"code": null,
"e": 697,
"... |
Express.js | app.param() Function - GeeksforGeeks | 18 Jun, 2020
The app.param() function is used to add the callback triggers to route parameters. It is commonly used to check for the existence of the data requested related to the route parameter.
Syntax:
app.param([name], callback)
Parameters:
name: It is the name of the parameter or an array of them.callback: It is a... | [
{
"code": null,
"e": 25092,
"s": 25064,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 25276,
"s": 25092,
"text": "The app.param() function is used to add the callback triggers to route parameters. It is commonly used to check for the existence of the data requested related to ... |
PyCaret: Better Machine Learning with Python | by Dario Radečić | Towards Data Science | Pick up any data science book or online course. I’d bet the only machine learning library covered is Scikit-Learn. It’s a great place to start, don’t get me wrong, but in 2020 we need something a bit more automated and time-saving.
That’s where PyCaret comes in. It’s a relatively new library, so there are not too many ... | [
{
"code": null,
"e": 403,
"s": 171,
"text": "Pick up any data science book or online course. I’d bet the only machine learning library covered is Scikit-Learn. It’s a great place to start, don’t get me wrong, but in 2020 we need something a bit more automated and time-saving."
},
{
"code": n... |
wxPython - Dockable Windows | wxAui is an Advanced User Interface library incorporated in wxWidgets API. Wx.aui.AuiManager the central class in AUI framework.
AuiManager manages the panes associated with a particular frame using each panel’s information in wx.aui.AuiPanelInfo object. Let us learn about various properties of PanelInfo object control... | [
{
"code": null,
"e": 2011,
"s": 1882,
"text": "wxAui is an Advanced User Interface library incorporated in wxWidgets API. Wx.aui.AuiManager the central class in AUI framework."
},
{
"code": null,
"e": 2234,
"s": 2011,
"text": "AuiManager manages the panes associated with a partic... |
TypeScript - Union | TypeScript 1.4 gives programs the ability to combine one or two types. Union types are a powerful way to express a value that can be one of the several types. Two or more data types are combined using the pipe symbol (|) to denote a Union Type. In other words, a union type is written as a sequence of types separated by... | [
{
"code": null,
"e": 2384,
"s": 2048,
"text": "TypeScript 1.4 gives programs the ability to combine one or two types. Union types are a powerful way to express a value that can be one of the several types. Two or more data types are combined using the pipe symbol (|) to denote a Union Type. In other... |
From raw data to web app deployment with ATOM and Streamlit | by Marco vd Boom | Towards Data Science | In this article we will show you how to create a simple web app, capable of helping a data scientist to quickly perform a basic analysis on the performance of predictive models on a provided dataset. The user will be able to upload his own dataset (as a .csv file), and tweak the machine learning pipeline in two ways: s... | [
{
"code": null,
"e": 688,
"s": 172,
"text": "In this article we will show you how to create a simple web app, capable of helping a data scientist to quickly perform a basic analysis on the performance of predictive models on a provided dataset. The user will be able to upload his own dataset (as a .... |
How can I do "cd" in Python? | You can change directory or cd in Python using the os module. It takes as input the relative/absolute path of the directory you want to switch to.
>>> import os
>>> os.chdir('my_folder') | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "You can change directory or cd in Python using the os module. It takes as input the relative/absolute path of the directory you want to switch to."
},
{
"code": null,
"e": 1249,
"s": 1209,
"text": ">>> import os\n>>> os.chdir('my_fol... |
Convex Hull | Set 2 (Graham Scan) | 08 Jul, 2022
Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of it.
Chapters
descriptions off, selected
captions settings, opens captions settings dialog
captions off, selected
English
This is a modal window.
Beginning of dialog window. Escape ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 183,
"s": 52,
"text": "Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of it. "
},
{
"code": null,
"e": 192,
... |
Java.lang.ThreadLocal Class in Java | 26 May, 2022
This class provides thread-local variables. These variables differ from their normal counterparts in that each thread that accesses one (via its get or set method) has its own, independently initialized copy of the variable. Basically, it is another way to achieve thread safety apart from writing immutable... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 May, 2022"
},
{
"code": null,
"e": 791,
"s": 28,
"text": "This class provides thread-local variables. These variables differ from their normal counterparts in that each thread that accesses one (via its get or set method) has its own... |
Variables and Keywords in C | 16 Jun, 2022
A variable in simple terms is a storage place that has some memory allocated to it. Basically, a variable is used to store some form of data. Different types of variables require different amounts of memory, different type of memory locations, and some specific set of operations that can be applied to them... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 362,
"s": 52,
"text": "A variable in simple terms is a storage place that has some memory allocated to it. Basically, a variable is used to store some form of data. Different types of variables req... |
Understanding “volatile” qualifier in C | Set 2 (Examples) | 17 Jun, 2022
The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined by the compiler.
Objects declared as volatile are omitted from optimization because their values can be changed by code outside the scope of current code at... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 222,
"s": 54,
"text": "The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined by the compiler. "
},
... |
How to Validate a Password using Regular Expressions in Android? | 11 Dec, 2020
Regular Expression basically defines a search pattern, pattern matching, or string matching. It is present in java.util.regex package. Java Regex API provides 1 interface and 3 classes. They are the following:
MatchResult InterfaceMatcher classPattern classPatternSyntaxException class
MatchResult Interface... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 238,
"s": 28,
"text": "Regular Expression basically defines a search pattern, pattern matching, or string matching. It is present in java.util.regex package. Java Regex API provides 1 interface and ... |
How to create matrix and vector from CSV file in R ? | 21 Apr, 2021
In this article, we will discuss how to convert CSV data into a matrix and a vector in R Programming Language. We will use read.csv() function to load the csv file:
Syntax: object=read.csv(path)
where, path is the location of a file present in our local system.
Matrix: Matrix is a two-dimensional data stru... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 193,
"s": 28,
"text": "In this article, we will discuss how to convert CSV data into a matrix and a vector in R Programming Language. We will use read.csv() function to load the csv file:"
},
{
... |
Node.js Web Server | 13 Oct, 2021
What is Node.js ?Node.js is an open source server environment. Node.js uses JavaScript on the server. The task of a web server is to open a file on the server and return the content to the client.
Node.js has a built-in module called HTTP, which allows Node.js to transfer data over the Hyper Text Transfer ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 225,
"s": 28,
"text": "What is Node.js ?Node.js is an open source server environment. Node.js uses JavaScript on the server. The task of a web server is to open a file on the server and return the c... |
Python | ToDo GUI Application using Tkinter | 10 Jun, 2021
Prerequisites : Introduction to tkinter
Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. In this article, we will learn how to create a ToDo GUI application using Tkinter, with a step-by-step guide.
To crea... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 69,
"s": 28,
"text": "Prerequisites : Introduction to tkinter "
},
{
"code": null,
"e": 328,
"s": 69,
"text": "Python offers multiple options for developing GUI (Graphical User I... |
LISP - Loops | There may be a situation, when you need to execute a block of code numbers of times. A loop statement allows us to execute a statement or group of statements multiple times and following is the general form of a loop statement in most of the programming languages.
LISP provides the following types of constructs to hand... | [
{
"code": null,
"e": 2325,
"s": 2060,
"text": "There may be a situation, when you need to execute a block of code numbers of times. A loop statement allows us to execute a statement or group of statements multiple times and following is the general form of a loop statement in most of the programming... |
Need help in deleting duplicate columns from a table in MySQL? | To delete duplicate columns, use DELETE with INNER JOIN. Following is the syntax −
delete tbl1 from yourTableName anyAliasName1
inner join yourTableName anyAliasName2
where
yourCondition1
and
yourCondition2
Let us create a table −
mysql> create table demo14
−> (
−> id int not null auto_increment primary key,
−> name va... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "To delete duplicate columns, use DELETE with INNER JOIN. Following is the syntax −"
},
{
"code": null,
"e": 1269,
"s": 1145,
"text": "delete tbl1 from yourTableName anyAliasName1\ninner join yourTableName anyAliasName2\nwhere\nyourCo... |
Simple Customer Segmentation Using RFM Analysis | by Chi Nguyen | Towards Data Science | RFM analysis is a customer behavior segmentation technique. Based on customers’ historical transactions, RFM analysis focuses on 3 main aspects of customers’ transactions: recency, frequency and purchase amount. Understanding these behaviors will allow businesses to cluster different customers into groups.
Here is the ... | [
{
"code": null,
"e": 479,
"s": 171,
"text": "RFM analysis is a customer behavior segmentation technique. Based on customers’ historical transactions, RFM analysis focuses on 3 main aspects of customers’ transactions: recency, frequency and purchase amount. Understanding these behaviors will allow bu... |
How to display hidden element when a user starts typing using JavaScript ? - GeeksforGeeks | 17 Sep, 2019
Method 1: Using the oninput attribute to input element: The oninput attribute is fired whenever user starts typing to the input element. This can be used to detect changes in a <input> or <textarea> element. A function is called with the value of this attribute.
This function selects the hidden element and... | [
{
"code": null,
"e": 24763,
"s": 24735,
"text": "\n17 Sep, 2019"
},
{
"code": null,
"e": 25026,
"s": 24763,
"text": "Method 1: Using the oninput attribute to input element: The oninput attribute is fired whenever user starts typing to the input element. This can be used to detect... |
CSS | Web Fonts - GeeksforGeeks | 21 Feb, 2019
Web fonts are used to allow the use of fonts in CSS, which are not installed on the local system. After choosing the not installed font, just include the font file on the web server and it will be automatically downloaded when needed.
Syntax:
@font-face {
font details
}
Types of Font Formats: There ar... | [
{
"code": null,
"e": 28072,
"s": 28044,
"text": "\n21 Feb, 2019"
},
{
"code": null,
"e": 28307,
"s": 28072,
"text": "Web fonts are used to allow the use of fonts in CSS, which are not installed on the local system. After choosing the not installed font, just include the font file... |
Private Variables in Python | In actual terms (practically), python doesn’t have anything called private member variable in Python. However, adding two underlines(__) at the beginning makes a variable or a method private is the convention used by most python code.
Let’s understand this concept through an example −
Live Demo
class myClass:
__pri... | [
{
"code": null,
"e": 1297,
"s": 1062,
"text": "In actual terms (practically), python doesn’t have anything called private member variable in Python. However, adding two underlines(__) at the beginning makes a variable or a method private is the convention used by most python code."
},
{
"cod... |
AWT WindowEvent Class | The object of this class represents the change in state of a window.This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when focus is transfered into or out of the Window.
Following is the declaration for java.awt.event.WindowEvent class:... | [
{
"code": null,
"e": 2001,
"s": 1747,
"text": "The object of this class represents the change in state of a window.This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when focus is transfered into or out of the Window.... |
How do I terminate a thread in C++11? | Here we will see, how to terminate the threads in C++11. The C++11 does not have direct method to terminate the threads.
The std::future<void> can be used to the thread, and it should exit when value in future is available. If we want to send a signal to the thread, but does not send the actual value, we can pass void ... | [
{
"code": null,
"e": 1183,
"s": 1062,
"text": "Here we will see, how to terminate the threads in C++11. The C++11 does not have direct method to terminate the threads."
},
{
"code": null,
"e": 1395,
"s": 1183,
"text": "The std::future<void> can be used to the thread, and it shoul... |
Sum of all N digit palindrome numbers - GeeksforGeeks | 24 Feb, 2022
Given a number N. The task is to find the sum of all N-digit palindromes.
Examples:
Input: N = 2
Output: 495
Explanation:
11 + 22 + 33 + 44 + 55 +
66 + 77 + 88 + 99
= 495
Input: N = 7
Output: 49500000000
Naive Approach:Run a loop from 10^(n-1) to 10^(n) – 1 and check when the current number is palindro... | [
{
"code": null,
"e": 24477,
"s": 24449,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 24551,
"s": 24477,
"text": "Given a number N. The task is to find the sum of all N-digit palindromes."
},
{
"code": null,
"e": 24562,
"s": 24551,
"text": "Examples: "
},... |
How to close active/current tab without closing the browser in Selenium-Python? | We can close the active/current tab without closing the browser in Selenium webdriver in Python. By default, Selenium has control over the parent window. Once another browser window is opened, we have to explicitly shift the control with the help of switch_to.window method.
The handle id of the browser window where we ... | [
{
"code": null,
"e": 1337,
"s": 1062,
"text": "We can close the active/current tab without closing the browser in Selenium webdriver in Python. By default, Selenium has control over the parent window. Once another browser window is opened, we have to explicitly shift the control with the help of swi... |
Region Prioritisation Algorithm: Helping Business identify Top Regions to serve | by Abhishek Mungoli | Towards Data Science | In the present time, due to the Pandemic, many suppliers and online services are serving selected regions which could be the major sales contributors. Also, when someone starts a new business they want to focus on a few regions which can draw maximum profit and think of expansion later. Many times suppliers at times cl... | [
{
"code": null,
"e": 556,
"s": 172,
"text": "In the present time, due to the Pandemic, many suppliers and online services are serving selected regions which could be the major sales contributors. Also, when someone starts a new business they want to focus on a few regions which can draw maximum prof... |
Count duplicates records in MySQL table? | You can use if() from MySQL to count duplicate records. The syntax is as follows −
SELECT yourColumnName, COUNT(*) AS anyVariableName, IF (
COUNT(*)>1,"Duplicate Records", "Not Duplicate records") as anyVariableName FROM yourTableName group by yourColumnName;
To understand the above syntax, let us create a table. Th... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "You can use if() from MySQL to count duplicate records. The syntax is as follows −"
},
{
"code": null,
"e": 1325,
"s": 1145,
"text": "SELECT yourColumnName, COUNT(*) AS anyVariableName, IF (\n COUNT(*)>1,\"Duplicate Records\", \"No... |
Deploying Sklearn Machine Learning on AWS Lambda with SAM | by GreekDataGuy | Towards Data Science | Building machine learning models on a laptop is straightforward.
Deploying models so they’re available in production is not.
Productionizing ML is hard. Not only does it combine SDE, ML and DevOps. But there’s no one-size fits all approach.
A company’s setup depends on a combination of business requirements, financial ... | [
{
"code": null,
"e": 237,
"s": 172,
"text": "Building machine learning models on a laptop is straightforward."
},
{
"code": null,
"e": 297,
"s": 237,
"text": "Deploying models so they’re available in production is not."
},
{
"code": null,
"e": 413,
"s": 297,
"... |
What is the base class for all data types in C#.NET? | Object is the base class for all data types in C#. The Object Type is the ultimate base class for all data types in C# Common Type System (CTS). The object is an alias for System.Object class.
When a value type is converted to object type, it is called boxing and on the other hand, when an object type is converted to a... | [
{
"code": null,
"e": 1255,
"s": 1062,
"text": "Object is the base class for all data types in C#. The Object Type is the ultimate base class for all data types in C# Common Type System (CTS). The object is an alias for System.Object class."
},
{
"code": null,
"e": 1418,
"s": 1255,
... |
What is Conditional Operator (?:) in JavaScript? | The conditional operator or ternary operator first evaluates an expression for a true or false value and then executes one of the two given statements depending upon the result of the evaluation.
You can try to run the following code to understand how Ternary Operator works in JavaScript −
<html>
<body>
<scrip... | [
{
"code": null,
"e": 1258,
"s": 1062,
"text": "The conditional operator or ternary operator first evaluates an expression for a true or false value and then executes one of the two given statements depending upon the result of the evaluation."
},
{
"code": null,
"e": 1353,
"s": 1258,... |
VB.Net - OpenFileDialog Control | The OpenFileDialog control prompts the user to open a file and allows the user to select a file to open. The user can check if the file exists and then open it. The OpenFileDialog control class inherits from the abstract class FileDialog.
If the ShowReadOnly property is set to True, then a read-only check box appears i... | [
{
"code": null,
"e": 2539,
"s": 2300,
"text": "The OpenFileDialog control prompts the user to open a file and allows the user to select a file to open. The user can check if the file exists and then open it. The OpenFileDialog control class inherits from the abstract class FileDialog."
},
{
... |
Get value of an input box using Selenium (Python) | We can get the value of an input box with Selenium webdriver. The get_attribute() method is capable of obtaining the value we have entered in an input box. To get the value, we have to pass value as a parameter to the method.
First of all, we have to identify the input box with the help of any of the locators like id, ... | [
{
"code": null,
"e": 1288,
"s": 1062,
"text": "We can get the value of an input box with Selenium webdriver. The get_attribute() method is capable of obtaining the value we have entered in an input box. To get the value, we have to pass value as a parameter to the method."
},
{
"code": null,... |
Binary Heap - GeeksforGeeks | 15 Nov, 2021
A Binary Heap is a Binary Tree with following properties.1) It’s a complete tree (All levels are completely filled except possibly the last level and the last level has all keys as left as possible). This property of Binary Heap makes them suitable to be stored in an array.
2) A Binary Heap is either Min H... | [
{
"code": null,
"e": 39115,
"s": 39087,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 39390,
"s": 39115,
"text": "A Binary Heap is a Binary Tree with following properties.1) It’s a complete tree (All levels are completely filled except possibly the last level and the last leve... |
Anomaly Detection with Time Series Forecasting | by adithya krishnan | Towards Data Science | Hi, this is a follow-up article on anomaly detection(Link to the previous article: https://medium.com/myntra-engineering/anomaly-detection-with-isolation-forest-visualization-23cd75c281e2 where we did anomaly detection using unsupervised learning).
Here we will see about detecting anomalies with time series forecasting... | [
{
"code": null,
"e": 420,
"s": 171,
"text": "Hi, this is a follow-up article on anomaly detection(Link to the previous article: https://medium.com/myntra-engineering/anomaly-detection-with-isolation-forest-visualization-23cd75c281e2 where we did anomaly detection using unsupervised learning)."
},
... |
Cows of FooLand | Practice | GeeksforGeeks | Cows in the FooLand city are interesting animals. One of their specialities is related to producing offsprings. A cow in FooLand produces its first calve (female calf) at the age of two years and proceeds to produce other calves (one female calf a year).
Now the farmer Harold wants to know how many animals would he hav... | [
{
"code": null,
"e": 481,
"s": 226,
"text": "Cows in the FooLand city are interesting animals. One of their specialities is related to producing offsprings. A cow in FooLand produces its first calve (female calf) at the age of two years and proceeds to produce other calves (one female calf a year)."... |
Building a blood cell classification model using Keras and tfjs | by Narasimha Prasanna HN | Towards Data Science | AI is really a major game changer. Applications of AI are huge and it’s scope in the field of healthcare is vast. Advanced AI tools can assist doctors and lab technicians to diagnose diseases with better accuracy, for example a doctor in Nigeria can use this tool to identify a disease from a sample of blood which he is... | [
{
"code": null,
"e": 869,
"s": 172,
"text": "AI is really a major game changer. Applications of AI are huge and it’s scope in the field of healthcare is vast. Advanced AI tools can assist doctors and lab technicians to diagnose diseases with better accuracy, for example a doctor in Nigeria can use t... |
Cross-Validation in R programming - GeeksforGeeks | 15 Sep, 2021
The major challenge in designing a machine learning model is to make it work accurately on the unseen data. To know whether the designed model is working fine or not, we have to test it against those data points which were not present during the training of the model. These data points will serve the purpo... | [
{
"code": null,
"e": 26503,
"s": 26475,
"text": "\n15 Sep, 2021"
},
{
"code": null,
"e": 27582,
"s": 26503,
"text": "The major challenge in designing a machine learning model is to make it work accurately on the unseen data. To know whether the designed model is working fine or n... |
What is an Intent in Android? | An intent is to perform an action on the screen. It is mostly used to start activity, send broadcast receiver,start services and send message between two activities. There are two intents available in android as Implicit Intents and Explicit Intents. Here is a sample example to start new activity with old activity.
Ste... | [
{
"code": null,
"e": 1379,
"s": 1062,
"text": "An intent is to perform an action on the screen. It is mostly used to start activity, send broadcast receiver,start services and send message between two activities. There are two intents available in android as Implicit Intents and Explicit Intents. He... |
Python - Get list of files in directory sorted by size - GeeksforGeeks | 28 Jul, 2021
In this article, we will be looking at the different approaches to get the list of the files in the given directory in the sorted order of size in the Python programming language.
The two different approaches to get the list of files in a directory are sorted by size is as follows:
Using os.listdir() funct... | [
{
"code": null,
"e": 25691,
"s": 25663,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 25871,
"s": 25691,
"text": "In this article, we will be looking at the different approaches to get the list of the files in the given directory in the sorted order of size in the Python progr... |
Enhance your Power BI report with images on axis | by Nikola Ilic | Towards Data Science | If you follow my stories on a regular basis, you should have noticed that I’m often trying to enhance built-in visualizations provided by Power BI. In my opinion, there are certain scenarios when you, as a Power BI developer, can go above and beyond, and push your users’ experience to a new level, using simple tricks.
... | [
{
"code": null,
"e": 491,
"s": 171,
"text": "If you follow my stories on a regular basis, you should have noticed that I’m often trying to enhance built-in visualizations provided by Power BI. In my opinion, there are certain scenarios when you, as a Power BI developer, can go above and beyond, and ... |
ReactJS - State Management API | As we learned earlier, React component maintains and expose it’s state through this.state of the component. React provides a single API to maintain state in the component. The API is this.setState(). It accepts either a JavaScript object or a function that returns a JavaScript object.
The signature of the setState API ... | [
{
"code": null,
"e": 2319,
"s": 2033,
"text": "As we learned earlier, React component maintains and expose it’s state through this.state of the component. React provides a single API to maintain state in the component. The API is this.setState(). It accepts either a JavaScript object or a function t... |
Building a row from a dictionary in PySpark - GeeksforGeeks | 18 Jul, 2021
In this article, we will discuss how to build a row from the dictionary in PySpark
For doing this, we will pass the dictionary to the Row() method.
Syntax:
Syntax: Row(dict)
Example 1: Build a row with key-value pair (Dictionary) as arguments.
Here, we are going to pass the Row with Dictionary
Syntax: Row... | [
{
"code": null,
"e": 24390,
"s": 24362,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 24473,
"s": 24390,
"text": "In this article, we will discuss how to build a row from the dictionary in PySpark"
},
{
"code": null,
"e": 24538,
"s": 24473,
"text": "For doi... |
Predefined Identifier __func__ in C - GeeksforGeeks | 24 Sep, 2021
Before we start discussing about __func__, let us write some code snippet and anticipate the output:
C
#include <stdio.h> int main(){ printf("%s",__func__); return 0;}
Will it compile error due to not defining variable __func__ ? Well, as you would have guessed so far, it won’t give any compile error ... | [
{
"code": null,
"e": 26049,
"s": 26021,
"text": "\n24 Sep, 2021"
},
{
"code": null,
"e": 26151,
"s": 26049,
"text": "Before we start discussing about __func__, let us write some code snippet and anticipate the output: "
},
{
"code": null,
"e": 26153,
"s": 26151,
... |
Program for longest common directory path in Python | In this tutorial, we are going to write a program that finds the longest common path from the given list of paths. Let's see an example to understand the problem statement more clearly.
paths = ['home/tutorialspoint/python', 'home/tutorialspoint/c', 'home/tutorialspoint/javascript',
'home/tutorialspoint/react', 'home/t... | [
{
"code": null,
"e": 1248,
"s": 1062,
"text": "In this tutorial, we are going to write a program that finds the longest common path from the given list of paths. Let's see an example to understand the problem statement more clearly."
},
{
"code": null,
"e": 1405,
"s": 1248,
"text... |
Double-Tap on a View in Android - GeeksforGeeks | 18 Feb, 2021
Detecting a double tap i.e. whenever the user double taps on any view how it is detected and according to the view a response can be added corresponding to it. Here an example is shown in which the double tap on the view is detected and corresponding to it a response is added in the form of toast.
Step 1: ... | [
{
"code": null,
"e": 25110,
"s": 25082,
"text": "\n18 Feb, 2021"
},
{
"code": null,
"e": 25409,
"s": 25110,
"text": "Detecting a double tap i.e. whenever the user double taps on any view how it is detected and according to the view a response can be added corresponding to it. Her... |
Add packages to Anaconda environment in Python | There are multiple ways by which we can add packages to our existing anaconda environment.
Method 1 − One common approach is to use the “Anaconda Navigator” to add packages to our anaconda environment. Once “Ananconda Navigator” is opened, home page will look something like −
Go to Environments tab just below the Home ... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "There are multiple ways by which we can add packages to our existing anaconda environment."
},
{
"code": null,
"e": 1339,
"s": 1153,
"text": "Method 1 − One common approach is to use the “Anaconda Navigator” to add packages to our an... |
Uri.EscapeDataString(String) Method in C# | The Uri.EscapeDataString() method in C# converts a string to its escaped representation.
Following is the syntax −
public static string EscapeDataString (string str);
Above, the string str is the string to escape.
Let us now see an example to implement the Uri.EscapeDataString() method −
using System;
public class Demo... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "The Uri.EscapeDataString() method in C# converts a string to its escaped representation."
},
{
"code": null,
"e": 1177,
"s": 1151,
"text": "Following is the syntax −"
},
{
"code": null,
"e": 1229,
"s": 1177,
"text... |
How to append data into a CSV file using PowerShell? | To append the data into CSV file you need to use –Append parameter while exporting to the CSV file.
In the below example, we have created a CSV file
$outfile = "C:\temp\Outfile.csv"
$newcsv = {} | Select "EMP_Name","EMP_ID","CITY" | Export-Csv $outfile
$csvfile = Import-Csv $outfile
$csvfile.Emp_Name = "Charles"
$csvfi... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "To append the data into CSV file you need to use –Append parameter while exporting to the CSV file."
},
{
"code": null,
"e": 1211,
"s": 1162,
"text": "In the below example, we have created a CSV file"
},
{
"code": null,
"... |
How to install c c compiler and development tools in ubuntu | Many of the Linux engineers are required to do some general programming languages to automate their normal tasks This article explains how to install C and C++ compilers and it’s development tools (build-essential) and related packages such as make,libc-dev,dpkg-dev, etc in Linux.
Before getting into installation part,... | [
{
"code": null,
"e": 1344,
"s": 1062,
"text": "Many of the Linux engineers are required to do some general programming languages to automate their normal tasks This article explains how to install C and C++ compilers and it’s development tools (build-essential) and related packages such as make,libc... |
Minimum time to finish tasks without skipping two consecutive - GeeksforGeeks | 01 Feb, 2022
Given time taken by n tasks. Find the minimum time needed to finish the tasks such that skipping of tasks is allowed, but can not skip two consecutive tasks.Examples :
Input : arr[] = {10, 5, 7, 10}
Output : 12
We can skip first and last task and
finish these task in 12 min.
Input : arr[] = {10}
Output :... | [
{
"code": null,
"e": 25020,
"s": 24992,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 25189,
"s": 25020,
"text": "Given time taken by n tasks. Find the minimum time needed to finish the tasks such that skipping of tasks is allowed, but can not skip two consecutive tasks.Exampl... |
Types of CSS (Cascading Style Sheet) - GeeksforGeeks | 30 Jul, 2021
Cascading Style Sheet(CSS) is used to set the style in web pages that contain HTML elements. It sets the background color, font-size, font-family, color, ... etc property of elements on a web page. There are three types of CSS which are given below:
Inline CSS
Internal or Embedded CSS
External CSS
Inline... | [
{
"code": null,
"e": 23172,
"s": 23144,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 23424,
"s": 23172,
"text": "Cascading Style Sheet(CSS) is used to set the style in web pages that contain HTML elements. It sets the background color, font-size, font-family, color, ... etc p... |
Express.js – app.use() Method | The app.use() method mounts or puts the specified middleware functions at the specified path. This middleware function will be executed only when the base of the requested path matches the defined path.
app.use([path], callback, [callback])
path − This is the path for which the middleware function is invoked. A path ca... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "The app.use() method mounts or puts the specified middleware functions at the specified path. This middleware function will be executed only when the base of the requested path matches the defined path."
},
{
"code": null,
"e": 1303,
"s"... |
Implementation of sleep (system call) in OS - GeeksforGeeks | 15 Dec, 2021
In this article, we are going to learn about sleep (system call) in operating systems. In the computer science field, a system call is a mechanism that provides the interface between a process and the operating system. In simple terms, it is basically a method in which a computer program requests a service... | [
{
"code": null,
"e": 25737,
"s": 25709,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 26086,
"s": 25737,
"text": "In this article, we are going to learn about sleep (system call) in operating systems. In the computer science field, a system call is a mechanism that provides th... |
Matcher quoteReplacement(String) method in Java with Examples - GeeksforGeeks | 26 Nov, 2018
The quoteReplacement(String string) method of Matcher Class is used to get the replacement String literal of the String passed as parameter. This String literal acts as the parameter for the replace methods. Hence quoteReplacement() method acts as the intermediate in the replace methods.
Syntax:
public sta... | [
{
"code": null,
"e": 25565,
"s": 25537,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 25854,
"s": 25565,
"text": "The quoteReplacement(String string) method of Matcher Class is used to get the replacement String literal of the String passed as parameter. This String literal ac... |
Calendar get() method in Java with Examples - GeeksforGeeks | 14 Feb, 2019
The get(int field_value) method of Calendar class is used to return the value of the given calendar field in the parameter.
Syntax:
public int get(int field)
Parameters: The method takes one parameter field_value of integer type and refers to the calendar whose value is needed to be returned.
Return Value:... | [
{
"code": null,
"e": 25729,
"s": 25701,
"text": "\n14 Feb, 2019"
},
{
"code": null,
"e": 25853,
"s": 25729,
"text": "The get(int field_value) method of Calendar class is used to return the value of the given calendar field in the parameter."
},
{
"code": null,
"e": 25... |
HTTP headers | Pragma - GeeksforGeeks | 28 Nov, 2019
The Pragma is a no-cache general-type CORS-safe listed response header field in an HTTP/1.0 header which is intended to use in the request-response chain. A pragma header meant to prevent the client from caching the response, pragma means the browsers to tell the server and any intermediate caches that it ... | [
{
"code": null,
"e": 25767,
"s": 25739,
"text": "\n28 Nov, 2019"
},
{
"code": null,
"e": 26140,
"s": 25767,
"text": "The Pragma is a no-cache general-type CORS-safe listed response header field in an HTTP/1.0 header which is intended to use in the request-response chain. A pragma... |
Matcher toMatchResult() method in Java with Examples - GeeksforGeeks | 26 Nov, 2018
The toMatchResult() method of Matcher Class is used to get the current result state of this Matcher.
Syntax:
public MatchResult toMatchResult()
Parameters: This method do not takes any parameter.
Return Value: This method returns a MatchResult with the current match result state of this Matcher.
Below exa... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 25326,
"s": 25225,
"text": "The toMatchResult() method of Matcher Class is used to get the current result state of this Matcher."
},
{
"code": null,
"e": 25334,
"s": 25326,
... |
jQuery BlockUI Plugin - GeeksforGeeks | 10 Jul, 2020
The BlockUI plugin is used to simulate synchronous AJAX behavior. When activated, it stops the user from interacting with the page until it is deactivated. The DOM (Document Object Model) is added with elements to give a nice user-interface look and feel along with behavior.
Download Link:
<script src="htt... | [
{
"code": null,
"e": 26896,
"s": 26868,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 27172,
"s": 26896,
"text": "The BlockUI plugin is used to simulate synchronous AJAX behavior. When activated, it stops the user from interacting with the page until it is deactivated. The DOM... |
fullscreen_window driver method - Selenium Python - GeeksforGeeks | 27 Apr, 2021
Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n27 Apr, 2021"
},
{
"code": null,
"e": 26446,
"s": 25537,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi... |
PostgreSQL - Drop Procedure - GeeksforGeeks | 28 Aug, 2020
In PostgreSQL, the drop procedure statement removes a stored procedure.
Syntax:
drop procedure [if exists] procedure_name (argument_list)
[cascade | restrict]
Let’s analyze the above syntax:
First, specify the name (procedure_name) of the stored procedure that you want to remove after the drop procedure k... | [
{
"code": null,
"e": 25367,
"s": 25339,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 25439,
"s": 25367,
"text": "In PostgreSQL, the drop procedure statement removes a stored procedure."
},
{
"code": null,
"e": 25527,
"s": 25439,
"text": "Syntax:\ndrop proc... |
How to close model from a button using vue.js ? - GeeksforGeeks | 18 Jan, 2021
This article will tell us about how to close a modal from a button using vue.js. To close a modal using vue.js you can use the click event i.e. @click to trigger change in modal visibility. So, whenever the close button is pressed the @click method will trigger the function associated with the action ( her... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 26875,
"s": 26545,
"text": "This article will tell us about how to close a modal from a button using vue.js. To close a modal using vue.js you can use the click event i.e. @click to trigger c... |
How to create a TilePane using JavaFX? | Once you create all the required nodes for your application you can arrange them using a layout. Where a layout is a process of calculating the position of objects in the given space. JavaFX provides various layouts in the javafx.scene.layout package.
In this layout, the nodes are arranged as a grid of uniformly sized ... | [
{
"code": null,
"e": 1314,
"s": 1062,
"text": "Once you create all the required nodes for your application you can arrange them using a layout. Where a layout is a process of calculating the position of objects in the given space. JavaFX provides various layouts in the javafx.scene.layout package."
... |
Assembly - STOS Instruction | The STOS instruction copies the data item from AL (for bytes - STOSB), AX (for words - STOSW) or EAX (for doublewords - STOSD) to the destination string, pointed to by ES:DI in memory.
The following example demonstrates use of the LODS and STOS instruction to convert an upper case string to its lower case value −
secti... | [
{
"code": null,
"e": 2270,
"s": 2085,
"text": "The STOS instruction copies the data item from AL (for bytes - STOSB), AX (for words - STOSW) or EAX (for doublewords - STOSD) to the destination string, pointed to by ES:DI in memory."
},
{
"code": null,
"e": 2400,
"s": 2270,
"text"... |
Nested-if statement in Python - GeeksforGeeks | 26 Mar, 2020
There come situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations arise in programming also where we need to make some decisions and based on these decisions we will execute the next block of code. This is done with the... | [
{
"code": null,
"e": 24317,
"s": 24289,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24671,
"s": 24317,
"text": "There come situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations arise in ... |
Program to find list of all possible combinations of letters of a given string s in Python | Suppose we have a string s. We have to find all possible combinations of letters of s. If there are two strings with same set of characters, then show the lexicographically smallest of them. And one constraint is each character in s are unique.
So, if the input is like s = "pqr", then the output will be ['r', 'qr', 'q'... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "Suppose we have a string s. We have to find all possible combinations of letters of s. If there are two strings with same set of characters, then show the lexicographically smallest of them. And one constraint is each character in s are unique."
},
... |
Elo Rating Algorithm - GeeksforGeeks | 20 Mar, 2018
Elo Rating Algorithm is widely used rating algorithm that is used to rank players in many competitive games.Players with higher ELO rating have a higher probability of winning a game than a player with lower ELO rating. After each game, ELO rating of players is updated. If a player with higher ELO rating w... | [
{
"code": null,
"e": 24396,
"s": 24368,
"text": "\n20 Mar, 2018"
},
{
"code": null,
"e": 24875,
"s": 24396,
"text": "Elo Rating Algorithm is widely used rating algorithm that is used to rank players in many competitive games.Players with higher ELO rating have a higher probabilit... |
Convert birth date to age in Pandas - GeeksforGeeks | 02 Feb, 2021
In this article, we are going to convert birthdate into the age in pandas dataframe. We will be using Pandas and datetime package to convert birth date into age. To convert the date of birth to age first we convert the given date to the right format by using strptime() function and then subtract current ye... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n02 Feb, 2021"
},
{
"code": null,
"e": 24771,
"s": 24292,
"text": "In this article, we are going to convert birthdate into the age in pandas dataframe. We will be using Pandas and datetime package to convert birth date into age. T... |
Stop Waiting! Start using Async and Await! | by Simon Hawe | Towards Data Science | The most important ingredient for us data scientists is data. How do we get the data we need into our programs? We do that through some I/O-operations like querying a database, loading files from our disk, or downloading data from the web through HTTP requests. These I/O-operations can take quite some time where we jus... | [
{
"code": null,
"e": 1559,
"s": 172,
"text": "The most important ingredient for us data scientists is data. How do we get the data we need into our programs? We do that through some I/O-operations like querying a database, loading files from our disk, or downloading data from the web through HTTP re... |
Python 3 - Membership Operators Example | Python’s membership operators test for membership in a sequence, such as strings, lists, or tuples. There are two membership operators as explained below −
#!/usr/bin/python3
a = 10
b = 20
list = [1, 2, 3, 4, 5 ]
if ( a in list ):
print ("Line 1 - a is available in the given list")
else:
print ("Line 1 - a is n... | [
{
"code": null,
"e": 2496,
"s": 2340,
"text": "Python’s membership operators test for membership in a sequence, such as strings, lists, or tuples. There are two membership operators as explained below −"
},
{
"code": null,
"e": 2984,
"s": 2496,
"text": "#!/usr/bin/python3\n\na = ... |
Count array elements whose perfect squares are present in the given array - GeeksforGeeks | 13 Jan, 2022
Given an array arr[], the task is to find the count of array elements whose squares are already present in the array.
Examples:
Input: arr[] = {2, 4, 5, 20, 16}Output: 2Explanation:{2, 4} has their squares {4, 16} present in the array.
Input: arr[] = {1, 30, 3, 8, 64}Output: 2Explanation:{1, 8} has their s... | [
{
"code": null,
"e": 25048,
"s": 25020,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 25166,
"s": 25048,
"text": "Given an array arr[], the task is to find the count of array elements whose squares are already present in the array."
},
{
"code": null,
"e": 25176,
... |
Creating a Data Science Python Package Using Jupyter Notebook | by Abid Ali Awan | Towards Data Science | Have you wondered how Python packages like Scikit-learn, pandas, and NumPy are built? They are all based on Object Orient Programming (OOP) to create complex and easy-to-use packages. For a data scientist it's a necessity to learn OOP so they can use it in development of production ready products.
We are going to use t... | [
{
"code": null,
"e": 471,
"s": 172,
"text": "Have you wondered how Python packages like Scikit-learn, pandas, and NumPy are built? They are all based on Object Orient Programming (OOP) to create complex and easy-to-use packages. For a data scientist it's a necessity to learn OOP so they can use it i... |
Tracking Keyword Trends on Google Search with Pytrends | by Sidney Kung | Towards Data Science | Pytrends is an unofficial API for tracking Google Search trends, and we can use matplotlib to visualize these trends over time. You can read more about the package in the project’s GitHub repository here.
Well, we all know what Google Search is. We all use it several times a day, sometimes without a second thought, to ... | [
{
"code": null,
"e": 377,
"s": 172,
"text": "Pytrends is an unofficial API for tracking Google Search trends, and we can use matplotlib to visualize these trends over time. You can read more about the package in the project’s GitHub repository here."
},
{
"code": null,
"e": 642,
"s":... |
PHP Array Sort Techniques | sort() rsort() asort() arsort() ksort() krsort() TutorialsPoint | 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 the previous tutorials, we have discussed ... | [
{
"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,
... |
Weight Initialization in Neural Networks: A Journey From the Basics to Kaiming | by James Dellinger | Towards Data Science | I’d like to invite you to join me on an exploration through different approaches to initializing layer weights in neural networks. Step-by-step, through various short experiments and thought exercises, we’ll discover why adequate weight initialization is so important in training deep neural nets. Along the way we’ll co... | [
{
"code": null,
"e": 565,
"s": 46,
"text": "I’d like to invite you to join me on an exploration through different approaches to initializing layer weights in neural networks. Step-by-step, through various short experiments and thought exercises, we’ll discover why adequate weight initialization is s... |
Sass - if() Function | Based on the condition, this built-in if() function returns only one result from two possible outcomes. The result of the function can be referred to the variable that may not be defined or to have further calculations.
if( expression, value1, value2 )
The following example demonstrates the use of if() function in the... | [
{
"code": null,
"e": 2072,
"s": 1852,
"text": "Based on the condition, this built-in if() function returns only one result from two possible outcomes. The result of the function can be referred to the variable that may not be defined or to have further calculations."
},
{
"code": null,
"... |
increment and decrement operators in Java (In Depth) - 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 see one of ... | [
{
"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,
... |
Python | Pandas dataframe.get_dtype_counts() - GeeksforGeeks | 19 Nov, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas dataframe.get_dtype_counts() function returns the counts of dtypes in the given object... | [
{
"code": null,
"e": 26088,
"s": 26060,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 26302,
"s": 26088,
"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... |
Alphanumeric sorting using JavaScript | We have a mixed array that we need to sort by alphabet and then by digit −
const arr = ['Ab-1', 'Ab-11', 'Ab-12', 'ab-10', 'ab-100', 'ab-101', 'ab2', 'ab-3', 'ab-105'];
The code for this will be −
const arr = ['Ab-1', 'Ab-11', 'Ab-12', 'ab-10', 'ab-100', 'ab-101', 'ab2', 'ab-3', 'ab-105'];
const alphaNumericSort = (arr... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "We have a mixed array that we need to sort by alphabet and then by digit −"
},
{
"code": null,
"e": 1231,
"s": 1137,
"text": "const arr = ['Ab-1', 'Ab-11', 'Ab-12', 'ab-10', 'ab-100', 'ab-101', 'ab2', 'ab-3', 'ab-105'];"
},
{
... |
Scraping Twitter data using python for NLP | by Anshaj Khare | Towards Data Science | “In God we trust. All others must bring data.” — W. Edwards Deming
If you’re starting in the incredible field of NLP, you’ll want to get your hands dirty with real textual data that you can use to play around with the concepts you’ve learned. Twitter is an excellent source of such data. In this post, I’ll be presenting... | [
{
"code": null,
"e": 239,
"s": 172,
"text": "“In God we trust. All others must bring data.” — W. Edwards Deming"
},
{
"code": null,
"e": 634,
"s": 239,
"text": "If you’re starting in the incredible field of NLP, you’ll want to get your hands dirty with real textual data that you ... |
How to convert a string into integer in JavaScript? | To convert a string to an integer parseInt() function is used in javascript. parseInt() function returns Nan( not a number) when the string doesn’t contain number. If a string with a number is sent then only that number will be returned as the output. This function won't accept spaces. If any particular number with spa... | [
{
"code": null,
"e": 1481,
"s": 1062,
"text": "To convert a string to an integer parseInt() function is used in javascript. parseInt() function returns Nan( not a number) when the string doesn’t contain number. If a string with a number is sent then only that number will be returned as the output. T... |
Arduino - nested loop | C language allows you to use one loop inside another loop. The following example illustrates the concept.
for ( initialize ;control; increment or decrement) {
// statement block
for ( initialize ;control; increment or decrement) {
// statement block
}
}
for(counter = 0;counter <= 9;counter++) {
//sta... | [
{
"code": null,
"e": 2976,
"s": 2870,
"text": "C language allows you to use one loop inside another loop. The following example illustrates the concept."
},
{
"code": null,
"e": 3140,
"s": 2976,
"text": "for ( initialize ;control; increment or decrement) {\n // statement block\... |
How to copy a section of one Array to another in C#? | The Array.Copy() method in C# is used to copy section of one array to another array.
The following is the syntax −
Array.Copy(src, dest, length);
Here,
src = array to be copied
src = array to be copied
dest = destination array
dest = destination array
length = how many elements to copy
length = how many elements to cop... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "The Array.Copy() method in C# is used to copy section of one array to another array."
},
{
"code": null,
"e": 1177,
"s": 1147,
"text": "The following is the syntax −"
},
{
"code": null,
"e": 1208,
"s": 1177,
"text... |
Return the Index label if some condition is satisfied over a column in Pandas Dataframe | 26 Jan, 2019
Given a Dataframe, return all those index labels for which some condition is satisfied over a specific column.
Solution #1: We can use simple indexing operation to select all those values in the column which satisfies the given condition.
# importing pandas as pdimport pandas as pd # Create the dataframed... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jan, 2019"
},
{
"code": null,
"e": 139,
"s": 28,
"text": "Given a Dataframe, return all those index labels for which some condition is satisfied over a specific column."
},
{
"code": null,
"e": 267,
"s": 139,
"tex... |
How to unset JavaScript variables? | 22 Apr, 2019
To know how to unset a variable we must know what are JS variables and how to declare a variable first. JavaScript variables are containers for storing data values. Variables can be declared using the ‘var’ keyword.
Example:
var x = 5;
In the above code declaration, the value 5 has been assigned to the var... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Apr, 2019"
},
{
"code": null,
"e": 268,
"s": 52,
"text": "To know how to unset a variable we must know what are JS variables and how to declare a variable first. JavaScript variables are containers for storing data values. Variables... |
HTML | <script> async Attribute | 02 Jun, 2022
The HTML,<script> async attribute is a boolean attribute. When present, it specifies that the script will be executed asynchronously when it is available. This attribute only works for external scripts (and used only in when src attribute is present ).Note: There are so many ways in which external script e... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Jun, 2022"
},
{
"code": null,
"e": 345,
"s": 28,
"text": "The HTML,<script> async attribute is a boolean attribute. When present, it specifies that the script will be executed asynchronously when it is available. This attribute only ... |
How to call a function repeatedly every 5 seconds in JavaScript ? | 13 Dec, 2021
The setInterval() method in JavaScript can be used to perform periodic evaluation of expression or call a JavaScript function. Syntax:
setInterval(function, milliseconds, param1, param2, ...)
Parameters: This function accepts the following parameters:
function: This parameter holds the function name whi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 164,
"s": 28,
"text": "The setInterval() method in JavaScript can be used to perform periodic evaluation of expression or call a JavaScript function. Syntax: "
},
{
"code": null,
"e": 22... |
Python program to find largest number in a list | 08 Jun, 2022
Given a list of numbers, the task is to write a Python program to find the largest number in given list. Examples:
Input : list1 = [10, 20, 4]
Output : 20
Input : list2 = [20, 10, 20, 4, 100]
Output : 100
Method 1 : Sort the list in ascending order and print the last element in the list.
Python3
# Python... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 167,
"s": 52,
"text": "Given a list of numbers, the task is to write a Python program to find the largest number in given list. Examples:"
},
{
"code": null,
"e": 258,
"s": 167,
... |
How to Access the File System in Node.js ? | 19 Oct, 2021
In this article, we looked at how to access the file system in NodeJS and how to perform some useful operations on files.
Prerequisite:
Basic knowledge of ES6
Basic knowledge of NodeJS
NodeJS is one of the most popular server-side programming frameworks running on the JavaScript V8 engine, which uses a sin... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 176,
"s": 54,
"text": "In this article, we looked at how to access the file system in NodeJS and how to perform some useful operations on files."
},
{
"code": null,
"e": 190,
"s": 1... |
GATE | GATE-CS-2014-(Set-2) | Question 65 | 20 Jun, 2017
A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 4 bytes in size. Given a 100 x 106 bytes disk on which the file system is stored and data block size is 103 bytes, the maximum size of a file that can be stored on this disk in units of 106 byte... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Jun, 2017"
},
{
"code": null,
"e": 380,
"s": 54,
"text": "A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 4 bytes in size. Given a 100 x 106 bytes disk on which the fi... |
Check if two Dictionary objects are equal in C# | 01 Feb, 2019
Equals(Object) Method which is inherited from the Object class is used to check if a specified Dictionary object is equal to another Dictionary object or not.
Syntax:
public virtual bool Equals (object obj);
Here, obj is the object which is to be compared with the current object.
Return Value: This method ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 187,
"s": 28,
"text": "Equals(Object) Method which is inherited from the Object class is used to check if a specified Dictionary object is equal to another Dictionary object or not."
},
{
"c... |
Minimum squares to evenly cut a rectangle | 19 Jul, 2021
Given a rectangular sheet of length l and width w. we need to divide this sheet into square sheets such that the number of square sheets should be as minimum as possible.Examples:
Input :l= 4 w=6 Output :6 We can form squares with side of 1 unit, But the number of squares will be 24, this is not minimum. ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Jul, 2021"
},
{
"code": null,
"e": 233,
"s": 52,
"text": "Given a rectangular sheet of length l and width w. we need to divide this sheet into square sheets such that the number of square sheets should be as minimum as possible.Exam... |
Plot mean and standard deviation using ggplot2 in R | 21 Jul, 2021
An error bar shows the confidence and precision in a set of measurements or calculated values based on the errors that occur in the data set. It helps visually display the errors in an area of the data frame and shows an actual and exact missing part. As a descriptive behavior, error bars provide details a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 487,
"s": 52,
"text": "An error bar shows the confidence and precision in a set of measurements or calculated values based on the errors that occur in the data set. It helps visually display the er... |
Largest Rectangular Area in a Histogram | Set 1 | 21 Jun, 2022
Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars. For simplicity, assume that all bars have same width and the width is 1 unit.
For example, consider the following histogram with 7 bars of heights {6, 2, 5, 4, 5, 1, 6}. ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 267,
"s": 52,
"text": "Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars. For simplicity, assume that all bars h... |
What is IPv6? | 04 Jul, 2022
IP address is your digital identity. It’s a network address for your computer so the Internet knows where to send you emails, data, etc.
IP address determines who and where you are in the network of billions of digital devices that are connected to the Internet.
IPv6 or Internet Protocol Version 6 is a ne... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Jul, 2022"
},
{
"code": null,
"e": 189,
"s": 52,
"text": "IP address is your digital identity. It’s a network address for your computer so the Internet knows where to send you emails, data, etc."
},
{
"code": null,
"e": ... |
ASP.NET - Data Binding | Every ASP.NET web form control inherits the DataBind method from its parent Control class, which gives it an inherent capability to bind data to at least one of its properties. This is known as simple data binding or inline data binding.
Simple data binding involves attaching any collection (item collection) which impl... | [
{
"code": null,
"e": 2585,
"s": 2347,
"text": "Every ASP.NET web form control inherits the DataBind method from its parent Control class, which gives it an inherent capability to bind data to at least one of its properties. This is known as simple data binding or inline data binding."
},
{
"... |
CSS Preprocessor SASS - GeeksforGeeks | 03 Nov, 2021
The SASS is the abbreviation of Syntactically Awesome Style Sheets. It is a CSS pre-processor with syntax advancements. The style sheets in the advanced syntax are processed by the program and compiled into regular CSS style sheets, which can be used in the website. It is a CSS extension that allows to use... | [
{
"code": null,
"e": 27681,
"s": 27653,
"text": "\n03 Nov, 2021"
},
{
"code": null,
"e": 28138,
"s": 27681,
"text": "The SASS is the abbreviation of Syntactically Awesome Style Sheets. It is a CSS pre-processor with syntax advancements. The style sheets in the advanced syntax are... |
How to create an unordered list with square bullets in HTML? | To create unordered list in HTML, use the <ul> tag. The unordered list starts with the <ul> tag. The list item starts with the <li> tag and will be marked as disc, square, circle, etc. The default is bullets, which is small black circles.
For creating an unordered list with circle bullets, use CSS property list-style-t... | [
{
"code": null,
"e": 1301,
"s": 1062,
"text": "To create unordered list in HTML, use the <ul> tag. The unordered list starts with the <ul> tag. The list item starts with the <li> tag and will be marked as disc, square, circle, etc. The default is bullets, which is small black circles."
},
{
... |
PyQtGraph – X Change Signal for Bar Graph - GeeksforGeeks | 29 Nov, 2021
In this article we will see how we can get the x-change signal for the bar graph in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive gra... | [
{
"code": null,
"e": 25018,
"s": 24990,
"text": "\n29 Nov, 2021"
},
{
"code": null,
"e": 25952,
"s": 25018,
"text": "In this article we will see how we can get the x-change signal for the bar graph in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Py... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.