fix for csv support
This commit is contained in:
@@ -54,7 +54,7 @@ def read_and_normalize_csv_or_xlsx(input_file: Union[List[TextIO], List[Path], T
|
|||||||
if isinstance(f, Path):
|
if isinstance(f, Path):
|
||||||
if f.suffix.lower() == ".csv":
|
if f.suffix.lower() == ".csv":
|
||||||
with f.open("r", encoding="utf-8") as f:
|
with f.open("r", encoding="utf-8") as f:
|
||||||
reader = csv.DictReader(f)
|
reader = list(csv.DictReader(f))
|
||||||
|
|
||||||
elif f.suffix.lower() == ".xlsx":
|
elif f.suffix.lower() == ".xlsx":
|
||||||
output = StringIO()
|
output = StringIO()
|
||||||
|
|||||||
Reference in New Issue
Block a user