Ideation Dataframe

Source: examples/catalog/ideation_dataframe.py

Introduction

Render pandas DataFrames for the ideation catalog when pandas is installed.

Technical Implementation

This page is generated from the top-of-file module docstring and the example source code. The full script is included below for direct inspection.

 1from __future__ import annotations
 2
 3import design_research_problems as derp
 4
 5
 6def main() -> None:
 7    """Print one short DataFrame preview or an install hint."""
 8    catalog = derp.get_ideation_catalog()
 9    try:
10        dataframe = catalog.prompts_dataframe()
11    except derp.MissingOptionalDependencyError as exc:
12        print(str(exc))
13        return
14    print(tuple(dataframe.columns))
15    print(len(dataframe))
16
17
18if __name__ == "__main__":
19    main()

Expected Results

Run Command

PYTHONPATH=src python3 examples/catalog/ideation_dataframe.py

Run the command shown below from repository root. Output should summarize the problem setup, a baseline solution, or diagnostic values relevant to this example.