Database unique summary
get_unique_single_and_multi_values(df)
Get unique values for single-label and multi-label columns in a dataframe.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
input dataframe |
required |
Returns: A tuple of two dictionaries: - a dict mapping single-label column names to their unique values - a dict mapping multi-label column names to their unique values
Source code in src/kibad_llm/data_integration/database_unique_summary.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
show_unique_values_summary(input_file, top_n=20, fields=None, key_sep='.')
Show a summary of unique values in a JSONL file with nested entries.
Source code in src/kibad_llm/data_integration/database_unique_summary.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |