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
Copy file name to clipboardExpand all lines: doc/python/px-arguments.md
+10-3
Original file line number
Diff line number
Diff line change
@@ -170,11 +170,11 @@ fig.show()
170
170
171
171
### Input Data as Non-Pandas `DataFrame`s
172
172
173
-
*New in 5.15 and 5.16*
173
+
*New in 5.15*
174
174
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.
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, for example, a [Polars](https://www.pola.rs/) DataFrame.
176
176
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.
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
178
179
179
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](
As of version 5.16, you can also provide another type of DataFrame to the `data_frame` argument if that DataFrame supports the [Python dataframe interchange protocol](https://data-apis.org/dataframe-protocol/latest/index.html), or has a `toPandas` or `to_pandas_df` method.
202
+
203
+
If you are using a type of DataFrame that doesn't have a `to_pandas`, `toPandas`, or `to_pandas_df` method, but supports the Python dataframe interchange protocol, you'll need to have Pandas version 2.0.3 or later installed.
204
+
205
+
199
206
### Input Data as array-like columns: NumPy arrays, lists...
200
207
201
208
`px` arguments can also be array-like objects such as lists, NumPy arrays, in both long-form or wide-form (for certain functions).
0 commit comments