Kims12 commited on
Commit
6c1add2
โ€ข
1 Parent(s): d250da4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -34,7 +34,10 @@ def process_excel(file):
34
  os.makedirs(output_dir)
35
 
36
  output_file = os.path.join(output_dir, "keyword_counts.xlsx")
37
- result_df.to_excel(output_file, index=False)
 
 
 
38
 
39
  return output_file
40
 
 
34
  os.makedirs(output_dir)
35
 
36
  output_file = os.path.join(output_dir, "keyword_counts.xlsx")
37
+
38
+ # ์—‘์…€ ํŒŒ์ผ์— ๋ฐ์ดํ„ฐ๋ฅผ A4, B4 ์…€๋ถ€ํ„ฐ ์“ฐ๊ธฐ
39
+ with pd.ExcelWriter(output_file, engine='openpyxl') as writer:
40
+ result_df.to_excel(writer, index=False, startrow=3) # startrow=3์œผ๋กœ ์„ค์ •ํ•˜์—ฌ 4๋ฒˆ์งธ ํ–‰(A4, B4)๋ถ€ํ„ฐ ์‹œ์ž‘
41
 
42
  return output_file
43