We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a001a6 commit d27767dCopy full SHA for d27767d
cadmus/post_retrieval/parsed_to_df.py
@@ -13,7 +13,7 @@ def parsed_to_df(path = './output/retrieved_parsed_files/content_text/'):
13
files.append(command[i].split()[-1][:-4])
14
content_text = []
15
for i in range(len(files)):
16
- with zipfile.ZipFile(f"{path}/{files[i]}.txt.zip", "r") as z:
+ with zipfile.ZipFile(f"{path}/{files[i]}.zip", "r") as z:
17
for filename in z.namelist():
18
with z.open(filename) as f:
19
d = f.read()
@@ -23,4 +23,4 @@ def parsed_to_df(path = './output/retrieved_parsed_files/content_text/'):
23
z.close()
24
df = pd.DataFrame(content_text, columns=["content_text"])
25
df.index = files
26
- return df
+ return df
0 commit comments