Shoes

Challenge
No

As you know, goats love shoes. They don't wear shoes in pairs, but in quads.

Cthulhu has data on his goatty friends' fave shoe brands, and the number of quads they have. You can download a CSV file. Help Cthulhu analyze the data.

Here's part of the data set:

  • "Goat","Fave brand","Quads owned"
  • "Adria ","Remock",1
  • "Albertina ","Remock",7
  • "Amer","Skreecherz",7
  • "Anneliese ","Abibaaas",1
  • "Ashanti ","Skreecherz",7

The fields:

  • Goat. Name must be present.
  • Fave brand. Valid values: Abibaaas, Remock, or Skreecherz. Allow for extra spaces, and upper- or lowercase.
  • Number of quads owned, of all brands. Integer from 0 to 10.

Output:

  • Abibaaas
  • =======
  • Mean: 4.27
  • Standard deviation: 2.34
  • Max: 7
  •  
  • Remock
  • ======
  • Mean: 5.12
  • Standard deviation: 2.8
  • Max: 8
  •  
  • Skreecherz
  • ===========
  • Mean: 4.23
  • Standard deviation: 2.77
  • Max: 8

Other requirements:

  • Use the statistics module.
  • Use one subset function, called three times.
  • Round all values to two decimal places.

Upload a zip of your project folder. The usual coding standards apply.

Attachments
Where referenced