Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-03-06 13:14:41 +01:00
parent 4219725471
commit e353b1cf1f

View File

@@ -173,6 +173,7 @@ def update_records(url=c2url):
df['Distance'] = df['Event']
df['Duration'] = 0
print row.Duration
for nr,row in df.iterrows():
if 'm' in row['Record']:
df.ix[nr,'Distance'] = row['Record'][:-1]
@@ -185,7 +186,6 @@ def update_records(url=c2url):
tobj = datetime.datetime.strptime(row['Record'],'%H:%M:%S.%f')
df.ix[nr,'Duration'] = 3600.*tobj.hour+60.*tobj.minute+tobj.second+tobj.microsecond/1.e6
print row.Duration
for nr,row in df.iterrows():
try:
weightcategory = row.Weight.lower()