- 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
![Vani Nalliappan](https://www.tutorialspoint.com/assets/profiles/304793/profile/60_62256-1613462273.jpg)
2K+ Views
Plotly is an open-source plotting library in Python that can generate several different types of charts. Python users can use Plotly to create interactive web-based visualizations. In this tutorial, we will see how you can use Plotly to add multiple text labels in a chart from DataFrame columns. Here, we will use the plotly.graph_objects module to generate figures. It contains a lot of methods to customize charts and render them into HTML format. Then, we will use the Scatter() method of this module to generate a scatter plot. The "line" attribute of Scatter() contains a parameter "color" that we ... Read More
![Alekhya Nagulavancha](https://www.tutorialspoint.com/assets/profiles/535884/profile/60_4128029-1665726265.jpg)
12K+ Views
In this article, we will learn how to implement a python program to calculate standard deviation on a dataset. Consider a set of values plotted on any coordinate axes. Standard deviation of these set of values, called population, is defined as the variation seen among them. If the standard deviation is low, the values are plotted closely to the mean. But if the standard deviation is high, the values are dispersed farther from the mean. It is denoted by square root of the variance of a dataset. There are two types of standard deviations − The population standard deviation is ... Read More
![Alekhya Nagulavancha](https://www.tutorialspoint.com/assets/profiles/535884/profile/60_4128029-1665726265.jpg)
14K+ Views
Mathematically, a cube root of a certain number is defined as a value obtained when the number is divided by itself thrice in a row. It is the reverse of a cube value. For example, the cube root of 216 is 6, as 6 × 6 × 6 = 216. Our task in this article is to find the cube root of a given number using python. The cube root is represented using the symbol “$\mathrm{\sqrt[3]{a}}$”. The 3 in the symbol denotes that the value is divided thrice in order to achieve the cube root. There are various ways in ... Read More
![Alekhya Nagulavancha](https://www.tutorialspoint.com/assets/profiles/535884/profile/60_4128029-1665726265.jpg)
2K+ Views
A rhombus is a four-sided polygon that has all equal edges and perpendicular diagonals. It is also called as a special type of parallelogram, since a parallelogram has equal opposite sides and is shaped similar. The area of a rhombus is calculated with its diagonals, as they form four triangles within the figure. The combination of the area of all those triangles will give us the area of a rhombus. The mathematical formula is − Area − $\mathrm{{\frac{p\:\times\:q}{2}}}$ Where, p and q are the lengths of diagonals. Input Output Scenarios Let us look at some input output scenarios to ... Read More
![Alekhya Nagulavancha](https://www.tutorialspoint.com/assets/profiles/535884/profile/60_4128029-1665726265.jpg)
4K+ Views
A sphere (solid) is usually considered a two-dimensional figure even though the figure is seen in three planes from its center. The main reason for this is that, a sphere is only measured using its radius. However, a hollow sphere is considered a three-dimensional figure since it contains space within its spherical walls and has two different radii to measure its dimensions. The spherical figure only has total surface area since there is only one dimension to measure the entire object. The formula to calculate the surface area of a sphere is − Area of solid sphere − $\mathrm{{4\pi ... Read More
![Alekhya Nagulavancha](https://www.tutorialspoint.com/assets/profiles/535884/profile/60_4128029-1665726265.jpg)
3K+ Views
A cone is a three-dimensional figure that is formed by connecting infinite line segments from a common point to all the points in a circular base. This common point is also known as an apex. The cone is measured using three dimensions: radius of its circular base, height and lateral height. The difference between a cone’s height and lateral height is such that− height is measured from the apex to the center of the circular base, while lateral height is a length of line segments connecting apex and any point on the circular base. The lateral surface area, also ... Read More
![Vani Nalliappan](https://www.tutorialspoint.com/assets/profiles/304793/profile/60_62256-1613462273.jpg)
5K+ Views
Plotly is an open-source plotting library in Python that can generate several different types of charts. Python users can use Plotly to create interactive web-based visualizations that can be displayed in Jupyter notebooks, saved to standalone HTML files, or served as a part of web applications using Dash. Plotly can also be used in static document publishing and desktop editors such as PyCharm and Spyder. Dash is a Python framework and it is used to create interactive web-based dashboard applications. The dash library adds all the required libraries to web based dashboard applications. In this tutorial, we will show how ... Read More
![Vani Nalliappan](https://www.tutorialspoint.com/assets/profiles/304793/profile/60_62256-1613462273.jpg)
2K+ Views
Plotly is an open-source plotting library in Python that can generate several different types of charts. Python users can use Plotly to create interactive web-based visualizations including scientific charts, 3D graphs, statistical charts, financial charts, etc. Plotly can also be used in static document publishing and desktop editors such as PyCharm and Spyder. In this tutorial, we will show how you can use Plotly to hide legend entries for a particular field. Follow the steps given below to hide the legend entries. Step 1 Import the plotly.offline module and alias as py. import plotly.offline as py Step 2 Import ... Read More
![Vani Nalliappan](https://www.tutorialspoint.com/assets/profiles/304793/profile/60_62256-1613462273.jpg)
391 Views
Plotly is an open-source plotting library in Python that can generate several different types of charts. Python users can use Plotly to generate different types of charts including scientific charts, 3D graphs, statistical charts, financial charts, etc. In this tutorial, we will show how you can use Plotly to shade a chart above a specific Y value. Here, we will use the plotly.express module to create a plot. Then, we will use the add_vline() method to create a line with green color and set its width. To set the line color and opacity values, we will use the add_hrect() ... Read More
![Vani Nalliappan](https://www.tutorialspoint.com/assets/profiles/304793/profile/60_62256-1613462273.jpg)
8K+ Views
Plotly is an open-source, interactive, and browser-based charting library for Python. Python users can use Plotly to generate different types of charts including scientific charts, 3D graphs, statistical charts, financial charts, etc. In this tutorial, we will show how you can use Plotly to change the variable and label names for the legend in a line chart. Here we will use the plotly.graph_objects module to generate figures. It contains a lot of methods to customize the charts and render them into HTML format. Follow the steps given below to generate variable or label names for the legend. Step 1 Import ... Read More