You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
48
48
49
49
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.
50
50
@@ -67,11 +67,11 @@ The following [array data types](https://numpy.org/devdocs/reference/arrays.scal
67
67
- int32
68
68
- uint32
69
69
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.
71
71
72
72
### Unsupported Attributes
73
73
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:
75
75
76
76
`geojson`, `layers`, and `range`.
77
77
@@ -229,8 +229,7 @@ Use [Datashader](https://datashader.org/) to reduce the size of a dataset passed
229
229
230
230
### Passing Datashader Rasters as a Tile Map Image Layer
231
231
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).
Copy file name to clipboardExpand all lines: doc/python/px-arguments.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ The examples on this page use datasets available in the `data` package in `px`.
43
43
-`election` - Each row represents voting results for an electoral district in the 2013 Montreal mayoral election.
44
44
-`iris` - Each row represents a flower.
45
45
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:
47
47
48
48
```python
49
49
import plotly.express as px
@@ -175,7 +175,7 @@ fig.show()
175
175
176
176
### Using Columns from Multiple DataFrames
177
177
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.
0 commit comments