I've recently started using Python (and have also started looking at R).I came across an interesting example (copied below for reference) in R which I wanted to try and see if I could implement in Python (without using rpy or Pandas etc.).I've recently started using Python (and have al