Niharika Aitam has Published 168 Articles

Compute the covariance matrix of two given NumPy arrays

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:32:38

471 Views

Covariance is the measure of two variables that defines how they are related to each other. In other words, it measures the extent to which one variable is associated with the changes in the other variable. When the covariance of the variables is positive, it implies that both variables ... Read More

Python - Chuncked summation every K value

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:24:05

83 Views

Chunked sum also known as partial sum or rolling sum, which is a process of calculating the sum of elements in a sequence such as list, array, or any iterable, in smaller chunks or subsets rather than calculating the sum of the entire sequence at once. Each chunk represents a ... Read More

Python - Check possible bijection between a sequence of characters and digits

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:23:14

112 Views

In mathematics, a bijection refers to a function that establishes a one-to-one correspondence between two sets. It means that each element in one set has a unique and distinct counterpart in the other set, and vice versa. In other words, a bijection ensures that there are no duplicates or missing ... Read More

Python - Check Numeric Suffix in String

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:22:28

179 Views

Generally, a suffix refers to an affix or a group of letters that is added to the end of a word to modify its meaning or to form a new word. Suffixes are used in linguistics and grammar to create different word forms, such as plurals, verb tenses, comparatives, and ... Read More

Check if a tuple exists as dictionary key in Python

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:21:40

1K+ Views

A Dictionary is one of the data structures available in python which stores the data in the format of key and value pairs. It is mutable i.e., once the data is defined in the dictionary we can make the modifications on the data. It is an unordered collection of elements. ... Read More

Clustering, Connectivity and other Graph properties using Python Networkx

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:20:55

636 Views

Python NetworkX is a popular open-source Python library used for the creation, manipulation, and analysis of complex networks or graphs. It provides a wide range of tools, algorithms, and functions to work with graphs, making it a valuable resource for network analysis and research. Python NetworkX allows us to represent ... Read More

How to Check if a substring is a part of List of Strings using Python?

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:19:59

75 Views

Generally, a string is an immutable data structure which is used to store the data in the string format within the single quotes or within the double quotes. It is immutable which means once the string is created the data in the string can’t be changed but can perform various ... Read More

How to view the parameters in axes_style in Seaborn?

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:19:13

92 Views

Seaborn's 'axes_style()' function allows us to customize the style of plots by modifying various parameters. It returns a dictionary of parameters that control the appearance of the plot elements, such as colors, fonts, gridlines, and more. To view these parameters, we can print the dictionary returned by 'axes_style()'. Importing Required ... Read More

Complexity Cheat Sheet for Python Operations

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:06:43

510 Views

Time complexity is a measure of time, which determines the time required for the algorithm to execute. It also checks how the running time is being increased when the size of the inputs is getting increased. The time complexity is represented with the notation capital O, which sets an upper ... Read More

Comparing and Managing Names Using name-tools module in Python

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:05:16

69 Views

The name-tools module is a python library which provides us the tools to work with the names. These are used in many applications likely data cleaning, text processing and Natural Language Processing etc. It has a several functions for comparing and managing the names. Installing name-tools Before working with ... Read More

Advertisements