Private
Public Access
1
0

updating scrapers

This commit is contained in:
Sander Roosendaal
2022-06-29 14:00:57 +02:00
parent 53679a1ba3
commit 22f3708120

View File

@@ -23,7 +23,10 @@ def csv_reader(filename,raceid,clubcol='Ploeg',bankjes=['Slag'],uitslag='Pos'):
for i in range(nr):
# need to improve for multiple rowers
try:
naam = row.Slag.split(' ')
print(row)
naam = row[df.columns.get_loc('Slag')+1].split(' ')
#print(naam)
#naam = row.Slag.split(' ')
first_name = ' '.join(naam[:-1])
last_name = naam[-1]
except AttributeError: