Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created February 16, 2020 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/53ac3c8d12fe5f7ba0717014ee28692e to your computer and use it in GitHub Desktop.
Save aravindpai/53ac3c8d12fe5f7ba0717014ee28692e to your computer and use it in GitHub Desktop.
block1 = first[first['score']>=180]
won1 = block1[block1['innings_no']==block1['result']].shape[0]
lost1=block1[block1['innings_no']!=block1['result']].shape[0]
block2 = first[(first['score']>=120) & (first['score']<180) ]
won2 = block2[block2['innings_no']==block2['result']].shape[0]
lost2=block2[block2['innings_no']!=block2['result']].shape[0]
block3 = first[first['score']<120]
won3 = block3[block3['innings_no']==block3['result']].shape[0]
lost3=block3[block3['innings_no']!=block3['result']].shape[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment