gooddata_pandas.utils.DefaultInsightColumnNaming
- class gooddata_pandas.utils.DefaultInsightColumnNaming
Bases:
object- __init__() None
Initialize a DefaultInsightColumnNaming instance with an empty dictionary for unique names.
Methods
__init__()Initialize a DefaultInsightColumnNaming instance with an empty dictionary for unique names.
col_name_for_attribute(attr)Generate a unique column name for the given attribute.
col_name_for_metric(measure)Generate a unique column name for the given metric.
- col_name_for_attribute(attr: InsightAttribute) str
Generate a unique column name for the given attribute.
- Args:
attr (InsightAttribute): The attribute.
- Returns:
str: The unique column name.
- col_name_for_metric(measure: InsightMetric) str
Generate a unique column name for the given metric.
- Args:
measure (InsightMetric): The metric.
- Returns:
str: The unique column name.