annofabcli 1.114.2__py3-none-any.whl → 1.114.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- annofabcli/task_count/list_by_phase.py +7 -1
- {annofabcli-1.114.2.dist-info → annofabcli-1.114.3.dist-info}/METADATA +1 -1
- {annofabcli-1.114.2.dist-info → annofabcli-1.114.3.dist-info}/RECORD +6 -6
- {annofabcli-1.114.2.dist-info → annofabcli-1.114.3.dist-info}/WHEEL +0 -0
- {annofabcli-1.114.2.dist-info → annofabcli-1.114.3.dist-info}/entry_points.txt +0 -0
- {annofabcli-1.114.2.dist-info → annofabcli-1.114.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -271,7 +271,8 @@ def aggregate_df(df: pandas.DataFrame, metadata_keys: list[str] | None = None, u
|
|
|
271
271
|
assert_noreturn(unreachable)
|
|
272
272
|
|
|
273
273
|
index_columns = ["phase", *metadata_columns]
|
|
274
|
-
|
|
274
|
+
# `dropna=False`を指定する理由: メタデータの値はNAである可能性があるため
|
|
275
|
+
df2 = df.pivot_table(values="_aggregate_value", index=index_columns, columns="task_status_for_summary", aggfunc="sum", fill_value=0, dropna=False)
|
|
275
276
|
|
|
276
277
|
# 列数を固定する
|
|
277
278
|
for status in TaskStatusForSummary:
|
|
@@ -309,6 +310,11 @@ def aggregate_df(df: pandas.DataFrame, metadata_keys: list[str] | None = None, u
|
|
|
309
310
|
TaskStatusForSummary.COMPLETE.value,
|
|
310
311
|
]
|
|
311
312
|
df2 = df2[result_columns]
|
|
313
|
+
|
|
314
|
+
# すべてのタスクステータス列が0の行を除外
|
|
315
|
+
status_columns = [status.value for status in TaskStatusForSummary]
|
|
316
|
+
df2 = df2[df2[status_columns].sum(axis=1) > 0]
|
|
317
|
+
|
|
312
318
|
return df2
|
|
313
319
|
|
|
314
320
|
|
|
@@ -215,7 +215,7 @@ annofabcli/task/reject_tasks.py,sha256=lCpAfsU530O2TaYf8TbO4CeML7LoFgWwsCUCH6S_Y
|
|
|
215
215
|
annofabcli/task/subcommand_task.py,sha256=vZIBXsHGc0203Q3yiSrQgNjov5MPSRyNLJ2qsFepVCA,2387
|
|
216
216
|
annofabcli/task/update_metadata_of_task.py,sha256=WECoFLJ_-LWdpJ1bvzDGMh459FoLUkT8gbeLDN0JCqY,12895
|
|
217
217
|
annofabcli/task_count/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
218
|
-
annofabcli/task_count/list_by_phase.py,sha256=
|
|
218
|
+
annofabcli/task_count/list_by_phase.py,sha256=7kSPW1Yn_DFvtQ1-grryEXIaqJKJsOvpGjrrQ2AoFtU,24124
|
|
219
219
|
annofabcli/task_count/subcommand_task_count.py,sha256=DDys_Qa4TxJarqSkJQB3zjQipSvGA7-WDNoN2HA-_JQ,735
|
|
220
220
|
annofabcli/task_history/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
221
221
|
annofabcli/task_history/download_task_history_json.py,sha256=mmQ0r0jGvQyeNahVeNXX8bUjOAYxP0vgBNA9Sf0QLu8,2424
|
|
@@ -227,8 +227,8 @@ annofabcli/task_history_event/download_task_history_event_json.py,sha256=lWyOoS2
|
|
|
227
227
|
annofabcli/task_history_event/list_all_task_history_event.py,sha256=yNmvIEoNkfXXWPq9JZ3eAio82CrmELPSFg2M1yRHSzo,8017
|
|
228
228
|
annofabcli/task_history_event/list_worktime.py,sha256=k6Hgy0pE2w5BtyUePN-LAyTbw0W2RMU4retwa6rC2uU,15497
|
|
229
229
|
annofabcli/task_history_event/subcommand_task_history_event.py,sha256=dFllzpm8plnnwADwTV74h-R2LOA7rZW-xd2YnSkwTHo,1229
|
|
230
|
-
annofabcli-1.114.
|
|
231
|
-
annofabcli-1.114.
|
|
232
|
-
annofabcli-1.114.
|
|
233
|
-
annofabcli-1.114.
|
|
234
|
-
annofabcli-1.114.
|
|
230
|
+
annofabcli-1.114.3.dist-info/METADATA,sha256=XVrMwYdpaFIKjnuOaivkgN6iaqHyhdEdat5dm_dfZyg,4949
|
|
231
|
+
annofabcli-1.114.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
232
|
+
annofabcli-1.114.3.dist-info/entry_points.txt,sha256=C2uSUc-kkLJpoK_mDL5FEMAdorLEMPfwSf8VBMYnIFM,56
|
|
233
|
+
annofabcli-1.114.3.dist-info/licenses/LICENSE,sha256=pcqWYfxFtxBzhvKp3x9MXNM4xciGb2eFewaRhXUNHlo,1081
|
|
234
|
+
annofabcli-1.114.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|