I have a panda dataframe like this.
Name Result Year Count Machine1 Fail 2011 78 Machine1 Fail 2012 107 Machine1 Pass 2011 437 M