this ruby script reads through the list of artists who are included in the Tate Modern Gallery collection, and returns the number of male and female artists as well as the percentage of the artists in the collection who are female.
data set can be found here: https://github.com/tategallery/collection/blob/master/artist_data.csv
$ ruby tate-search.rb
male = 2895
female = 521
percentage_female = 15.25%