Skip to content

Commit 3c578c1

Browse files
committed
shorten text
1 parent 5c389e5 commit 3c578c1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

doc/python/px-arguments.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,17 @@ 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`.
132-
To use [trendlines](/python/linear-fits/), you'll also need to have pandas installed.
131+
`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`.
133132

134-
`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.
133+
You can also pass dataframes that are not natively supported, but which support the [dataframe interchange protocol](https://data-apis.org/dataframe-protocol/latest/).
135134

136-
You can also pass dataframes that are not natively supported, but support the [dataframe interchange protocol](https://data-apis.org/dataframe-protocol/latest/), or have a `to_pandas()` method.
135+
PySpark dataframes are also supported and are converted to pandas dataframes internally by Plotly Express.
136+
137+
#### Additional Dependencies Required
138+
139+
- To use Polars, PyArrow, or other dataframes supported natively with Plotly Express, you'll need to have NumPy installed. You can install it with: `pip install numpy`.
140+
- To use [trendlines](/python/linear-fits/), you'll also need to have pandas installed.
141+
- To use PySpark dataframes or datafarmes that support the dataframe interchange protocol, you'll need to have pandas installed.
137142

138143
### Example: Using a Pandas DataFrame with `px.bar`
139144

0 commit comments

Comments
 (0)