updates
This commit is contained in:
@@ -7,3 +7,4 @@ from .dataclass import ApparatData, BookData
|
||||
from .csvparser import csv_to_list
|
||||
from .wordparser import elsa_word_to_csv, word_docx_to_csv
|
||||
from .log import MyLogger
|
||||
from .zotero import ZoteroController
|
||||
|
||||
@@ -7,7 +7,8 @@ def csv_to_list(path: str) -> list[str]:
|
||||
"""
|
||||
Extracts the data from a csv file and returns it as a pandas dataframe
|
||||
"""
|
||||
with open(path, newline="") as csvfile:
|
||||
with open(path, newline="", encoding="utf-8") as csvfile:
|
||||
# if decoder fails to map, assign ""
|
||||
reader = csv.reader(csvfile, delimiter=";", quotechar="|")
|
||||
ret = []
|
||||
for row in reader:
|
||||
|
||||
Reference in New Issue
Block a user