concept column in category churn

appears as: columns, columns, column, column, The columns
Fighting Churn with Data

This is an excerpt from Manning's book Fighting Churn with Data.

  • A main or “anchor” SELECT statement that defines the columns of the CTE and fills the table with an initial result set.
  • The result of the call to the function is a DataFrame with one row per category and columns containing the three aggregation results. The columns are labeled by tuples combining the column and the aggregation: for example, the column labeled (cat_col,'count') contains the row count for the categories and ('is_churn','mean') contains the mean of the churn indicator, which is the churn rate.