skrub icon indicating copy to clipboard operation
skrub copied to clipboard

DOC - Shuffle the rows of the TableReport example in the home page

Open jeromedockes opened this issue 1 year ago • 3 comments

Describe the issue linked to the documentation

The example dataframe shown in the home page in the "interactive data exploration" section could be nicer: some of the words it contains are "Major Crimes", "Liquor", "Police", "Master", "Alcohol/Tobacco Enforcement", ... this was also mentioned in this comment

we could either shuffle the rows of the dataset to get a different sample, or consider using another dataset

Suggest a potential alternative/fix

No response

jeromedockes avatar Dec 05 '24 16:12 jeromedockes

I can work on this

mrastgoo avatar Jan 12 '25 18:01 mrastgoo

This issue can be fixed by editing the file doc/table_report.py, doing something like

X = X.sample(frac=1, random_state=11)

with a specific random_state to ensure reproducibility.

rcap107 avatar Oct 27 '25 14:10 rcap107

i will work on this

amirakahub avatar Oct 29 '25 10:10 amirakahub