Top Posts in Python
Python add to Array
Python doesn’t have any specific data type as an array. We can use List that has all the characteristics of an array. Python array module can be used to create an array of integers and….
Python add to List
There are four ways to add elements to a List in Python. append(): append the object to the end of the list. insert(): inserts the object before the given index. extend(): extends the list by….
NumPy Matrix transpose() – Transpose of an Array in Python
The transpose of a matrix is obtained by moving the rows data to the column and columns data to the rows. If we have an array of shape (X, Y) then the transpose of the….
What is Java Programming Language?
What is Java? Java is an Object-Oriented Programming Language. It was first released by Sun Microsystems in 1995. Oracle acquired Sun Microsystems in 2010 and now maintains the release and support of Java programming language…..
NumPy Matrix Multiplication
NumPy matrix multiplication can be done by the following three methods. multiply(): element-wise matrix multiplication. matmul(): matrix product of two arrays. dot(): dot product of two arrays. 1. NumPy Matrix Multiplication Element Wise If you….
Check for Substring in an Array – Java, Python, and Swift
In this quick tutorial, we’ll learn how to quickly search a part of a string in an Array. We’ll be demonstrating the examples in Java, Python, and Swift. The straightforward way to check whether a….
MySQL on Amazon RDS
MySQL on Amazon RDS is the most popular and used database service of AWS Cloud. I will recommend to read our post on Amazon RDS – AWS Relational Database Service to get an understanding of….
numpy.cumsum() in Python
Python numpy cumsum() function returns the cumulative sum of the elements along the given axis. Python numpy cumsum() syntax The cumsum() method syntax is: cumsum(array, axis=None, dtype=None, out=None) The array can be ndarray or array-like….
Python – Convert NumPy Array to List
We can use numpy ndarray tolist() function to convert the array to a list. If the array is multi-dimensional, a nested list is returned. For one-dimensional array, a list with the array elements is returned…..
numpy.ones() in Python
Python numpy.ones() function returns a new array of given shape and data type, where the element’s value is set to 1. This function is very similar to numpy zeros() function. numpy.ones() function arguments The numpy.ones()….