
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

4K+ Views
In this article, we will show you the differences between dataframe and matrices in python pandas. Both dataframes and matrices are 2-dimensional data structures. In general, dataframes can include multiple types of data (numeric, character, factor, etc) while matrices can only store one type of data. Dataframe in Python In Python, a DataFrame is a two-dimensional, tabular, mutable data structure that may store tabular data containing objects of various data types. A DataFrame has axes that are labeled in the form of rows and columns. DataFrames are useful tools in data preprocessing because they provide valuable data handling methods. DataFrames ... Read More

12K+ Views
In this article, we will look at some examples of runtime errors in Python Programming Language Runtime Errors A runtime error in a program is one that occurs after the program has been successfully compiled. The Python interpreter will run a program if it is syntactically correct (free of syntax errors). However, if the program encounters a runtime error - a problem that was not detected when the program was parsed and is only revealed when a specific line is executed - it may exit unexpectedly during execution. When a program crashes due to a runtime error, we say ... Read More

19K+ Views
In this article, we will show you how to select elements from a NumPy array in python. Numpy Array in Python A NumPy array is a central data structure of the NumPy library, as the name implies. The name of the library is an abbreviation for "Numeric Python" or "Numerical Python. NumPy, in other words, is a Python library that serves as the foundation for scientific computing in Python. One of these tools is a high-performance multidimensional array object, which is a powerful data structure for efficient array and matrix computation. We can select a single element or a subarray ... Read More

4K+ Views
In this article, we will show you how to flatten a matrix using the NumPy library in python. numpy.ndarray.flatten() function The numpy module includes a function called numpy.ndarray.flatten() that returns a one-dimensional copy of the array rather than a two-dimensional or multi-dimensional array. In simple words, we can say that it flattens a matrix to 1-Dimension. Syntax ndarray.flatten(order='C') Parameters order − 'C', 'F', 'A', 'K' (optional) When we set the order parameter to 'C, ' the array is flattened in row-major order. When the 'F' is set, the array is flattened in column-major order. Only when 'a' is ... Read More

22K+ Views
In this article, we will show you how to calculate the inverse of a matrix or ndArray using NumPy library in python. What is inverse of a matrix? The inverse of a matrix is such that if it is multiplied by the original matrix, it results in an identity matrix. The inverse of a matrix is just the reciprocal of the matrix, as in regular arithmetic, for a single number that is used to solve equations to obtain the value of unknown variables. The inverse of a matrix is the matrix that, when multiplied by the original matrix, produces the ... Read More

193 Views
An octahedron is a three-dimensional (3D) shape which has eight plane faces. In other words, a polyhedron is called an octahedron which has eight faces, twelve edges, and 6 vertices. A polygonal is a three-dimensional figure with flat polygonal faces, straight edges, and sharp corners or vertices. The word octahedron is derived from the Greek word that is Oktaedron, which means Eight faces. Here is the diagram of the octahedron, which has side a: Volume of octahedron The volume of an octahedron is the amount of space occupied by the octahedron. To calculate the volume of an octahedron, we ... Read More

264 Views
A dodecahedron is a three-dimensional shape that has twelve flat faces. It is derived from two Greek words, i.e., 'dodeka', which means 12, and 'hedra', which means face. In other words, a dodecahedron is a special type of polyhedron that has 12 faces. To make a dodecahedron, you can use the 12 pyramids and the base as a pentagon. Following diagram will provide a better understanding of its shape and edges: Where a is the length of the edge. Volume of Dodecahedron A dodecahedron volume refers to the amount of space occupied by this 3D shape, which has 12 faces. ... Read More

2K+ Views
Midpoint of a Line The midpoint refers to a point that is exactly in the middle of the line segment, which is joined through two points. These are the endpoints of a line segment and the midpoint lying in between these two points. The following diagram will provide a better understanding: Midpoint Formula The midpoint formula is defined for the points in the coordinate axes (i.e., x and y). Let's consider (x1, y1) and (x2, y2) are the endpoints of a line segment. The midpoint will be equal to half of the sum of the x-coordinates of the two ... Read More

677 Views
The height of a triangle is the perpendicular distance from a vertex to the line containing the opposite side (which is the base). The height is also known as altitude. What is Minimum Height? The minimum height of a triangle refers to the shortest possible altitude (perpendicular distance) from a vertex to the opposite side (base). The following diagram provides you with a clear idea of the triangle's height and its base: A triangle is a polygon (a basic shape in geometry) that has three sides and three corners. The corners, also called vertices, are zero-dimensional points, while ... Read More

11K+ Views
What is Unique Number? A Unique number is a number that does not have a single repeated digit in it. In other words, a number in which all the digits are present exactly only one time. For example, consider the number 12. The digits 1 and 2 each appear only once, the number is unique as it contains all distinct digits. Here are some other examples of unique numbers such as 132, 1, 45, 98, 701, 5, 12, 1234, etc. Input & Output Scenarios Below are the few of the input and output scenarios which gives some idea about ... Read More