Commit 784ca908 authored by Neeme Kahusk's avatar Neeme Kahusk

puhtamaks ja doc

parent 7a11b998
......@@ -45,7 +45,14 @@ def zip2roots(infile: str) -> list:
return olist
def featured_rows(list_of_roots: list, labels: list):
def featured_rows(list_of_roots: list, labels: list) -> list:
"""Returns xpath query for each row of labels and for each xml file
:param list_of_roots: list whee each member is etree._ElementTree
:param labels: list of dicts, at least with keys 'label_et' and 'xpath'
:return: list of dicts, where each member is a row in csv file in format
{column_name_1: value_1, column_name_2: value_2, ... column_name_n: value_n }
out = []
for i in list_of_roots:
rida = {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment