Living-with-machines / zooniverse-analysis-workshop

Jupyter Notebooks for processing Zooniverse classification and subject files
3 stars 2 forks source link

Consider swapping head() for sample() #13

Closed mialondon closed 2 years ago

mialondon commented 2 years ago

There's a lovely bit in the notebook where people can run head(n) to see the data they've imported.

I wondered if we could change it to df.sample(n) so that a) we can note that the code is executed each time you hit play, and b) they can see more of the range of data (when it's run with bigger datasets).

kallewesterling commented 2 years ago

That's a great idea!

kallewesterling commented 2 years ago

I swapped the .sample() method in a couple of times. Sometimes, when you want to see the index change for instance, I think it makes more sense for the participants to see the data represented the same way (but with different indices) instead.

Let me know what you think @mialondon !

mialondon commented 2 years ago

@kallewesterling nice! I think indexes can be a tricky concept as it's not always what people expect the word to mean, so that combination makes sense.