Skip to content

Commit 7e4ec79

Browse files
committed
add note on dataframe support
1 parent f0157bb commit 7e4ec79

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

doc/python/px-arguments.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,14 @@ The first argument of every `px` function is `data_frame`. If you provide a data
121121

122122
### Supported Dataframes
123123

124-
`px` functions natively support the following types of dataframes:
125-
126-
- pandas
127-
- Polars
128-
- PyArrow
129-
- Modin
130-
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`.
124+
`px` functions natively support pandas, Polars, and PyArrow dataframes. `px` uses [Narwhals](https://narwhals-dev.github.io/narwhals/) to provide this native dataframe support. Other types of dataframes that are currently supported by Narwhals, for example cuDF and Modin, may also work with `px`.
132125

133126
You can also pass dataframes that are not natively supported, but which support the [dataframe interchange protocol](https://data-apis.org/dataframe-protocol/latest/).
134127

135128
PySpark dataframes are also supported and are converted to pandas dataframes internally by Plotly Express.
136129

130+
> There is a known issue where `px.icicle`, `px.treemap`, and `px.sunburst` used with a `path` parameter won't work with cuDF dataframes.
131+
137132
#### Additional Dependencies Required
138133

139134
- 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`.

0 commit comments

Comments
 (0)