Return a test complex df for adding to a DataTable
(rows: int = 4, alphabet: str = "ABCDEF")
| 80 | |
| 81 | |
| 82 | def gen_table_df(rows: int = 4, alphabet: str = "ABCDEF") -> pd.DataFrame: |
| 83 | """Return a test complex df for adding to a DataTable""" |
| 84 | data = [{x: random.randint(0, 1000) for x in alphabet} for _ in range(0, rows)] |
| 85 | return pd.DataFrame.from_dict(data) |
| 86 | |
| 87 | |
| 88 | def gen_plot() -> alt.Chart: |