Fixes for different setting combos

This commit is contained in:
Maximilian Schmeller 2022-09-15 16:17:24 +02:00
parent 7d3e957ed9
commit b456645621
5 changed files with 36 additions and 69 deletions

View file

@ -1,7 +1,5 @@
import sys
import pandas as pd
from tqdm.notebook import tqdm
from tqdm import tqdm
def row_to_type(row, type, **type_kwargs):
@ -15,7 +13,7 @@ def df_to_type_list(df, type, mappers=None, **type_kwargs):
has_idx = not isinstance(df.index, pd.RangeIndex)
ret_list = []
i=0
for row in tqdm(df.itertuples(index=has_idx), desc=f" ├─ Processing {type.__name__}s", total=len(df)):
row_dict = row._asdict()
if has_idx: