Open
Description
I got kind of surprise when I did the following display
import skrub
from sklearn.datasets import fetch_california_housing
skrub.patch_display()
X, y = fetch_california_housing(return_X_y=True, as_frame=True)
X.head()
It took some time to understand that the reason was due to the X.head()
and that in this case, it was making sense.
I'm wondering if you should avoid computing all the different values when one call X.head()
instead of showing the statistics on few line. It can be misleading.
An alternative is to compute the statistics on the full dataset instead even if a user request to check the .head()
. However if you call .head()
it might be only because you are interested of seeing the couple of first line of the dataframe without checking any other statistics.
@jeromedockes WDYT?
Metadata
Assignees
Labels
No labels
Activity