mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-13 13:08:46 +02:00
refactor: PR feedback implemented
This commit is contained in:
parent
834f93a26e
commit
b0bcdc6fe1
@ -248,8 +248,7 @@ class Bundesanzeiger:
|
||||
return None
|
||||
return transformed_value * factor
|
||||
|
||||
for index, row in table.iterrows():
|
||||
table.iloc[index][0] = cleanse_string(row.iloc[0]) # type: ignore
|
||||
table[table.columns[0]] = table[table.columns[0]].apply(cleanse_string) # type: ignore
|
||||
|
||||
converter = {
|
||||
"Mio€": 1 * 10**6,
|
||||
@ -304,8 +303,7 @@ class Bundesanzeiger:
|
||||
if not isinstance(name_cleansed, str):
|
||||
continue
|
||||
for exp in exps:
|
||||
# print(row[0])
|
||||
name_cleansed = re.sub(exp, "", name_cleansed).strip()
|
||||
name_cleansed = re.sub(exp, "", name_cleansed.strip())
|
||||
kpis[name_cleansed] = row.iloc[1]
|
||||
return kpis
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user