rebase codebase, delete trunk, move threads to backend
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
|
||||
import pandas as pd
|
||||
from docx import Document
|
||||
|
||||
letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
|
||||
def word_docx_to_csv(path) -> pd.DataFrame:
|
||||
doc = Document(path)
|
||||
tables = doc.tables
|
||||
@@ -25,6 +26,8 @@ def word_docx_to_csv(path) -> pd.DataFrame:
|
||||
|
||||
df = m_data[2]
|
||||
return df
|
||||
|
||||
|
||||
def makeDict():
|
||||
return {
|
||||
"work_author": None,
|
||||
@@ -42,6 +45,7 @@ def makeDict():
|
||||
"type": None,
|
||||
}
|
||||
|
||||
|
||||
def tuple_to_dict(tlist: tuple, type: str) -> dict:
|
||||
ret = []
|
||||
for line in tlist:
|
||||
@@ -82,6 +86,7 @@ def tuple_to_dict(tlist: tuple, type: str) -> dict:
|
||||
ret.append(data)
|
||||
return ret
|
||||
|
||||
|
||||
def elsa_word_to_csv(path):
|
||||
doc = Document(path)
|
||||
# # print all lines in doc
|
||||
@@ -119,4 +124,4 @@ def elsa_word_to_csv(path):
|
||||
|
||||
if __name__ == "__main__":
|
||||
else_df = elsa_word_to_csv("C:/Users/aky547/Desktop/Antrag ELSA Schweitzer.docx")
|
||||
# print(else_df)
|
||||
# print(else_df)
|
||||
|
||||
Reference in New Issue
Block a user