DOC Adds faster parser for fetch_openml to highlights
@@ -68,6 +68,20 @@ hist_no_interact = HistGradientBoostingRegressor(
)
hist_no_interact.fit(X, y)
+# %%
+# Faster parser in :func:`~datasets.fetch_openml`
+# -----------------------------------------------
+# :func:`~datasets.fetch_openml` now supports a new `"pandas"` parser that is
+# more memory and CPU efficient. In v1.4, the default will change to
+# `parser="auto"` which will automatically use the `"pandas"` parser for dense
+# data and `"liac-arff"` for sparse data.
+from sklearn.datasets import fetch_openml
+
+X, y = fetch_openml(
+ "titanic", version=1, as_frame=True, return_X_y=True, parser="pandas"
+)
+X.head()
+
# %%
# Experimental Array API support in :class:`~discriminant_analysis.LinearDiscriminantAnalysis`
# --------------------------------------------------------------------------------------------
