Rohan Singh has Published 172 Articles

Python - Get sum of last K list items using slice

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 19:14:47

238 Views

In Python, the slice method allows us to extract specific elements from a sequence, such as strings, lists, or tuples. It provides a concise and flexible way to work with subsequences within a larger sequence. In this article, we will explore how to obtain the sum of the last K ... Read More

Python - Get particular Nested level Items from Dictionary

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 19:13:11

919 Views

Dictionaries in Python allow you to store key−value pairs, making it easy to organize and access data efficiently. Sometimes, we may need to retrieve specific items from nested levels within a dictionary. We can use the isinstance() with the recursion method and dict.get() method to get the nested−level items from ... Read More

Hyperlink-Induced Topic Search (HITS) Algorithm using Networxx Module - Python

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 19:09:50

1K+ Views

The Hyperlink−Induced Topic Search (HITS) algorithm is a popular algorithm used for web link analysis, particularly in search engine ranking and information retrieval. HITS identifies authoritative web pages by analyzing the links between them. In this article, we will explore how to implement the HITS algorithm using the Networxx module ... Read More

How to Utilize Time Series in Pandas?

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 19:07:15

54 Views

Time series data are mostly used when dealing with data that changes with time. Handling these data plays a very important role in data analysis of Time series data. Pandas, a popular data manipulation and analysis library in Python, provides robust functionality for working with time series data. In this ... Read More

How to Sort a Dictionary by Kth Index Value in Python?

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 18:34:25

135 Views

In Python, we can sort a dictionary by the value of a specific index, often referred to as kth index value by using various functions like Using the sorted() Function with a Lambda Function, Using the itemgetter() Function from the operator Module, Using a Custom Function with the sorted() Function, ... Read More

How to send an email from JavaScript?

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 18:30:35

6K+ Views

Sending emails from javascript is a common feature in most web applications. It allows you to automate notifications, send user−generated content, or facilitate communication with your users. We can use different methods like using Malito protocol, sending Emails with a Server−Side Language, and Implementing Email Sending through an API to ... Read More

How to select all text in HTML text input when clicked using JavaScript?

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 18:28:25

3K+ Views

In web development, it is often necessary to provide users with an intuitive and convenient way to select all text within an HTML text input field when they click on it. This feature can greatly enhance user experience, especially when dealing with lengthy or pre−filled input fields. In this article, ... Read More

How to select a random element from array in JavaScript ?

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 18:12:37

1K+ Views

When working with arrays in JavaScript, cases often require selecting a random element from an array. In Javascript we can use various inbuilt methods like Math.random() with Math.floor(), using the Math.random() Method with a Helper Function, and Using the Array.prototype.sort() Method to select a random element from an array. In ... Read More

How to search the max value of an attribute in an array object ?

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 18:10:09

678 Views

When working with objects, we often need to search for the max value of an attribute in an array of objects. We can use various javascript inbuilt functions like reduce() method, and map() method and we can also use a simple for loop to search for the max value. In ... Read More

How to search JSON tree with the help of jQuery?

Rohan Singh

Rohan Singh

Updated on 18-Jul-2023 18:08:21

547 Views

JSON (JavaScript Object Notation) is a data format that is widely used when transmitting data between the server and a web application. In many cases, the JSON data has a complex structure, and searching for specific data requires some special function implementation. jQuery, a popular JavaScript library, provides powerful methods ... Read More

Previous 1 ... 3 4 5 6 7 ... 18 Next
Advertisements