Skip to content

Commit f51ff00

Browse files
committed
update pandas references
1 parent 2cf815b commit f51ff00

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

doc/python/heatmaps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Plotly supports two different types of colored-tile heatmaps:
4848

4949

5050
<!-- #region -->
51-
The `px.imshow()` function can be used to display heatmaps (as well as full-color images, as its name suggests). It accepts both array-like objects like lists of lists and `numpy` or `xarray` arrays, as well as `pandas.DataFrame` objects.
51+
The `px.imshow()` function can be used to display heatmaps (as well as full-color images, as its name suggests). It accepts both array-like objects like lists of lists and `numpy` or `xarray` arrays, as well as supported [DataFrame objects](/python/px-arguments#supported-dataframes).
5252

5353

5454
> For more examples using `px.imshow`, including examples of faceting and animations, as well as full-color image display, see the [the `imshow` documentation page](/python/imshow).

doc/python/px-arguments.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,13 @@ The first argument of every `px` function is `data_frame`. If you provide a Data
128128
- PyArrow
129129
- Modin
130130

131-
> To use Polars, PyArrow, or Modin with Plotly Express, you'll need to have NumPy installed. You can install it with: `pip install numpy`
131+
> To use Polars, PyArrow, or Modin with Plotly Express, you'll need to have NumPy installed. You can install it with: `pip install numpy`.
132+
To use [trendlines](/python/linear-fits/), you'll also need to have pandas installed.
132133

133134
`px` uses [Narwhals](https://narwhals-dev.github.io/narwhals/) to natively support these DataFrames. Other types of DataFrames that are currently supported by Narwhals may also work with `px`, for example cuDF.
134135

135136
You can also pass DataFrames that are not natively supported, but support the dataframe interchange protocol, or have a `to_pandas()` method.
136137

137-
> Not all `px` functionality is supported natively for non-pandas DataFrames.
138-
139138
### Example: Using a Pandas DataFrame with `px.bar`
140139

141140
Here, we create a pandas DataFrame, pass it to `px.bar` as its first argument, and then use the `"sepal_length"` column for the x-axis and the `"sepal_width"` for the y-axis.

0 commit comments

Comments
 (0)