Skip to content

Commit 50766f2

Browse files
committed
Update px-arguments.md
1 parent cafddea commit 50766f2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/python/px-arguments.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,11 @@ fig.show()
170170

171171
### Input Data as Non-Pandas `DataFrame`s
172172

173-
**New in 5.16**
173+
*New in 5.15 and 5.16*
174174

175-
In the examples above, we've used Pandas DataFrames. You can also provide another type of DataFrame to the `data_frame` argument if that DataFrame has a `to_pandas` method or supports the [Python dataframe interchange protocol](https://data-apis.org/dataframe-protocol/latest/index.html), for example, a [Polars](https://www.pola.rs/) DataFrame.
175+
In the examples above, we've used Pandas DataFrames. You can also provide another type of DataFrame to the `data_frame` argument if that DataFrame has a `to_pandas` method (new in 5.15) or supports the [Python dataframe interchange protocol](https://data-apis.org/dataframe-protocol/latest/index.html) (new in 5.16), for example, a [Polars](https://www.pola.rs/) DataFrame. Plotly Express uses Pandas internally to process the data.
176176

177-
Plotly Express uses Pandas internally to process the data. When you provide a Non-Pandas DataFrame to the `data_frame` argument of a Plotly Express function, the entire DataFrame is converted to a Pandas DataFrame.
178-
179-
If you are using a type of DataFrame that doesn't have a `to_pandas` method, but supports the Python dataframe interchange protocol, you'll need to have Pandas version 2.0.3 or later installed.
177+
If you are using a type of DataFrame that doesn't have a `to_pandas` method, but supports the Python dataframe interchange protocol, you'll need to have Pandas version 2.0.3 or later installed.
180178

181179
In this example, we use a Polars DataFrame. If you are using Polars, you'll need to install `pyarrow`, which is used by its [`to_pandas` method](
182180
https://pola-rs.github.io/polars/py-polars/html/reference/dataframe/api/polars.DataFrame.to_pandas.html)

0 commit comments

Comments
 (0)