mirror of
https://github.com/qurator-spk/page2tsv.git
synced 2025-06-11 12:29:53 +02:00
xlrd does not support xsls files anymore
This commit is contained in:
parent
ae93668bac
commit
1eb05d0d62
1 changed files with 2 additions and 0 deletions
|
@ -273,6 +273,8 @@ def make_page2tsv_commands(xls_file, directory, purpose):
|
||||||
else:
|
else:
|
||||||
df = pd.read_excel(xls_file, engine='openpyxl')
|
df = pd.read_excel(xls_file, engine='openpyxl')
|
||||||
|
|
||||||
|
df = df.dropna(how='all')
|
||||||
|
|
||||||
for _, row in df.iterrows():
|
for _, row in df.iterrows():
|
||||||
print('page2tsv $(OPTIONS) {}.xml {}.tsv --image-url={} --scale-factor={} --purpose={}'.
|
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'),
|
format(row.Filename, row.Filename, row.iiif_url.replace('/full/full', '/left,top,width,height/full'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue