- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- 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 10784 Articles for Python
7K+ Views
In this article, we will show you what is a sparse matrix and how to create a sparse matrix in python. What is a sparse matrix? A sparse matrix is one in which most of the elements are 0. That is, the matrix only contains data in a few positions. And most of the memory consumed by a sparse matrix is made up of zeroes. For example − M = [ [1, 0, 0, 0], [0, 0, 3, 0], [0, 0, 0, 0], [0, 0, 0, 2] ] ... Read More
656 Views
In mathematics, the gamma function is said to be an extension to the factorial of any given number. However, as the factorial is only defined for real numbers, the gamma function exceeds to define the factorial on all complex numbers except the negative integers. It is represented by − Γ(x) = (x-1)! The logarithm gamma function comes into picture as the gamma function grows rapidly only larger numbers, so applying logarithm to the gamma will slow it down a lot. It is also known as the natural logarithm gamma of a given number. log(Γ(x)) = log((x-1)!) In python ... Read More
2K+ Views
In this article, we will look into a python program to calculate the volume and area of a cylinder. A cylinder is defined as a 3D object that has two circles connected with a rectangular surface. The special thing about a cylinder is that even though it is measured using just two dimensions, i.e. the height and radius, the cylinder is considered a three-dimensional figure as it is measured in xyz coordinate axes. The area of the cylinder is calculated is two ways− area of the lateral surface and area of the total surface. Lateral surface area is only the ... Read More
4K+ Views
A cube is a three-dimensional solid figure with six faces, twelve edges and eight vertices. This geometrical figure has equal sized edges, hence making all its dimensions − length, width and height − equal. The idea of calculating the volume of a cube can be understood in a simple way. Consider a real-time situation where a person a moving houses. Suppose they use a hollow cube shaped cardboard box to place their things in it, the amount of space present to fill it up is defined as the volume. The mathematical formula to calculate the volume of a cube ... Read More
2K+ Views
To calculate the area of a cube, let us first revise the concept of a cube. A cube is a geometrical figure containing three dimensions: length, width, and height with all the dimensions having equal measurements. It has six square faces, four of which are lateral surfaces and the other two are the cube's top and bottom surfaces. The requirement to find the surface area is just knowing the length a single edge. The area of a cube is found using the following steps − Find the area of one square face with the given edge Four times ... Read More
184 Views
What is Big Data? Big Data is a massive collection of data that is growing exponentially over time. It is a data set that is so large and complex that traditional data management tools cannot store or process it efficiently. Big data is a type of data that is extremely large in size. Python is the ideal programming language for Big Data due to its ease of use and statistical analysis capabilities. Python is a rapidly growing programming language, and a combination of Python and Big Data is the most popular choice among developers due to its low coding requirements ... Read More
339 Views
In this article, we will show you various Python libraries for visualization and their features. In today's day and age, viewing the results of our analysis and inferring results is often more convenient than going through textual data or CSV files to understand the results. As a result, data visualization is an easy way to find answers to complex questions. It also allows users to express their results more effectively than tables do. Data Visualization in Python Python provides several plotting libraries, including Matplotlib, Seaborn, and many other data visualization packages, each with unique features for creating informative, customized, and ... Read More
16K+ Views
In this article, we will show you how to convert a dictionary to a matrix or a NumPy array using the array() function of the NumPy library in python. It is sometimes necessary to convert a dictionary in Python into a NumPy array, and Python provides an efficient way of doing so. Converting a dictionary to a NumPy array gives an array containing the key-value pairs in the dictionary. In this section, we will look at examples of converting various types of dictionaries to a NumPy array in Python Converting a Dictionary to a Numpy Array Converting a Nested ... Read More
766 Views
Python is a computer programming language that is frequently used to create websites and software, automate tasks, and analyze data. Data Analysis Data analysis is defined as the process of cleaning, transforming, and modeling data in order to find useful information for business decisions. The goal of data analysis is to extract useful information from data and make decisions based on that information. In this article, we will explain how python data analysis libraries are used NumPy - Fundamental Scientific Computing NumPy is an abbreviation for Numerical Python. The n-dimensional array is NumPy's most powerful feature. This library also includes ... Read More
8K+ Views
Plotly is an open-source Python library for creating charts. In this tutorial, we will show how you can use the features of Plotly to display specific axis tick values. Let us understand how to show all the X-axis tick values, Use plotly.graph_objects to generate figures. It contains a lot of methods to customize chart and render a chart into HTML format. Update_layout() method has X-axis parameter and the value must be assigned as tickmode='linear'. Follow the steps given below to show all the X-axis tick values. Step 1Import plotly.graphs_objs module and alias as go import plotly.graphs_objs as go ... Read More