Skip to content

Commit 2f2e84e

Browse files
committed
various small docs fixes
1 parent c6341c0 commit 2f2e84e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

doc/python/performance.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Plotly Express natively supports [pandas, Polars, PyArrow, and Modin dataframes]
4444

4545
*New in Plotly.py version 6*
4646

47-
Improve the performance of generating Plotly figures that use a large number of data points by using NumPy arrays and other objects that Plotly can convert to NumPy arrays, such as Pandas and Polars Series.
47+
You can improve the performance of generating Plotly figures that use a large number of data points by using NumPy arrays and other objects that Plotly can convert to NumPy arrays, such as Pandas and Polars Series.
4848

4949
Plotly.py uses Plotly.js for rendering, which supports typed arrays. In Plotly.py, NumPy array and NumPy-convertible arrays are base64 encoded before being passed to Plotly.js for rendering.
5050

@@ -67,11 +67,11 @@ The following [array data types](https://numpy.org/devdocs/reference/arrays.scal
6767
- int32
6868
- uint32
6969

70-
*If the array dtype is **int64** and **uint64**, often the default dtype for arrays in NumPy when no dtype is specified, those dtypes will be changed to other types internally by Plotly.py where possible. When working with NumPY directly, you can [specify the `dtype`](https://numpy.org/doc/stable/user/basics.types.html#array-types-and-conversions-between-types) when creating `ndarray` objects.
70+
*If the array dtype is **int64** or **uint64**, often the default dtype for arrays in NumPy when no dtype is specified, those dtypes will be changed to other types internally by Plotly.py where possible. When working with NumPY directly, you can [specify the `dtype`](https://numpy.org/doc/stable/user/basics.types.html#array-types-and-conversions-between-types) when creating `ndarray` objects.
7171

7272
### Unsupported Attributes
7373

74-
Arrays passed to attributes with the following names are not supported:
74+
Arrays passed to attributes with the following names are not supported for the performance benefits:
7575

7676
`geojson`, `layers`, and `range`.
7777

@@ -229,8 +229,7 @@ Use [Datashader](https://datashader.org/) to reduce the size of a dataset passed
229229

230230
### Passing Datashader Rasters as a Tile Map Image Layer
231231

232-
We visualize here the spatial distribution of taxi rides in New York City. A higher density
233-
is observed on major avenues. For more details about tile-based maps, see [the tile map layers tutorial](/python/tile-map-layers).
232+
The following example shows the spatial distribution of taxi rides in New York City, which are concentrated on major avenues. For more details about tile-based maps, see [the tile map layers tutorial](/python/tile-map-layers).
234233

235234
```python
236235
import pandas as pd

doc/python/px-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The examples on this page use datasets available in the `data` package in `px`.
4343
- `election` - Each row represents voting results for an electoral district in the 2013 Montreal mayoral election.
4444
- `iris` - Each row represents a flower.
4545

46-
To access the `iris` dataset, we call it's function and assign it to a variable:
46+
To access the `iris` dataset, we call its function and assign it to a variable:
4747

4848
```python
4949
import plotly.express as px
@@ -175,7 +175,7 @@ fig.show()
175175

176176
### Using Columns from Multiple DataFrames
177177

178-
You can also use columns from multiple dataframes in the one `px` function, as long as all the DataFrame columns you use have the same length. In this example, we pass `df1` as the `data_frame` argument to `px.bar` and then us a column from `df2` for the `y` argument.
178+
You can also use columns from multiple dataframes in one `px` function, as long as all the DataFrame columns you use have the same length. In this example, we pass `df1` as the `data_frame` argument to `px.bar` and then us a column from `df2` for the `y` argument.
179179

180180
```python
181181
import plotly.express as px

0 commit comments

Comments
 (0)