Advertisement
taoyu

Untitled

Jun 20th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import pandas as pd
  2. import numpy as np
  3. wca_results = pd.read_csv('WCA_export_results.tsv', sep='\t')
  4. times_df = wca_results[(wca_results['eventId']=='333')].loc[:,'value1':'value5']
  5. times_np = times_df.values.ravel()
  6. non_dnf = times_np[times_np>0]
  7. non_dnf.mean()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement