Fisher's Iris data set. Add this to your project with cargo add irisdata
, then you can use these data however you want:
```rust
let virginicaavgpetallength = irisdata::IRISDATA
.iter()
.filtermap(|i| {
if i.species == Species::IrisVirginica {
Some(i.petallength)
} else {
None
}
})
.sum::
assert_eq!(5.5520005, avg); ```