Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion validmind/tests/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def list_tags():
return list(unique_tags)


def list_tasks_and_tags():
def list_tasks_and_tags(as_json=False):
"""
List all task types and their associated tags, with one row per task type and
all tags for a task type in one row.
Expand All @@ -205,6 +205,9 @@ def list_tasks_and_tags():
for task in test.__tasks__:
task_tags_dict.setdefault(task, set()).update(test.__tags__)

if as_json:
return task_tags_dict

return format_dataframe(
pd.DataFrame(
[
Expand Down
Loading