1
0
Fork 0
mirror of https://github.com/qurator-spk/page2tsv.git synced 2025-06-09 19:39:54 +02:00

xlrd does not support xsls files anymore

This commit is contained in:
Kai 2021-05-07 08:02:33 +02:00
parent ae93668bac
commit 1eb05d0d62

View file

@ -273,6 +273,8 @@ def make_page2tsv_commands(xls_file, directory, purpose):
else:
df = pd.read_excel(xls_file, engine='openpyxl')
df = df.dropna(how='all')
for _, row in df.iterrows():
print('page2tsv $(OPTIONS) {}.xml {}.tsv --image-url={} --scale-factor={} --purpose={}'.
format(row.Filename, row.Filename, row.iiif_url.replace('/full/full', '/left,top,width,height/full'),