typo
This commit is contained in:
@@ -173,6 +173,7 @@ def update_records(url=c2url):
|
|||||||
df['Distance'] = df['Event']
|
df['Distance'] = df['Event']
|
||||||
df['Duration'] = 0
|
df['Duration'] = 0
|
||||||
|
|
||||||
|
print row.Duration
|
||||||
for nr,row in df.iterrows():
|
for nr,row in df.iterrows():
|
||||||
if 'm' in row['Record']:
|
if 'm' in row['Record']:
|
||||||
df.ix[nr,'Distance'] = row['Record'][:-1]
|
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')
|
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
|
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():
|
for nr,row in df.iterrows():
|
||||||
try:
|
try:
|
||||||
weightcategory = row.Weight.lower()
|
weightcategory = row.Weight.lower()
|
||||||
|
|||||||
Reference in New Issue
Block a user