質問編集履歴

1

エラーの詳細追加

2020/05/10 13:23

投稿

LanternRains
LanternRains

スコア2

test CHANGED
File without changes
test CHANGED
@@ -76,6 +76,88 @@
76
76
 
77
77
 
78
78
 
79
+ 失礼いたしました。
80
+
81
+ 以下エラー全文です
82
+
83
+
84
+
85
+ ```
86
+
87
+ Traceback (most recent call last):
88
+
89
+ File "/var/spool/ge/yc066i/job_scripts/17800332", line 54, in <module>
90
+
91
+ nounal_len_pd.to_excel(writer, sheet_name='genome')
92
+
93
+ File "/home/name/.local/lib/python3.6/site-packages/pandas/core/generic.py", line 2181, in to_excel
94
+
95
+ engine=engine,
96
+
97
+ File "/home/name/.local/lib/python3.6/site-packages/pandas/io/formats/excel.py", line 719, in write
98
+
99
+ f"This sheet is too large! Your sheet size is: {num_rows}, {num_cols} "
100
+
101
+ ValueError: This sheet is too large! Your sheet size is: 34430947, 1 Max sheet size is: 1048576, 16384
102
+
103
+
104
+
105
+ During handling of the above exception, another exception occurred:
106
+
107
+
108
+
109
+ Traceback (most recent call last):
110
+
111
+ File "/var/spool/ge/yc066i/job_scripts/17800332", line 66, in <module>
112
+
113
+ all_no_len_pd.to_excel(writer, sheet_name='all_no')
114
+
115
+ File "/home/name/.local/lib/python3.6/site-packages/pandas/io/excel/_base.py", line 777, in __exit__
116
+
117
+ self.close()
118
+
119
+ File "/home/name/.local/lib/python3.6/site-packages/pandas/io/excel/_base.py", line 781, in close
120
+
121
+ return self.save()
122
+
123
+ File "/home/name/.local/lib/python3.6/site-packages/pandas/io/excel/_openpyxl.py", line 43, in save
124
+
125
+ return self.book.save(self.path)
126
+
127
+ File "/home/name/.local/lib/python3.6/site-packages/openpyxl/workbook/workbook.py", line 392, in save
128
+
129
+ save_workbook(self, filename)
130
+
131
+ File "/home/name/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 293, in save_workbook
132
+
133
+ writer.save()
134
+
135
+ File "/home/name/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 275, in save
136
+
137
+ self.write_data()
138
+
139
+ File "/home/name/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 89, in write_data
140
+
141
+ archive.writestr(ARC_WORKBOOK, writer.write())
142
+
143
+ File "/home/name/.local/lib/python3.6/site-packages/openpyxl/workbook/_writer.py", line 148, in write
144
+
145
+ self.write_views()
146
+
147
+ File "/home/name/.local/lib/python3.6/site-packages/openpyxl/workbook/_writer.py", line 135, in write_views
148
+
149
+ active = get_active_sheet(self.wb)
150
+
151
+ File "/home/name/.local/lib/python3.6/site-packages/openpyxl/workbook/_writer.py", line 33, in get_active_sheet
152
+
153
+ raise IndexError("At least one sheet must be visible")
154
+
155
+ IndexError: At least one sheet must be visible
156
+
157
+ ```
158
+
159
+
160
+
79
161
  というエラーが出て、最初のprint(1)は全て出力されており、pandasのDataFrameまでは大丈夫なのは確認したのですが、
80
162
 
81
163
  ExcelWriterの部分で、prin(ano_pd)でAは出力されているのですが、それ以降が出力されていない状態です。出来たExcel fileも壊れていて開ません。